-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: mobile styling for landing and registration pages
- Loading branch information
1 parent
46eeb37
commit 97ca820
Showing
16 changed files
with
196 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { useIsMobile } from "hooks/useIsMobile"; | ||
import { Divider } from "@mui/material"; | ||
|
||
export function MarginedDivider() { | ||
const isMobile = useIsMobile(); | ||
return ( | ||
<Divider | ||
sx={{ marginTop: isMobile ? 2 : 5, marginBottom: isMobile ? 2 : 5 }} | ||
/> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import { | ||
Avatar, | ||
Box, | ||
List, | ||
ListItem, | ||
ListItemAvatar, | ||
ListItemText, | ||
Typography, | ||
} from "@mui/material"; | ||
|
||
export function MobileAdsBenefits() { | ||
return ( | ||
<Box> | ||
<Typography variant="h6">Why Brave Ads?</Typography> | ||
<List> | ||
<ListItem | ||
alignItems="center" | ||
disableGutters | ||
sx={{ flexDirection: "row" }} | ||
> | ||
<ListItemAvatar> | ||
<Avatar alt="One" src="/One.svg" /> | ||
</ListItemAvatar> | ||
<ItemText | ||
primary="For all business sizes" | ||
secondary="Start a Brave Ads campaign with as little as $100." | ||
/> | ||
</ListItem> | ||
<ListItem | ||
alignItems="center" | ||
disableGutters | ||
sx={{ flexDirection: "row" }} | ||
> | ||
<ListItemAvatar> | ||
<Avatar alt="Two" src="/Two.svg" /> | ||
</ListItemAvatar> | ||
<ItemText | ||
primary="Powerful Ad Formats" | ||
secondary="Browser-based delivery offers a new way to reach audiences on the Web." | ||
/> | ||
</ListItem> | ||
<ListItem | ||
alignItems="center" | ||
disableGutters | ||
sx={{ flexDirection: "row" }} | ||
> | ||
<ListItemAvatar> | ||
<Avatar alt="Three" src="/Three.svg" /> | ||
</ListItemAvatar> | ||
<ItemText | ||
primary="Unparalleled privacy" | ||
secondary="All targeting and reporting is strictly designed to be anonymous and privacy-preserving." | ||
/> | ||
</ListItem> | ||
</List> | ||
</Box> | ||
); | ||
} | ||
|
||
const ItemText = (props: { primary: string; secondary: string }) => { | ||
return ( | ||
<ListItemText | ||
primary={props.primary} | ||
secondary={props.secondary} | ||
primaryTypographyProps={{ | ||
fontWeight: 600, | ||
}} | ||
secondaryTypographyProps={{ | ||
color: "text.primary", | ||
}} | ||
/> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.