Skip to content

Commit

Permalink
fix: adjust styles
Browse files Browse the repository at this point in the history
  • Loading branch information
jimcase committed Aug 23, 2023
1 parent ffcd367 commit 5dd4a97
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 deletions.
4 changes: 2 additions & 2 deletions ui/summit-2023/src/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ html,
.MainContent {
flex: 1;
display: flex;
align-items: center; // Centra el contenido verticalmente
justify-content: center; // Centra el contenido horizontalmente
align-items: center;
justify-content: center;
}
.background-shape-1 {
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion ui/summit-2023/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function App() {
<div className="App">
<Header />
<div className="MainContent">
<Container>
<Container maxWidth="xl">
<Box my={2}>
<Routes>
<Route
Expand Down
5 changes: 5 additions & 0 deletions ui/summit-2023/src/components/Hero/Hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,8 @@
transform: scale(1.05);
}
}

.hexagon-outer-container {
height: auto;
overflow: hidden; // Esto es para asegurarse de que nada se desborde del contenedor
}
7 changes: 5 additions & 2 deletions ui/summit-2023/src/components/Hero/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,18 @@ const Hero: React.FC = () => {
display: 'flex',
flexDirection: { xs: 'column', sm: 'row' },
height: { xs: 'auto', sm: '400px' },
marginLeft: isMobile ? '0px' : '50px'
}}
>
<Box
sx={{
flex: '1',
padding: '20px',
marginRight: isMobile ? '0px' : '40px',
order: { xs: '1', sm: '1' },
}}
>
<div className="left-title-container" style={{ marginTop: isMobile ? '0px' : '50px' }}>
<div className="left-title-container" style={{ marginTop: isMobile ? '0px' : '120px' }}>
<Typography
className="title"
variant="h2"
Expand All @@ -64,10 +66,11 @@ const Hero: React.FC = () => {
sx={{
flex: '1',
padding: '20px',
marginLeft: isMobile ? '0px' : '40px',
order: { xs: '2', sm: '2' },
}}
>
<div style={{ padding: isMobile ? '0px' : '20px' }}>
<div style={{ paddingRight: isMobile ? '0px' : '20%' }}>
<Hexagon>
<>
<div className="right-title-container">
Expand Down
4 changes: 2 additions & 2 deletions ui/summit-2023/src/components/common/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Footer: React.FC = () => {
<Grid
item
xs={12}
sm={6}
sm={4}
>
<Typography variant="body2">
© {new Date().getFullYear()} Cardano Summit.
Expand All @@ -24,7 +24,7 @@ const Footer: React.FC = () => {
<Grid
item
xs={12}
sm={6}
sm={8}
>
<Grid container>
<Grid
Expand Down
2 changes: 1 addition & 1 deletion ui/summit-2023/src/pages/Home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const Home = () => {
return (
<>
<Hero />
<div style={{ height: isMobile ? '0px' : '200px' }} />
<div style={{ marginTop: isMobile ? '0px' : '15%' }} />
</>
);
};
Expand Down

0 comments on commit 5dd4a97

Please sign in to comment.