Skip to content

Commit

Permalink
refactor: upgraded mobile styles
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorShadurin committed Nov 23, 2023
1 parent 5ce3855 commit 4bf486d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 8 deletions.
22 changes: 22 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,28 @@
/* Add any additional styling such as font-family, color, etc. */
}
</style>

<style>
/* Default styles for mobile */
.headers {
margin-left: 0 !important;
}

/* Tablet (devices with min-width of 768px) */
@media (min-width: 768px) {
.headers {
margin-left: 1rem !important;
}
}

/* PC (devices with min-width of 1024px) */
@media (min-width: 1024px) {
.headers {
margin-left: 2rem !important;
}
}

</style>
</head>
<body>
<div id="root"></div>
Expand Down
11 changes: 3 additions & 8 deletions src/components/differentPoints/differentPoints.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function DifferentPoints(props: Props) {
<div>
<div className={classes.content}>
{/*<h1 className={classes.header}>What makes Fairdrive different</h1>*/}
<Typography variant="h2" gutterBottom={true} style={{marginLeft: '2rem'}}>
<Typography variant="h2" gutterBottom={true} className="headers">
<b>
What makes Fairdrive different
</b>
Expand Down Expand Up @@ -64,12 +64,7 @@ function DifferentPoints(props: Props) {
<strong>Expanding dApp Store:</strong>{' '}
Explore and use a diverse range of dApps, all while maintaining sovereignty over your data.
</div>

{/*<div className={classes.header} style={{marginTop: '3rem'}}>*/}
{/* Reserve Your Spot as an Early Adopter*/}
{/*</div>*/}

<Typography variant="h2" gutterBottom={true} style={{marginLeft: '2rem'}}>
<Typography variant="h2" gutterBottom={true} className="headers">
<b>
Reserve Your Spot as an Early Adopter
</b>
Expand All @@ -79,7 +74,7 @@ function DifferentPoints(props: Props) {
{/* Join the waiting list*/}
{/*</div>*/}

<Typography variant="h3" gutterBottom={true} style={{marginLeft: '2rem'}}>
<Typography variant="h3" gutterBottom={true} className="headers">
<b>
Join the waiting list
</b>
Expand Down

0 comments on commit 4bf486d

Please sign in to comment.