Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into epic-governance-page
Browse files Browse the repository at this point in the history
  • Loading branch information
DiogoSoaress committed Oct 24, 2023
2 parents 58a8a78 + 5b806d8 commit 8fcb903
Show file tree
Hide file tree
Showing 37 changed files with 206 additions and 233 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "safe-homepage",
"homepage": "https://github.com/safe-global/safe-homepage",
"version": "1.3.2",
"version": "1.3.3",
"scripts": {
"build": "next build && next export",
"lint": "tsc && next lint",
Expand Down
10 changes: 5 additions & 5 deletions public/images/IdentPlanets/label.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/bug-bounty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/images/discourse-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/total-audits.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/images/x-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/images/youtube-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/Careers/Cards/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const Cards = ({
<Container id={id} sx={{ marginBottom: '80px' }} className={layoutCss.containerMedium}>
<Grid container spacing={{ xs: 2, md: '30px', xl: '50px' }}>
<Grid item xs={12}>
<Typography variant="h1" className={css.title} mb={{ xs: 3, md: '50px' }}>
<Typography variant="h1" textAlign="center" mb={{ xs: 3, md: '50px' }}>
{title}
</Typography>
</Grid>
Expand Down
4 changes: 0 additions & 4 deletions src/components/Careers/Cards/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
transform: rotate(45deg);
}

.title {
text-align: center;
}

.cardTitle {
margin-bottom: 16px;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Careers/Intro/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const Intro = ({
</Grid>

<Grid item xs={12} md={10} xl={5}>
<Typography variant="h1" className={css.title}>
<Typography variant="h1" textAlign="center">
{title}
</Typography>
</Grid>
Expand Down
14 changes: 0 additions & 14 deletions src/components/Careers/Intro/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,6 @@
margin-top: 0px;
}

/* TODO: Use h1 from theme when implemented
https://github.com/safe-global/safe-homepage/issues/11 */
.title {
font-size: 64px;
line-height: 64px;
text-align: center;
padding: 0;
}

.text {
text-align: center;
}
Expand All @@ -46,11 +37,6 @@ https://github.com/safe-global/safe-homepage/issues/11 */
gap: 24px;
}

.title {
font-size: 80px;
line-height: 88px;
}

.bg {
width: 900px;
height: 900px;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Core/BannerCta/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const BannerCta = ({ title, buttons, caption }: BaseBlock): ReactElement
<Typography variant="h2" color="text.primary" mt={3} mb={5}>
{title}
</Typography>
<ButtonsWrapper buttons={buttons} btnColor="secondary" />
<ButtonsWrapper buttons={buttons} />
</div>
</Container>
)
Expand Down
2 changes: 1 addition & 1 deletion src/components/Core/Intro/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const CoreIntro = ({ title, text, link }: BaseBlock) => {
</video>
</Grid>
<Grid item md={6}>
<Typography className={css.title} variant="h1" mb={4}>
<Typography variant="h1" mb={4}>
{title}
</Typography>
<Typography variant="h4" component="div" mb={5}>
Expand Down
11 changes: 0 additions & 11 deletions src/components/Core/Intro/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@
margin: auto;
}

.title {
font-size: 64px;
line-height: 64px;
letter-spacing: -0.01em;
}

.video {
max-width: 90%;
height: auto;
Expand All @@ -53,11 +47,6 @@
padding-top: 30px;
margin-bottom: 120px;
}

.title {
font-size: 80px;
line-height: 82px;
}
}

@keyframes bounce {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Core/Masthead/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const Masthead = ({ title, buttons, caption, image }: BaseBlock): ReactEl
<Typography variant="h2" color="text.primary" mt={3} mb={5}>
{title}
</Typography>
<ButtonsWrapper buttons={buttons} btnColor="secondary" />
<ButtonsWrapper buttons={buttons} />
</Grid>
{image ? (
<Grid item xs={12} md={4} lg={3} xl={2.5} className={css.image}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Ecosystem/Intro/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const EcosystemIntro = ({ title, text }: BaseBlock) => {
<BackgroundParticles className={css.bg} />
<Grid container className={css.container} spacing={{ xs: 6, md: '30px', xl: '50px' }}>
<Grid item md={8}>
<Typography className={css.title} variant="h1" mb={4}>
<Typography variant="h1" mb={4}>
{title}
</Typography>
<Typography variant="h4" component="div" mb={5}>
Expand Down
11 changes: 0 additions & 11 deletions src/components/Ecosystem/Intro/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,11 @@
width: 100%;
}

.title {
font-size: 64px;
line-height: 64px;
letter-spacing: -0.01em;
}

@media (min-width: 600px) {
.container {
margin-top: 100px;
}

.title {
font-size: 80px;
line-height: 82px;
}

.bg {
width: auto;
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Ecosystem/Projects/ProjectCard.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Avatar, Typography, IconButton, SvgIcon, Chip } from '@mui/material'

import TwitterIcon from '@/public/images/twitter-icon-28x28.svg'
import XIcon from '@/public/images/x-icon.svg'
import GithubIcon from '@/public/images/github-icon.svg'

import css from './styles.module.css'
Expand All @@ -27,7 +27,7 @@ export const ProjectCard = (item: EcosystemProjectWithCategories) => {
size="small"
sx={{ color: 'primary.light' }}
>
<SvgIcon component={TwitterIcon} fontSize="inherit" color="inherit" inheritViewBox />
<SvgIcon component={XIcon} fontSize="inherit" color="inherit" inheritViewBox />
</IconButton>
)}

Expand Down
2 changes: 1 addition & 1 deletion src/components/Ecosystem/TextBlockItems/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const TextBlockItems = ({ title, text, buttons, items }: BaseBlock) => {
{title}
</Typography>
<Typography mb={5}>{text}</Typography>
<ButtonsWrapper buttons={buttons} btnColor="primary" />
<ButtonsWrapper buttons={buttons} mobileDirection="row" />
</Grid>
<Grid item md={2} display={{ xs: 'none', md: 'block' }} />
<Grid item md={5}>
Expand Down
14 changes: 9 additions & 5 deletions src/components/Home/BannerTextCard/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { useEffect, useRef, type ReactElement } from 'react'
import { Grid, Typography, Container, Box } from '@mui/material'
import { Grid, Typography, Container, Box, Button } from '@mui/material'

import css from './styles.module.css'
import type { BaseBlock } from '@/components/Home/types'
import { ECOSYSTEM_LINK } from '@/config/constants'

const BannerTextCard = ({ title, text }: BaseBlock): ReactElement => {
const bgRef = useRef<HTMLDivElement>(null)
Expand Down Expand Up @@ -36,15 +37,18 @@ const BannerTextCard = ({ title, text }: BaseBlock): ReactElement => {
<div className={css.gradient} ref={bgRef}>
<Container sx={{ textAlign: 'center' }}>
<Box height={{ xs: '700px', md: '1090px' }} display="flex" alignItems="center">
<Grid container justifyContent="center" flexDirection="column" alignItems="center">
<Grid container justifyContent="center" flexDirection="column" alignItems="center" gap={4}>
<Grid item md={8} xl={6}>
<Typography variant="h2" mb={4} textAlign="center">
{title}
</Typography>
<Typography variant="h2">{title}</Typography>
</Grid>
<Grid item md={6}>
<Typography>{text}</Typography>
</Grid>
<Grid item md={6}>
<Button href={ECOSYSTEM_LINK} target="_blank" rel="noreferrer" variant="contained" size="large">
Explore ecosystem
</Button>
</Grid>
</Grid>
</Box>
</Container>
Expand Down
Loading

0 comments on commit 8fcb903

Please sign in to comment.