Skip to content
Snippets Groups Projects
Commit 4332573f authored by Aliaksandr BUDZKO's avatar Aliaksandr BUDZKO
Browse files

feat: small mobile responsiveness

parent 4fbaac46
Branches
No related tags found
No related merge requests found
Showing
with 122 additions and 19 deletions
src/assets/main/notes_mobile.png

50.7 KiB

src/assets/main/vscode_mobile.png

45.3 KiB

src/assets/main/vscode_mobile2.png

27.2 KiB

......@@ -2,8 +2,7 @@
body {
margin: 0;
font-family: Hiragino Kaku Gothic StdN, sans-serif;
font-weight: 800;
font-family: $primary_font;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
......
......@@ -7,6 +7,7 @@
display: flex;
font-family: $primary_font;
color: $primary_black;
margin: 0 auto;
.Logo {
float: left;
......@@ -29,7 +30,7 @@
flex-direction: row;
.Link {
margin: 0 auto;
padding-right: 2%;
text-align: center;
min-width: fit-content;
......
......@@ -25,7 +25,7 @@ const BottomSection = ({innerRef, contactRef}) => {
</p>
</div>
<div className={styles.ButtonContainer}>
<Button type="link" link={articleLink}>Acceder à l'article</Button>
<Button type="link" link={articleLink} className={styles.ArticleButton}>Acceder à l'article</Button>
</div>
</div>
......@@ -41,7 +41,7 @@ const BottomSection = ({innerRef, contactRef}) => {
<p className={styles.BigCaption}>
Offrez à vos étudiants les meilleurs outils pour apprendre.
</p>
<Button type={"link"} link={askForDemoLink}>Contactez-nous</Button>
<Button type={"link"} link={askForDemoLink} className={styles.ContactButton}>Contactez-nous</Button>
<p className={styles.SmallCaption}>
Pour être les prochains !
</p>
......
......@@ -238,7 +238,7 @@
}
}
@media (max-width: 414px) {
@media (max-width: 425px) {
.BottomSection {
min-height: 70vh;
}
......@@ -251,10 +251,48 @@
.BottomBlock {
.ContactLinks {
max-width: 50%;
Button {
}
}
}
}
@media (max-width: 320px) {
.BottomSection {
min-height: 55vh;
.MiddleBlock {
.Caption {
.ButtonContainer {
margin-top: 5%;
padding-right: 0;
a {
font-size: 3vw;
}
}
}
}
.BottomBlock {
.ContactLinks {
.BigCaption {
font-size: 2.2vw;
margin-bottom: 10%;
}
a {
font-size: 3vw;
}
}
}
}
}
\ No newline at end of file
......@@ -107,3 +107,17 @@
}
}
}
@media (max-width: 575.98px) {
.CloudSection {
.UpperBlock {
margin-top: 10%;
}
}
}
@media (max-width: 320px) {
.CloudSection {
min-height: 40vh;
}
}
......@@ -99,6 +99,12 @@
}
}
@media (max-width: 425px) {
.FeatureSection {
min-height: 40vh;
}
}
@media (max-width: 375px) {
.FeatureSection {
min-height: 50vh;
......@@ -120,3 +126,9 @@
}
}
@media (max-width: 320px) {
.FeatureSection {
min-height: 40vh;
}
}
......@@ -46,17 +46,27 @@
flex-direction: column;
text-align: center;
padding-top: 10%;
min-height: 90vh;
padding-top: 0;
min-height: 55vh;
.LeftSide {
.Octopus {
width: 50vw;
height: 30vh;
}
}
.RightSide {
text-align: center;
.Title {
font-size: 10vw;
.Caption {
font-size: 4vw;
font-size: 3vw;
text-align: center;
}
......@@ -64,3 +74,11 @@
}
}
}
@media (max-width: 320px) {
.LandingSection {
min-height: 50vh;
}
}
......@@ -2,10 +2,13 @@ import styles from "./StatsSection.module.scss";
import MultiColoredText from "../../components/MultiColoredText/MultiColoredText";
import statsImage from "../../../assets/main/notes.png";
import statsImageMobile from "../../../assets/main/notes_mobile.png";
import {primaryBlack, white} from "../../../style/colors.module.scss";
const title = [
{text: "Comment suivre ", color: white},
{text: "vos étudiants ? ", color: primaryBlack},
......@@ -23,7 +26,10 @@ const StatsSection = ({innerRef}) => {
</p>
</div>
<div className={styles.RightSide}>
<img src={statsImage} alt={"notes screen"} className={styles.NotesImage}/>
<picture>
<source media={"(max-width : 768px)"} srcSet={statsImageMobile}/>
<img src={statsImage} alt="octopus" className={styles.NotesImage}/>
</picture>
</div>
</div>
);
......
......@@ -156,3 +156,9 @@
}
}
}
@media (max-width: 320px) {
.StatsSection {
background-position: 15% 101%;
}
}
\ No newline at end of file
......@@ -80,7 +80,7 @@
@media (max-width: 768px) {
.TowerSection {
min-height: 40vh;
min-height: 50vh;
flex-direction: row;
justify-content: center;
......@@ -108,4 +108,9 @@
}
}
@media (max-width: 375px) {
.TowerSection {
min-height: 40vh;
}
}
\ No newline at end of file
......@@ -2,22 +2,26 @@ import styles from "./VscodeSection.module.scss";
import MultiColoredText from "../../components/MultiColoredText/MultiColoredText";
import vscodeImage from "../../../assets/main/vscode_screen.png";
import vscodeImageMobile from "../../../assets/main/vscode_mobile2.png"
import {primaryBlack, white} from "../../../style/colors.module.scss";
const vscodeTitle = [
{text: "Un ", color: white},
{text: "IDE complet ", color: primaryBlack},
{text: "pour chacun de vos étudiants", color: white}
];
const VscodeSection = ({innerRef}) => {
return (
<div ref={innerRef} id="VscodeSection" className={styles.VscodeSection}>
<div className={styles.LeftSide}>
<img src={vscodeImage} alt={"vscodeScreen"} className={styles.VscodeImage}/>
<picture>
<source media={"(max-width : 425px)"} srcSet={vscodeImageMobile}/>
<img src={vscodeImage} alt="octopus" className={styles.VscodeImage}/>
</picture>
</div>
<div className={styles.RightSide}>
<div className={styles.Title}>
......
......@@ -58,7 +58,7 @@
.VscodeSection {
flex-direction: column;
text-align: center;
min-height: 50vh;
min-height: 60vh;
background-position: 95% 0;
......@@ -66,7 +66,7 @@
.VscodeImage {
margin-top: 2%;
width: 70vw;
height: 30vh;
height: 40vh;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment