add adaptive layout

This commit is contained in:
Firesieht 2022-05-07 00:23:01 +03:00
parent ff3a42d284
commit 12bf05f79b
8 changed files with 160 additions and 8 deletions

View File

@ -5,7 +5,7 @@ export const Main:React.FC = () =>{
return( return(
<div className={styles.main} id="main"> <div className={styles.main} id="main">
<h1 >AR Quest</h1> <h1 >AR Quest</h1>
<h2>Квесты прямо в вашем доме!</h2> <h2 style={{"textAlign":"center"}}>Квесты прямо в вашем доме!</h2>
<Link href="#buy" > <Link href="#buy" >
<a className={styles.inRow}> <a className={styles.inRow}>
Далее <img src="/images/arrowUp.svg"/> Далее <img src="/images/arrowUp.svg"/>

View File

@ -60,3 +60,39 @@
border:none; border:none;
background-color: transparent; background-color: transparent;
} }
@media (max-width: 385px){
.text{
margin-left: 40px;
}
.btn{
margin-left:-60%;
}
}
@media (max-width: 300px){
.text{
margin-left: 40px;
}
.btn{
margin-left:-30%;
}
}
@media (max-width: 300px){
.text{
margin-left: 40px;
}
.btn{
margin-left:-30%;
}
}
@media (max-width: 260px){
.menu{
font-size: 20px;
}
}

View File

@ -58,3 +58,15 @@
background-color: #f9f9fd; background-color: #f9f9fd;
} }
.img{
}
@media (max-width: 800px){
.modalButton{
margin-left: 100;
}
.img{
width: 60%;
padding-bottom: 200px;
}
}

View File

@ -49,7 +49,7 @@ export const Modal:React.FC<{show:boolean, setShow:(a:boolean)=>void }> = (props
</ul> </ul>
</div> </div>
<h2>Фото</h2> <h2>Фото</h2>
<img src="/images/mockups.png"/> <img className={styles.img} src="/images/mockups.png"/>
</div> </div>
</div> </div>
); );

View File

@ -7,3 +7,9 @@
display: none; display: none;
} }
} }
@media (max-width: 260px){
.ring{
display: none;
}
}

View File

@ -86,13 +86,13 @@
.ilArrow{ .ilArrow{
width: 55%; width: 55%;
top: -50px; top: -60px;
transform: rotate(-25deg); transform: rotate(-35deg);
left: 27% left: 40%
} }
.ilText{ .ilText{
left: -30% left: -10%
} }
.denArrow{ .denArrow{
width: 55%; width: 55%;
@ -112,3 +112,99 @@
} }
} }
@media (max-width: 430px) {
.team{
padding-top: 50%;
}
.avatar{
width: 40%;
}
.carouselAvatar{
font-size: 12px;
flex-direction: column ;
}
.miText{
position: relative;
top:-380px;
left: 13%
}
.miArrow{
top: -200px;
left: -30%;
width: 40%;
}
.danya{
margin-top: -150px;
}
.ilArrow{
width: 40%;
top: -50px;
transform: rotate(-35deg);
left: 30%
}
.ilText{
top:-140px;
left: -5%
}
.denArrow{
width: 40%;
left: -30%;
transform: scale(-1, 1) rotate(-35deg);
}
.denText{
top: -130px;
left:10%
}
}
@media (max-width: 300px) {
.team{
padding-top: 50%;
}
.avatar{
width: 40%;
}
.carouselAvatar{
font-size: 10px;
flex-direction: column ;
}
.miText{
position: relative;
top:-300px;
left: 10%
}
.miArrow{
top: -150px;
left: -33%;
width: 40%;
}
.danya{
margin-top: -150px;
}
.ilArrow{
width: 40%;
top: -50px;
transform: rotate(-35deg);
left: 30%
}
.ilText{
top:-100px;
left: -5%
}
.denArrow{
width: 40%;
left: -30%;
transform: scale(-1, 1) rotate(-35deg);
}
.denText{
top: -100px;
left:10%
}
}

View File

@ -4,7 +4,7 @@
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",
"build": "next build", "build": "next build && next export",
"start": "next start", "start": "next start",
"lint": "next lint" "lint": "next lint"
}, },

View File

@ -16,7 +16,9 @@ html{
font-family: 'Inconsolata', monospace; font-family: 'Inconsolata', monospace;
} }
h1,h2{
text-align: center;
}
body{ body{
background: #FAFAFA; background: #FAFAFA;
overflow-x: hidden; overflow-x: hidden;