-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(website): home page styling (#4246)
- Loading branch information
1 parent
6e87dc1
commit 8e7af5e
Showing
12 changed files
with
173 additions
and
99 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
52 changes: 52 additions & 0 deletions
52
website/src/components/Homepage/Features/Features.module.scss
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,52 @@ | ||
@import '@site/src/css/fonts'; | ||
|
||
.featuresGap { | ||
--ifm-col-width: calc(1 / 3 * 100%); | ||
margin-bottom: 91px; | ||
} | ||
|
||
.featureImage { | ||
height: 60px; | ||
width: 60px; | ||
margin-bottom: 18px; | ||
} | ||
|
||
.featureTitle { | ||
@include h5; | ||
margin-bottom: 14px; | ||
letter-spacing: -0.2px; | ||
} | ||
|
||
.featureText { | ||
@include t2; | ||
max-width: 256px; | ||
} | ||
|
||
@media only screen and (max-width: 996px) { | ||
.featuresGap { | ||
--ifm-col-width: 50%; | ||
} | ||
} | ||
|
||
@media only screen and (max-width: 500px) { | ||
.featuresGap { | ||
--ifm-col-width: 100%; | ||
|
||
margin-bottom: 29px; | ||
padding-left: 25px; | ||
} | ||
|
||
.featureImage { | ||
height: 45px; | ||
width: 45px; | ||
margin-bottom: 7px; | ||
} | ||
|
||
.featureTitle { | ||
margin-bottom: 11px; | ||
} | ||
|
||
.featureText { | ||
max-width: 290px; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
32 changes: 20 additions & 12 deletions
32
website/src/components/Homepage/Features/HomepageFeatures.module.scss
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 |
---|---|---|
@@ -1,15 +1,23 @@ | ||
@import '@site/src/css/fonts'; | ||
|
||
.benefitsHeader { | ||
font-family: 'Nunito Sans', sans-serif; | ||
font-style: normal; | ||
font-weight: 700; | ||
font-size: 58px; | ||
line-height: 70px; | ||
color: #131419; | ||
margin-top: 125px; | ||
margin-bottom: 125px; | ||
margin-left: -5px; | ||
} | ||
margin-bottom: 24px; | ||
|
||
[data-theme='dark'] .benefitsHeader { | ||
color: #ffffff; | ||
@media only screen and (max-width: 1200px) { | ||
--ifm-spacing-horizontal: 1.625rem; | ||
} | ||
} | ||
|
||
.benefitsTitle { | ||
@include h2; | ||
color: var(--ifm-heading-color); | ||
margin-top: 136px; | ||
margin-bottom: 104px; | ||
margin-left: -5px; | ||
|
||
@media only screen and (max-width: 500px) { | ||
font-size: 40px; | ||
margin-top: 47px; | ||
margin-bottom: 30px; | ||
} | ||
} |
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
53 changes: 29 additions & 24 deletions
53
website/src/components/Homepage/SubHeader/HomepageSubHeader.js
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 |
---|---|---|
@@ -1,32 +1,37 @@ | ||
import React from 'react'; | ||
import clsx from 'clsx'; | ||
import styles from './HomepageSubHeader.module.scss'; | ||
|
||
const HomepageSubHeader = () => { | ||
return ( | ||
<div className={styles.subHeader}> | ||
<div className={styles.callToAction}> | ||
<span> | ||
Follow us on <strong>social networks:</strong> | ||
</span> | ||
return (<div className={styles.subHeaderWrapper}> | ||
<div className='container'> | ||
<div className='row'> | ||
<div className={clsx('col', styles.subHeader)}> | ||
<div className={styles.callToAction}> | ||
<span> | ||
Follow us on <strong>social networks:</strong> | ||
</span> | ||
</div> | ||
<div className={styles.socialNetworks}> | ||
<a className={styles.discordButton} href='https://discord.gg/CkD5QKheF5' target='_blank'></a> | ||
<a className={styles.twitterButton} href='https://x.com/detoxe2e?s=20' target='_blank'> | ||
<span className={styles.twitterLogo}></span> | ||
<span className={styles.twitterFollowText}>Follow </span> | ||
<span className={styles.twitterFollowId}>@detoxe2e</span> | ||
</a> | ||
<a className={styles.twitterCounter} href='https://x.com/detoxe2e?s=20' target='_blank'> | ||
<span>486</span> | ||
<span> followers</span> | ||
</a> | ||
<a className={styles.githubButton} href='https://github.com/wix/detox' target='_blank'></a> | ||
<a className={styles.githubCounter} href='https://github.com/wix/detox/stargazers' target='_blank'> | ||
<span>10,598</span> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div className={styles.socialNetworks}> | ||
<a className={styles.discordButton} href="https://discord.gg/CkD5QKheF5" target="_blank"></a> | ||
<a className={styles.twitterButton} href="https://x.com/detoxe2e?s=20" target="_blank"> | ||
<span className={styles.twitterLogo}></span> | ||
<span className={styles.twitterFollowText}>Follow </span> | ||
<span className={styles.twitterFollowId}>@detoxe2e</span> | ||
</a> | ||
<a className={styles.twitterCounter} href="https://x.com/detoxe2e?s=20" target="_blank"> | ||
<span>486</span> | ||
<span> followers</span> | ||
</a> | ||
<a className={styles.githubButton} href="https://github.com/wix/detox" target="_blank"></a> | ||
<a className={styles.githubCounter} href="https://github.com/wix/detox/stargazers" target="_blank"> | ||
<span>10,598</span> | ||
</a> | ||
</div> | ||
</div> | ||
); | ||
</div>); | ||
}; | ||
|
||
export default HomepageSubHeader; |
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.