Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add background image #51

Merged
merged 1 commit into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ export default function Home() {
</div>
</main>
<section className={clsx('row', styles.development)}>
<div className={styles.developmentSkew}></div>
<div className={styles.developmentContainer}>
<div className="row">
<h1 className={styles.mainModuleTitle}>
Expand Down Expand Up @@ -523,6 +524,7 @@ export default function Home() {
</div>
</section>
<section className={clsx('row', styles.user)}>
<div className={styles.userSkew}></div>
<div className={styles.userWrapper}>
<h1 className={styles.useTitle}>
<Translate>Who is</Translate>
Expand Down Expand Up @@ -571,6 +573,7 @@ export default function Home() {
</div>
</section>
<section className={clsx('row', styles.community)}>
<div className={styles.communitySkew}></div>
<div className={styles.communityWrapper}>
<h1 className={styles.communityTitle}>
<Translate>Join the</Translate>
Expand Down
125 changes: 110 additions & 15 deletions src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ a {
.headerButton {
display: flex;
justify-content: center;
margin: 1.5rem 0;
margin-bottom: 1.5rem 0;
}

.getStartedButton {
Expand Down Expand Up @@ -254,8 +254,25 @@ a {
padding: 12.5rem 6rem 15rem;
}

.getStartedButton {
padding: 0.6rem 0.8rem;
min-width: 13rem;
font-size: 1.2rem;
}

.githubButton {
padding: 0.6rem 0.8rem;
min-width: 13rem;
font-size: 1.2rem;
}

.githubIcon {
width: 1.5rem;
margin-right: 1rem;
}

.containerInfo {
max-width: 63.5rem;
max-width: 67.5rem;
}

.heroTitle {
Expand All @@ -268,8 +285,12 @@ a {
line-height: 3rem;
}

.headerButton {
margin: 2rem 0;
}

.description {
font-size: 1.8rem;
font-size: 1.9rem;
}

.partnersWrapper > * {
Expand All @@ -285,7 +306,7 @@ a {
}

.partners {
margin-top: 14.5rem !important;
margin-top: 4.5rem !important;
}

.partnersTitle {
Expand All @@ -295,35 +316,74 @@ a {

@media screen and (max-width: 2048px) {
.headerWrapper {
padding: 12rem 6rem 18rem;
padding: 10rem 6rem 18rem;
}

.containerInfo {
max-width: 63.5rem;
}

.partners {
margin-top: 3.5rem;
margin-top: 4.5rem;
}
}

@media screen and (max-width: 1920px) {
.headerWrapper {
padding: 9.7rem 6rem 16rem;
padding: 9rem 6rem 14rem;
}

.containerInfo {
max-width: 63.5rem;
}

.partners {
margin-top: 3rem;
}

.headerButton {
margin: 2rem 0;
}

.tagline {
min-height: 8rem;
line-height: 2.6rem;
font-size: 2rem;
}

.description {
font-size: 1.6rem;
}
}

@media screen and (max-width: 1600px) {
.headerWrapper {
padding: 8.2rem 6rem;
padding: 7.2rem 6rem 9rem;
}

.partners {
margin-top: 2.5rem;
margin-top: 3rem;
}
}

@media screen and (max-width: 1440px) {
.partners {
margin: 1.5rem 0;
}

.headerWrapper {
padding: 5rem 6rem 8rem;
}

.containerInfo {
max-width: 53rem;
}

.tagline {
min-height: 4rem;
line-height: 2rem;
font-size: 1.5rem;
}
}

@media screen and (max-width: 1200px) {
Expand Down Expand Up @@ -415,19 +475,52 @@ a {
}

.mainWrapper {
padding: 2rem 6rem;
padding: 4rem 6rem;
max-width: var(--ifm-container-width-xl);
width: 100%;
z-index: 3;
}

.mainSkew {
position: absolute;
top: 6%;
top: 10%;
left: center;
bottom: 4%;
width: 40%;
border-radius: 30%;
border-radius: 20%;
background-image: url(../../static/img/background.svg);
z-index: 2;
}

.developmentSkew {
position: absolute;
top: 10%;
left: 0;
width: 25rem;
height: 30rem;
border-radius: 10%;
background-image: url(../../static/img/background.svg);
z-index: 2;
}

.userSkew {
position: absolute;
top: 10%;
right: 0;
width: 22rem;
height: 32rem;
border-radius: 10%;
background-image: url(../../static/img/background.svg);
z-index: 2;
}

.communitySkew {
position: absolute;
left: 0;
bottom: 0%;
width: 15rem;
height: 20rem;
border-radius: 10%;
background-image: url(../../static/img/background.svg);
z-index: 2;
}
Expand Down Expand Up @@ -573,14 +666,15 @@ a {
flex-direction: column;
margin: 0;
background: linear-gradient(0deg, #eefff5, #fff);
position: relative;
}

.developmentCardWrapper {
position: relative;
}

.developmentContainer {
padding: 2rem 6rem;
padding: 4rem 6rem;
max-width: var(--ifm-container-width-xl);
width: 100%;
z-index: 3;
Expand Down Expand Up @@ -732,7 +826,7 @@ a {
display: flex;
flex-direction: column;
align-items: center;
padding: 2rem 6rem;
padding: 4rem 6rem;
z-index: 3;
}

Expand Down Expand Up @@ -943,14 +1037,15 @@ a {
width: 100%;
margin: 0;
background-image: linear-gradient(0deg, #eefff5, #fff);
position: relative;
}

.communityWrapper {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
padding: 2rem 6rem;
padding: 4rem 6rem;
z-index: 3;
}

Expand Down