Skip to content

Commit

Permalink
started to fix responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
leopoldch committed Jan 29, 2024
1 parent b18583e commit 6375095
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/components/Main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function Main() {
<div className={"item1-fourth-container"}>
<motion.img src={item1} className={"item1-fourth"}
initial={{x: 300, opacity: 0.5, scale: 1, rotate: 90}}
animate={{x: 0, opacity: 1, scale: 1, rotate: 90}}
animate={{x: -29, opacity: 1, scale: 1, rotate: 90}}
transition={{duration: 2}}

></motion.img>
Expand Down
13 changes: 7 additions & 6 deletions src/pages/Site.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ import Lights from "../components/Lights";


function Site(){
return(<>
<Main/>
<Desc/>
<Son/>
<Lights/>
<Footer/>
return(
<>
<Main/>
<Desc/>
<Son/>
<Lights/>
<Footer/>
</>
);
}
Expand Down
1 change: 1 addition & 0 deletions src/style/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ body{
color: beige;
overflow-x: hidden;
opacity: 1;
overflow: hidden;
}
::-webkit-scrollbar {
display: none;
Expand Down
12 changes: 6 additions & 6 deletions src/style/Main.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,13 @@
/* iPads (portrait and landscape) ----------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {


.image-flyht{
position: absolute;;
top: -1%;
right: 2em;
width: 20vmin;
height: 20vmin;
margin-right: -1em;
}
.item5-first{
width: 20%;
Expand Down Expand Up @@ -121,11 +122,10 @@
top: -5%;
left: 3em;
}

.item1-fourth {
transform: rotate(90deg);
position: absolute;
right: 2em;
bottom: 0.1vmin;
}
transform: rotate(90deg);
position: absolute;
}

}

0 comments on commit 6375095

Please sign in to comment.