Skip to content

Commit

Permalink
feat: 메인 첫번째화면
Browse files Browse the repository at this point in the history
  • Loading branch information
LAIIonKING committed Nov 13, 2022
1 parent eb35350 commit 94ecd9b
Show file tree
Hide file tree
Showing 10 changed files with 158 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<!--구글폰트-->
<style>
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;300;400;500;700;900&family=Work+Sans:wght@200;300;400;500;600;700;900&display=swap');
</style>
<!--폰트어썸-->
<script src="https://kit.fontawesome.com/5fb7170dc9.js" crossorigin="anonymous"></script>
Expand Down
Binary file added client/src/assets/video/main2.webm
Binary file not shown.
Binary file added client/src/assets/video/main3.webm
Binary file not shown.
Binary file added client/src/assets/video/main4.webm
Binary file not shown.
Binary file added client/src/assets/video/main5.webm
Binary file not shown.
Binary file added client/src/assets/video/main6.webm
Binary file not shown.
5 changes: 4 additions & 1 deletion client/src/components/header/css/nav.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
nav{
display: flex;
margin: 25px 0px;
width: 100%;
background-color: var(--color-white);
height: 70px;

button{
margin-top: 20px;
color: #5C4B29;
font-family: 'Noto Sans KR', sans-serif;
font-size: 16px;
Expand Down Expand Up @@ -47,6 +49,7 @@ nav{
}

.textLogo{
margin-top: 20px;
img{
height: 20px;
position: absolute;
Expand Down
1 change: 1 addition & 0 deletions client/src/components/header/js/Nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default function Nav() {
top: '0',
left: '0',
right: '0',
zIndex: '2',
});
} else {
setFixNav({});
Expand Down
114 changes: 114 additions & 0 deletions client/src/components/home/css/home.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@

.videoWrap{
display: flex;
margin-top: 120px;
@media (max-width: 640px) {
margin-top: 60px;
}
}

.videoCenterWrap{
margin: 0px 128px;
.video1{
height: 25vw;
position: relative;
right: 20px;
@media (max-width: 640px) {
height: 70vw;
margin: 0px 60px;
right: 0px;
}
}
@media (max-width: 980px) {
margin: 0px 60px;

}
}


.video2{
max-height: 12vw;
position: relative;
top: 7vw;
left: 3vw;
@media (max-width: 980px) {
top: 4vw;
}
@media (max-width: 640px) {
left: 3vw;
display: none;
}
}

.video3{
max-height: 13vw;
position: relative;
top: 10px;
right: 50px;
@media (max-width: 640px) {
display: none;
}
}

.video4{
max-height: 18vw;
position: relative;
bottom: 50px;
@media (max-width: 640px) {
display: none;
}
}

.video5{
max-height: 13vw;
position: relative;
top: 10vw;
right: 3vw;
@media (max-width: 640px) {
display: none;
}
}

.mainText{
position: relative;
left: 50%;
bottom: 70px;
transform: translate(-50%, 0%);
font-family: 'Work Sans', sans-serif;
text-align: center;

.mainTextTop{
background-color: var(--color-yellow);
max-width: 40vw;
position: relative;
left: 50%;
transform: translate(-50%, 0%);
margin-bottom: 10px;
h2{
font-size: 2vw;
font-weight: 600;
color: var(--color-white);
transform: scaleY(0.7);
@media (max-width: 640px) {
font-size: 5vw;
}
}

}

.mainTextBottom{
h1{
color: var(--color-blue);
font-size: 7vw;
font-weight: 800;
white-space: nowrap;
transform: scaleY(1.5);
@media (max-width: 640px) {
font-size: 9vw;
}
}
}
@media (max-width: 640px) {
bottom: 40px;
}
}
39 changes: 38 additions & 1 deletion client/src/components/home/js/Home.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,46 @@
import '../css/home.scss';
import video1 from '../../../assets/video/main2.webm';
import video2 from '../../../assets/video/main3.webm';
import video3 from '../../../assets/video/main4.webm';
import video4 from '../../../assets/video/main5.webm';
import video5 from '../../../assets/video/main6.webm';

export default function Home() {
return (
<>
<div>Home</div>
<div className="mainWrap">
<div className="videoWrap">
<div className="videoLeftWrap">
<video className="video2" autoPlay={true} muted loop="true">
<source src={video2} type="video/webm" />
</video>
<video className="video4" autoPlay={true} muted loop="true">
<source src={video4} type="video/webm" />
</video>
</div>
<div className="videoCenterWrap">
<video className="video1" autoPlay={true} muted loop="true">
<source src={video1} type="video/webm" />
</video>
</div>
<div className="videoRightWrap">
<video className="video5" autoPlay={true} muted loop="true">
<source src={video5} type="video/webm" />
</video>
<video className="video3" autoPlay={true} muted loop="true">
<source src={video3} type="video/webm" />
</video>
</div>
</div>
<div className="mainText">
<div className="mainTextTop">
<h2>LUXURY, FRESH, ORGANIC ON!</h2>
</div>
<div className="mainTextBottom">
<h1>GO LOVE YOURDOG</h1>
</div>
</div>
</div>
</>
);
}

0 comments on commit 94ecd9b

Please sign in to comment.