gwooden_코린이
HTML+CSS 당근마켓 홈페이지 만들어보기_클론코딩 본문
728x90
더보기
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>당신 근처의 당근마켓</title>
<link rel="stylesheet" href="css/st1.css">
<link rel="shortcut icon" type="image/x-icon" href="image/favicon.png" />
</head>
<body>
<header>
<div class="logo">
<img src="image/favicon.png">
</div>
<div class="list">
<a href="#">중고거래</a>
<a class="l1" href="#">동네가게</a>
<a class="l1" href="#">알바</a>
<a class="l1" href="#">부동산 직거래</a>
</div>
<div class="textButton">
<form>
<div class="text">
<input type="text" placeholder=" 물품이나 동네를 검색해보세요"/>
</div>
<div class="chat1">
<input id="button" type="button" value="채팅하기"/>
</div>
</form>
</div>
</header>
<section>
<div class="content">
<h1>당신 근처의 당근 마켓</h1>
<p>중고 거래부터 동네 정보까지, 이웃과 함께해 가깝고 따뜻한 당신의 근처를 만들어요.</p>
</div>
<div class="contentImg">
<img src="image/1.png">
</div>
</section>
</body>
</html>
@import url('https://fonts.googleapis.com/css2?family=Jua&family=Merienda:wght@600&family=Noto+Sans+KR:wght@400;500&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Noto Sans KR', sans-serif;
}
header {
background-color: white;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
box-sizing: border-box;
}
.logo {
width: 130px;
margin-right: 30px;
margin-left: 50px;
display: flex;
}
.logo img {
width: 38px;
height: 35px;
align-items: center;
}
.logo::after {
content: "당근마켓";
color: #ff8a3d;
font-size: 25px;
font-weight: bold;
align-items: center;
}
div a {
text-decoration: none;
color: black;
font-size: 20px;
font-weight: 500;
margin: 10px;
}
.list a:nth-child(1) {
color: #ff8a3d;
}
.l1:hover {
color: gray;
}
.textButton {
margin-left: 200px;
width: 500px;
}
.text input {
border: 0;
border-radius: 5%;
background-color: rgb(238, 238, 238);
width:270px;
height:35px;
font-size:15px;
float: left;
}
.chat1 input {
border: 1px solid lightgray;
border-radius: 5%;
background-color: white;
width:80px;
height:35px;
font-size:15px;
margin-left: 10px;
}
section {
background-color: rgb(255, 251, 246);
height: 700px;
display: flex;
justify-content: center;
align-items: center;
}
.content {
justify-content: center;
position: relative;
}
.content h1 {
width: 250px;
height: 100%;
margin-bottom: 20px;
font-size: 50px;
}
.content p {
width: 300px;
height: 100%;
}
.contentImg img {
width: 800px;
height: 700px;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>당신 근처의 당근마켓</title>
<link rel="stylesheet" href="css/st1copy.css">
<link rel="icon" href="image/favicon.png">
<script src="https://kit.fontawesome.com/20283a0d49.js" crossorigin="anonymous"></script>
</head>
<body>
<header>
<div class="left-menu">
<div class="logo">
<img src="image/logo.png">
</div>
<nav class="h-nav">
<ul>
<li>
<a href="">중고거래</a>
</li>
<li>
<a href="">동네가게</a>
</li>
<li>
<a href="">알바</a>
</li>
<li>
<a href="">부동산 직거래</a>
</li>
</ul>
</nav>
</div>
<div class="right-menu">
<div>
<form>
<input class="search" type="text" placeholder="물품이나 동네를 검색해보세요">
</form>
</div>
<div>
<a class="btn-cheting" href="">채팅하기</a>
</div>
</div>
</header>
<content>
<section>
<div class="first_content">
<h1>당신 근처의<br>당근마켓</h1>
<p>
중고 거래부터 동네 정보까지, 이웃과 함께해<br>
가깝고 따뜻한 당신의 근처를 만들어요.
</p>
</div>
<div class="img-box">
<img src="image/1.png">
</div>
</section>
<section>
<div class="img-box">
<img src="image/2.png">
</div>
<div>
<div>
<h1>우리 동네<br>중고 직거래 마켓</h1>
<p>동네 주민들과 가깝고 따뜻한 거래를 지금 경험해보세요.</p>
</div>
<div>
<a class="btn" href="">인기매물 보기</a>
<a class="btn" href="">믿을 수 있는 중고거래</a>
</div>
</div>
</section>
</content>
<footer>
<nav class="f-nav">
<ul>
<li><a href="">중고거래</a></li>
<li><a href="">동네가게</a></li>
<li><a href="">당근알바</a></li>
</ul>
<ul>
<li><a href="">당근비즈니스</a></li>
<li><a href="">채팅하기</a></li>
</ul>
<ul>
<li><a href="">자주 묻는 질문</a></li>
<li><a href="">회사 소개</a></li>
<li><a href="">인재 채용</a></li>
</ul>
</nav>
<div class="market">
<h5>당근마켓 앱 다운로드</h5>
<a class="btn" href="">
<i class="fa-sharp fa-solid fa-apple-whole"></i>
App Store
</a>
<a class="btn" href="">
<i class="fa-brands fa-google-play"></i>
App Store
</a>
</div>
</footer>
</body>
</html>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
header {
width: 100vw;
background: white;
height: 60px;
padding: 15px;
display: flex;
justify-content: space-around;
position: fixed;
top: 0;
}
.logo img {
height: 30px;
}
.logo {
margin-right: 30px;
}
ul {
list-style: none;
}
.h-nav ul li{
display: inline-block;
font-size: 18px;
font-weight: bold;
padding-right: 20px;
}
a {
text-decoration: none;
color: black;
}
.left-menu, .right-menu {
display: flex;
justify-content: center;
align-items: center;
}
.search {
width: 250px;
height: 40px;
margin-right: 15px;
background: #f0f0f0;
border: none;
border-radius: 5px;
font-size: 15px;
padding-left: 10px;
}
.btn-cheting {
border: 1px solid lightgray;
padding: 10px;
border-radius: 5px;
background: white;
font-size: 15px;
font-weight: bold;
}
.h-nav ul li:first-child a {
color: #ff8a3d;
}
a:hover {
opacity: 0.5;
}
section {
width: 100%;
height: 685px;
display: flex;
align-items: center;
justify-content: space-around;
}
section > .img-box:last-child {
width: 800px;
height: 685px;
}
.img-box > img {
width: 100%;
height: 100%;
}
content > section:nth-of-type(1) {
background: #FBF7F2;
margin-top: 60px;
}
h1 {
font-size: 40px;
margin-bottom: 20px;
}
/* section div:first-child {
margin-left: 60px;
} */
section > .img-box:first-child {
width: 530px;
height: 685px;
}
.btn {
font-size: 18px;
font-weight: bold;
background-color: #f1f3f5;
padding: 15px;
display: inline-block;
margin-top: 15px;
margin-right: 15px;
border-radius: 10px;
}
.f-nav {
display: flex;
justify-content: space-around;
}
.f-nav li {
padding: 15px;
}
footer {
display: flex;
justify-content: space-between;
margin: 25px 20%;
border-bottom: 1px solid lightgray;
}
content > section:last-child {
border-bottom: 1px solid lightgray;
}
728x90
'프론트엔드 > html' 카테고리의 다른 글
HTML + CSS 그리드 사용법 (0) | 2022.12.21 |
---|---|
HTML + CSS 미디어 쿼리 @media (0) | 2022.12.21 |
HTML + CSS 시맨틱 태그(semantic) (0) | 2022.12.20 |
HTML + CSS display:flex (0) | 2022.12.20 |
HTML + CSS 가상클래스 ::before와 after (0) | 2022.12.20 |
Comments