<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=3.0">
<title>jinuk---</title>
<link rel="stylesheet" href="style.css">
<style type="text/css"></style>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" src="script.js"></script>
<script type="text/javascript"></script>
</head>
<body>
<main>
<div>
<p>Flexible and hd</p>
<h1>Variations passages available suffered</h1>
<h3>A more beautiful world</h3>
<p>
The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections
1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original
form.</p>
<button>View more</button>
<div> ● ● ● ● ●</div>
</a>
</div>
<div></div>
<header>
<div OnClick="location.href ='javascript:void(0)'">
Flexible and static
</div>
<nav>
<ul>
<li OnClick="location.href ='javascript:void(0)'">Janunary</li>
<li OnClick="location.href ='javascript:void(0)'">February</li>
<li OnClick="location.href ='javascript:void(0)'">March</li>
<li OnClick="location.href ='javascript:void(0)'">April</li>
<li OnClick="location.href ='javascript:void(0)'">May</li>
</ul>
</nav>
</header>
</main>
<article class="team">
<h2>❙ Team archives</h2>
<div>
<section>
<p>Suspendisse facilisis luctus ullamcorper. Donec.</p>
<div></div>
</section>
<section>
<p>Phasellus sit amet lacus venenatis, bibendum ex scelerisque, faucibus orci. Suspendisse metus orci, egestas
congue nulla bibendum, consectetur tincidunt libero. Sed tincidunt enim tristique tortor tempus dignissim.</p>
</section>
<section>
<p>Duis ac gravida orci. Morbi ut ornare ligula. Sed tellus mauris, sagittis vitae tellus non, scelerisque
ornare mauris. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
Etiam commodo iaculis
congue.</p>
</section>
<section>
<p>Duis lobortis congue mauris quis.</p>
<div></div>
</section>
</div>
</article>
<article class="brand">
<h2>❙ Brnad social </h2>
<h3>Manifesto</h3>
<p>
fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of
using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here,
content here',
making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as
their default model text, and a search
</p>
</article>
<article class="beauty">
<h2>❙ Beauty inside</h2>
<div>
<section>
<p>You need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum
generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator
on the Internet.</p>
</section>
<section>
<p>If you are going</p>
<div></div>
</section>
<section>
<p>Praesent ultrices molestie</p>
<div></div>
</section>
<section>
<p>It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to
generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from
repetition, injected humour
</p>
</section>
</div>
</article>
<article class="why">
<h2>Why do we use it?</h2>
<p>It is a long established fact that a reader will be <br>distracted by the readable content of a page when looking
at its layout.</p>
</article>
<article class="our">
<h2>Our company</h2>
<div>
<div>
<img
src="https://images.unsplash.com/photo-1546538994-4f15d0aa966f?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=60">
</div>
<div>
<h3>2020 year</h3> <br>
<p>
Integer a faucibus erat. Integer tortor lectus, rhoncus nec neque eu, egestas aliquet nisi. <br>Donec
porttitor dictum odio vitae porttitor. <br>Aenean efficitur est eu metus sagittis iaculis eget a justo.
<br>Nunc venenatis sem in nibh dignissim elementum. <br>Pellentesque non ex et est sagittis efficitur. <br>Ut
tincidunt, nunc sed pellentesque varius, purus ante faucibus quam, ac rutrum augue ipsum ac lectus. <br>Aenean
sit amet
condimentum erat. Maecenas a dignissim odio. Phasellus urna ante, iaculis eu venenatis vel, eleifend in arcu.
<br>Integer quis luctus sapien. Suspendisse lobortis nisl leo, eget viverra libero commodo nec. <br>Ut
accumsan sollicitudin
lacus at ornare. Donec facilisis molestie ipsum, eget semper arcu consectetur a.
</p>
</div>
</div>
<p>Now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still
in their infancy.<br> Various versions have evolved over the years, sometimes by accident.</p>
</article>
<article class="company">
<h2>Company info</h2>
<div>
<section>
<h3>Niro</h3>
It is a long established fact that a reader will be distracted by the readable content of a page when
looking at
its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters.
</section>
<section>
<h3>Contact</h3>
It is a long established fact that a reader will be distracted by the readable content of a page when
looking at
its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters,
as
opposed to using
'Content here, content here', making it look like readable English.
</section>
<section>
<h3>Latest post</h3>
If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing
hidden
in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks
as
necessary.
</section>
</div>
</article>
<footer>
<h2>Contact us</h2>
<p>
Where can I get some?
<address>of London, 150 London Wall, Barbican, London EC2Y 5HN England</address>
010-0000-0000
</p>
</footer>
</body>
</html>
@charset "utf-8";
@import url("https://fonts.googleapis.com/css?family=Roboto&display=swap");
@import url("https://fonts.googleapis.com/css?family=Oswald&display=swap");
@import url("https://fonts.googleapis.com/css?family=Playfair+Display&display=swap");
*{
margin: 0;
padding: 0;
list-style: none;
box-sizing: border-box;
word-break: keep-all;
outline: 0px solid silver;
}
img {
width: 100px;
}
body {
font-family: "Roboto", sans-serif;
font-size: 0.9rem;
color: #999;
line-height: 1rem;
letter-spacing: 0.1px;
}
h1, h2, h3 {
font-family: "Oswald", sans-serif;
}
h1 {
font-size: 4rem;
line-height: 4rem;
text-transform: uppercase;
}
h2 {
font-size: 2.4rem;
margin-bottom: 3rem;
text-transform: uppercase;
text-align: center;
}
h3 {
font-size: 1.4rem;
margin-bottom: 1rem;
}
h4, h5 {
font-family: "Playfair Display", serif;
}
h4 {
font-size: 1.1rem;
line-height: 1.4rem;
}
h5 {
font-size: 0.7rem;
line-height: 2rem;
}
a:link {
color: #666;
text-decoration: none;
}
a:visited {
color: #666;
}
a:hover {
color: red;
}
a:active {
color: red;
}
button {
font-size: 0.7rem;
text-transform: uppercase;
padding: 10px 30px;
border: 1px solid #ccc;
background: white;
transition: 0.3s;
}
button:hover {
background: crimson;
color: white;
cursor: pointer;
}
/* 단순한 위치조정은 디스플레이 플렉스, 정교한 위치조정은 좌표로 직접 해야함 */
main {
position: relative;
background: url("https://images.unsplash.com/photo-1548924607-fd498b796071?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80")
no-repeat;
background-size: cover;
background-position: center center;
height: 700px;
display: flex;
justify-content: center;
align-items: center;
}
main > :nth-child(1) {
z-index: 1;
width: 600px;
color: white;
text-align: center;
}
main > :nth-child(1) * {
padding: 16px 0;
}
main > :nth-child(1) button {
padding: 10px 30px;
}
main > :nth-child(2) {
position: absolute;
background: rgba(0, 0, 0, 0.4);
width: 100%;
height: 100%;
}
main header {
z-index: 2;
position: absolute;
background: black;
width: 1000px;
bottom: -50px;
display: flex;
justify-content: space-between;
line-height: 6rem; /* li에 줘버리면 div가 못먹어서 여기 넣음 */
color: white;
}
main header div,
main header nav ul li {
transition: 0.8s;
cursor: pointer;
}
main header div {
text-transform: uppercase;
font-weight: bold;
padding: 0 32px;
}
main header div:hover {
color: yellow;
}
main header nav {
text-transform: uppercase;
text-align: center;
}
/* main header nav ul {} */
/* nav는 플렉스로 정렬못해서 인라인 블록으로 처리함 */
main header nav ul li {
display: inline-block;
width: 120px;
padding: 0 16px;
}
main header nav ul li:hover {
color: red;
background: white;
}
.team {
padding: 130px 0 80px;
}
.team > div {
display: flex;
flex-wrap: wrap;
}
.team div section {
position: relative;
background: #ccc;
width: 50%;
height: 800px; /* 툴바 등등 제외하고 정한 크기*/
padding: 100px;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
color: white;
}
.team > div > :first-child {
background: url("https://images.unsplash.com/photo-1550318708-b7aff53046e0?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1834&q=80")no-repeat;
background-size: cover;
background-position: top center;
}
.team > div > :last-child {
background: url("https://images.unsplash.com/photo-1549217272-1c31166a69f5?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=967&q=8")
no-repeat;
background-size: cover;
background-position: top center;
}
.team div section p {
z-index: 1;
}
.team div section div {
position: absolute;
background: rgba(0, 0, 0, 0.4);
width: 100%;
height: 100%;
}
.brand {
padding: 80px 30%;
text-align: center;
background: #eee;
}
.beauty {
width: 1000px;
margin: 0 auto;
padding: 80px 0;
}
.beauty > div {
display: flex;
flex-wrap: wrap;
}
.beauty div section {
position: relative;
background: #ccc;
width: 500px;
height: 500px;
padding: 100px;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
color: white;
}
.beauty > div > :nth-child(2) {
background: url("https://images.unsplash.com/photo-1550318708-b7aff53046e0?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1834&q=80") no-repeat;
background-size: cover;
background-position: top center;
}
.beauty > div > :nth-child(3) {
background: url("https://images.unsplash.com/photo-1549217272-1c31166a69f5?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=967&q=8") no-repeat;
background-size: cover;
background-position: top center;
}
/* 박스 만드는법(쌓는법)
백그라운드 컬러로 만듦
그 위에 앱솔루트
그 위에 z-인덱스 */
.beauty div section p {
z-index: 1; /* 박스위에 박스를 쌓을때 사용 z인덱스의 디폴트는 0 숫자가 커질수록 위로 올라감 */
}
/* 앱솔루트로 포지션을 지정 좌표를 정해주지 않았는데 자동으로 가서 붙음, 디폴트는 0, 0 */
.beauty div section div {
position: absolute;
background: rgba(0, 0, 0, 0.4);
width: 100%;
height: 100%;
}
.why {
padding: 80px 0;
text-align: center;
}
/*컨텐츠가 전체 높이보다 적으면 지정, 컨텐츠가 높이를 넘을거 같으면 오토 */
.our {
padding: 80px 0;
background: url("https://images.unsplash.com/photo-1500870678590-71c79bae1e54?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1351&q=80") no-repeat;
background-size: cover;
background-position: top center;
background-attachment: fixed; /* 이걸로 배경은 멈춰있고 위에 컨텐츠만 움직임 */
color: white;
}
.our > div {
width: 1000px;
margin: 0 auto;
display: flex;
justify-content: space-between;
}
.our > div > :first-child {} /* 이 태그는 별로에용 하고 알려주는 역할 (주석으로 달면 안되는건가?) */
.our div :first-child img {
width: 180px;
}
.our > div > :last-child {
width: 770px;
padding: 30px 0;
}
/* .our :last-child, .our :nth-child 도 사용은 가능하지만 맥락을 보고 사용해야함 */
.our > p {
padding: 32px;
text-align: center;
}
.company {
width: 1000px;
margin: 0 auto;
padding: 80px 0;
}
.company div {
display: flex;
justify-content: space-between;
}
.company div section {
width: 320px;
}
footer {
background: #eee;
padding: 80px 0;
text-align: center;
}