(2023.03.25) ์ถ๊ฐ
๊ธฐ์กด์ ์์ฑํ ์ฝ๋๋ ๋ฐ์ํ์ ์ฐ๊ฒจ๋ฃ์(?) ํํ๋ผ ๊ต์ฅํ ์ง์ ๋ถํ๊ณ ,
html ๋ ์ด์์๋ ์์์ ๊ณ ๋ คํ์ง ์์์ ๊ฐ๋ ์ฑ์ด ๋งค์ฐ ๋จ์ด์ง๋ ๋จ์ ์ด ์์์ต๋๋ค.
์์ ํ๋ ๊ฒ๋ณด๋ค ๋ฏ์ด ๊ณ ์ณ์ ์๋กญ๊ฒ ๋ค์ ํด๋ณด์! ๋ผ๋ ์๊ฐ์ด ๋ค์ด์ ์ฒ์๋ถํฐ ๋ฒฝ๋์ ์๋ ๊ธฐ๋ถ์ผ๋ก ํ๋๋ฐ,
์ด๊ฑธ ๊ณ๊ธฐ๋ก ๋ฆฌํฉํ ๋ง์ ๋งค๋ ฅ๋ ์๊ฒ๋์์ต๋๋ค. ๐
์์ฑํด๋๊ณ ๋๋ชฐ๋ผ๋ผ ๋์ด ์๋ ๊ณ์ํด์ ์ข์ ์ฝ๋๋ ๋ฌด์์ผ๊น ๊ณ ๋ฏผํ๋ ์์ธ๋ฅผ ๊ฐ์ง๊ณ ์ํด์ผ๊ฒ ์ต๋๋ค.
๋ฌด์๋ณด๋ค css ์ฝ๋๊ฐ ๋ฐ์ผ๋ก ์ค์ด๋ ๊ฒ ์ ์ผ ๋ง์กฑ์ค๋ฝ์ต๋๋ค. (ใ ใ )
์์ ๋ ์ฝ๋๋ [๋ฐ๋ก๊ฐ๊ธฐ]๋ฅผ ๋๋ฌ์ฃผ์ธ์.
์๋ ํ์ธ์!!!
์ค๋์ ๊ทธ๊ฐ ๋ฐฐ์ด ๊ฒ์ ํ์ฉํ์ฌ ํด๋ก ํ์ด์ง๋ฅผ ๋ง๋ค์ด ๋ณด์์ต๋๋ค.
์ด๋ค ์ฌ์ดํธ๋ฅผ ํด๋ณผ๊น ๊ณ ๋ฏผ ๋ง์ด ํ๋๋ฐ ์ต๊ทผ AI๋ก ๊ธ๋ถ์์ค์ธ Microsoft ์ฌ์ดํธ๋ฅผ ํ๊ธฐ๋ก ๊ฒฐ์ ํ์ต๋๋ค.
์ฐธ, ์ค๋ Copilot ๋ฐํ ์์ ๋ค๋ค ๋ณด์ จ๋์?
๊ฐ์ธ์ ์ผ๋ก ์์ ์ ํ ์์ดํฐ ๋ฐํ ์์ ๋ดค์ ๋ ๋๊ผ๋ ์ถฉ๊ฒฉ์ ๋ ํ ๋ฒ ๋๋ผ๊ฒ ๋ ์ค ๋ชฐ๋์ต๋๋ค.
ํ๋ฃจ๊ฐ ๋ค๋ฅด๊ฒ ๊ธฐ์ ์ด ๋ฐ์ ํ๊ณ ์์ฐ๋๋ ๊ฒ์ ๋ณด๊ณ ์์๋ ์ฐธ ์ฆ๊ฑฐ์ฐ๋ฉด์๋
์ด๊ฑธ ์ด๋ป๊ฒ ํ์ฉํด์ผ ๋ํ๋์ง ์๊ณ ์ด์๋จ์ ์ ์์๊น ํ๋ ์ด๋ฐ ์ ๋ฐ ์๊ฐ์ด ๋ง์๋ ํ๋ฃจ์์ต๋๋ค. ๐
๋ค์ ๋ณธ๋ก ์ผ๋ก ๋์์์..
์ ๊ฐ ์ฐธ๊ณ ํ ์ฌ์ดํธ๋ ์๋์ ๊ฐ์ต๋๋ค.
์๋ณธ ์ฌ์ดํธ
https://www.microsoft.com/ko-kr/
Microsoft – ํด๋ผ์ฐ๋, ์ปดํจํฐ, ์ฑ ๋ฐ ๊ฒ์
๊ฐ์ ์ฉ ๋๋ ๋น์ฆ๋์ค์ฉ Microsoft ์ ํ ๋ฐ ์๋น์ค๋ฅผ ์ดํด๋ณด์ธ์. Surface, Microsoft 365, Xbox, Windows, Azure ๋ฑ์ ์ผํํ์ธ์. ๋ค์ด๋ก๋ ํญ๋ชฉ์ ์ฐพ๊ณ ์ง์์ ๋ฐ์ผ์ธ์.
www.microsoft.com
์๋ณธ ์ฝ๋(์์ ์ )
ํด๋ก ํ์ด์ง
์ค๊ฐ์ Xbox๋ ๋น์ฆ๋์ค์ฉ ๋ธ๋ก์ ์๋ตํ์ต๋๋ค. ๐
html
๐ ์ถ๊ฐ ์ฌํญ : ํ๋ฒ๊ฑฐ ๋ฉ๋ด(๋ถํธ์คํธ๋ฉ), ๋งจ ์๋ก ๋ฒํผ
<!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">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/reset-css@5.0.1/reset.min.css">
<!-- ๋ถํธ์คํธ๋ฉ -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<link rel="stylesheet" href="custom.css?a">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" media="screen and (max-width: 768px)" href="style_mobile.css">
<title>Document</title>
</head>
<body>
<header>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
<img src="./images/menu.png" alt="">
</button>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#">Microsoft 365</a></li>
<li><a class="dropdown-item" href="#">Teams</a></li>
<li><a class="dropdown-item" href="#">Windows</a></li>
<li><a class="dropdown-item" href="#">Surface</a></li>
<li><a class="dropdown-item" href="#">Xbox</a></li>
<li><a class="dropdown-item" href="#">์ธ์ผ</a></li>
<li><a class="dropdown-item" href="#">์ง์</a></li>
<li><a class="dropdown-item" href="#">์ํํธ์จ์ด</a></li>
<li><a class="dropdown-item" href="#">PC ๋ฐ ์ฅ์น</a></li>
<li><a class="dropdown-item" href="#">์ํฐํ
์ธ๋จผํธ</a></li>
<li><a class="dropdown-item" href="#">๊ธฐ์
๊ณ ๊ฐ์ฉ</a></li>
<li><a class="dropdown-item" href="#">๊ฐ๋ฐ์ ๋ฐ IT</a></li>
<li><a class="dropdown-item" href="#">๊ธฐํ</a></li>
<li><a class="dropdown-item" href="#">์ฌ์ดํธ๋งต ๋ณด๊ธฐ</a></li>
</ul>
</div>
<div>
<img class="logo" src="./images/microsoft-logo.png" alt="">
</div>
<nav class="navibar">
<a href="https://www.microsoft.com/ko-kr/microsoft-365?rtc=1" target="_blank"
class="quick-menu">Microsoft 365</a>
<a href="#" class="quick-menu">Teams</a>
<a href="#" class="quick-menu">Windows</a>
<a href="#" class="quick-menu">Surface</a>
<a href="#" class="quick-menu">Xbox</a>
<a href="#" class="quick-menu">์ธ์ผ</a>
<a href="#" class="quick-menu">์ง์</a>
</nav>
<nav class="navibar2">
<div class="hamburger-menu">
<p>Microsoft ์ ์ฒด</p>
</div>
<div class="search">
<p>๊ฒ์</p>
<img src="./images/search.png" alt="search">
</div>
<div class="shopping-cart">
<p>์นดํธ</p>
<img src="./images/cart.png" alt="cart">
</div>
<div class="login">
<p>๋ก๊ทธ์ธ</p>
<img src="./images/login.png" alt="login">
</div>
</nav>
</header>
<main>
<div class="slide">
<div class="product-desc">
<h1>์ต๋ 25% ํ ์ธํํ</h1>
<p>Surface, Xbox ๋ฐ Microsoft 365๋ฅผ ํฌํจํ ๋ค์ํ ์ ํ์ ํน๊ฐ์ ๋ง๋๋ณด์ธ์.</p>
<div class="click">
<a href="https://www.microsoft.com/ko-kr/store/b/sale" target="_blank">
์ง๊ธ ์ผํํ๊ธฐ</a>
</div>
</div>
<div class="product-image">
<img src="./images/slide1.png" alt="surface" class="laptop">
</div>
</div>
<div class="sublink-container">
<div class="sublink-item">
<div class="icon">
<img src="./images/windows.png" alt="windows">
</div>
<a href="#">๋ด๊ฒ ๋ง๋ Microsoft 365 ์ ํํ๊ธฐ</a>
</div>
<div class="sublink-item">
<div class="icon">
<img src="./images/laptop.png" alt="laptop">
</div>
<a href="#">Surface ๋๋ฐ์ด์ค ์ผํํ๊ธฐ</a>
</div>
<div class="sublink-item">
<div class="icon">
<img src="./images/xbox2.png" alt="xbox2">
</div>
<a href="#">Xbox ๊ฒ์ ์ผํ</a>
</div>
<div class="sublink-item">
<div class="icon">
<img src="./images/windows.png" alt="windows">
</div>
<a href="#">Windows 11 ๋ฐ๊ธฐ</a>
</div>
</div>
<div class="product">
<div class="product-item">
<img src="./images/surface.png" alt="surface">
<h1>Surface Laptop 5</h1>
<p>12์ธ๋ ์ธํ
์ฝ์ด์ Windows 11๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ํ๋ ์ ๊ตํ ์คํ์ผ๊ณผ ๋ฐ์ด๋ ๋ฉํฐํ์คํน
์๋๋ฅผ ๊ฒฝํํ์ธ์.</p>
<a href="https://www.microsoft.com/ko-kr/surface/devices/surface-laptop-5?
icid=mscom_marcom_CPH1a_SurfaceLaptop5">์์ธํ ๋ด์ฉ ></a>
</div>
<div class="product-item">
<img src="./images/surface2.png" alt="surface2">
<h1>Surface Laptop Studio</h1>
<p>์ต๊ณ ์ ์ฑ๋ฅ์ ์ ๊ณตํ๋ Surface Laptop์ผ๋ก ์ฐฝ์๋ ฅ์ ๋ง์๊ป ๋ฐํํ์ธ์.
์ด์ Windows 11๊ณผ ํจ๊ป ์ ๊ณต๋ฉ๋๋ค.</p>
<a href="https://www.microsoft.com/ko-kr/surface/devices/surface-laptop-
studio?icid=mscom_marcom_CPH2a_SurfaceLaptopStudio">์ง๊ธ ์ผํํ๊ธฐ ></a>
</div>
<div class="product-item">
<img src="./images/bing.png" alt="bing">
<h1>์๋ก์ด Bing์ ์๊ฐํฉ๋๋ค</h1>
<p>์ค์ ์ง๋ฌธ์ ๋์ ธ๋ณด์ธ์. ์ฑํ
ํ๊ณ ์ฐฝ์ํ์ธ์. AI ๊ธฐ๋ฐ์ ์น์ฉ Copilot์ ํตํด
๋ ๋์ ๋ต๋ณ์ ์ป์ผ์ธ์.</p>
<a href="https://www.bing.com/new?icid=mscom_marcom_CPH3a_BingAI">์๋ก์ด
Bing์ ๋ํด ์์๋ณด๊ธฐ ></a>
</div>
<div class="product-item">
<img src="./images/xbox.png" alt="xbox">
<h1>Xbox Game Pass Ultimate</h1>
<p>์ฒซ ํ ๋ฌ๋์ 1,000์์ ์ด์ฉ๋ฃ๋ก ์ฝ์, PC, ํด๋ํฐ, ํ๋ธ๋ฆฟ์์ 100๊ฐ์ง๊ฐ
๋๋ ๊ณ ํ์ง ๊ฒ์์ ํ๋ ์ดํ์ธ์. (์ ๊ท ๊ตฌ๋
๋ง ์ฌ์ฉ๊ฐ๋ฅ)</p>
<a href="https://www.xbox.com/ko-kr/games/store/xbox-game-pass-ultimate/
cfq7ttc0khs0?icid=mscom_marcom_CPH4a_GamePassUltimate">์ง๊ธ ๊ฐ์
ํ๊ธฐ ></a>
</div>
</div>
<div class="etc">
<p>Microsoft ํ๋ก์ฐ</p>
<img src="./images/facebook.png" alt="facebook">
<img src="./images/twitter.png" alt="twitter">
</div>
</main>
<footer>
<nav>
<div>
<a href="#" class="main-menu">์๋ก์ด ๊ธฐ๋ฅ</a>
<a href="#" class="sub-menu">Microsoft 365</a>
<a href="#" class="sub-menu">๊ฒ์</a>
<a href="#" class="sub-menu">Surface Pro 9</a>
<a href="#" class="sub-menu">Surface Laptop 5</a>
<a href="#" class="sub-menu">Surface Laptop Studio</a>
<a href="#" class="sub-menu">Surface Laptop Go 2</a>
<a href="#" class="sub-menu">Windows 11 ์ฑ</a>
</div>
<div>
<a href="#" class="main-menu">Microsoft Store</a>
<a href="#" class="sub-menu">๊ณ์ ํ๋กํ</a>
<a href="#" class="sub-menu">๋ค์ด๋ก๋ ์ผํฐ</a>
<a href="#" class="sub-menu">Microsoft Store ์ง์</a>
<a href="#" class="sub-menu">๋ฐํ/ํ๋ถ</a>
<a href="#" class="sub-menu">์ฃผ๋ฌธ ์กฐํ</a>
</div>
<div>
<a href="#" class="main-menu">๊ต์ก</a>
<a href="#" class="sub-menu">Microsoft Education</a>
<a href="#" class="sub-menu">๊ต์ก์ฉ ์ฅ์น</a>
<a href="#" class="sub-menu">๊ต์ก์ฉ Microsoft Teams</a>
<a href="#" class="sub-menu">Microsoft 365 Education</a>
<a href="#" class="sub-menu">Office Education</a>
<a href="#" class="sub-menu">๊ต์ก์ ํธ๋ ์ด๋ ๋ฐ ๊ฐ๋ฐ</a>
<a href="#" class="sub-menu">ํ์ ๋ฐ ํ๋ถ๋ชจ์ฉ ํน๊ฐ ํํ</a>
<a href="#" class="sub-menu">Azure for students</a>
</div>
<div>
<a href="#" class="main-menu">๊ธฐ์
๊ณ ๊ฐ</a>
<a href="#" class="sub-menu">Microsoft Security</a>
<a href="#" class="sub-menu">Azure</a>
<a href="#" class="sub-menu">Dynamics 365</a>
<a href="#" class="sub-menu">Microsoft 365</a>
<a href="#" class="sub-menu">Microsoft Advertising</a>
<a href="#" class="sub-menu">Microsoft Industry</a>
<a href="#" class="sub-menu">Microsoft Teams</a>
</div>
<div>
<a href="#" class="main-menu">๊ฐ๋ฐ์ ๋ฐ IT</a>
<a href="#" class="sub-menu">๊ฐ๋ฐ์ ์ผํฐ</a>
<a href="#" class="sub-menu">์ค๋ช
์</a>
<a href="#" class="sub-menu">Microsoft Learn</a>
<a href="#" class="sub-menu">Microsoft Tech ์ปค๋ฎค๋ํฐ</a>
<a href="#" class="sub-menu">Azure Marketplace</a>
<a href="#" class="sub-menu">Appsource</a>
<a href="#" class="sub-menu">Microsoft Power Platform</a>
<a href="#" class="sub-menu">Visual Studio</a>
</div>
<div>
<a href="#" class="main-menu">ํ์ฌ</a>
<a href="#" class="sub-menu">์ฑ์ฉ ์ ๋ณด</a>
<a href="#" class="sub-menu">Microsoft ์ ๋ณด</a>
<a href="#" class="sub-menu">ํ์ฌ ๋ด์ค</a>
<a href="#" class="sub-menu">Microsoft ๊ฐ์ธ ์ ๋ณด ๋ณดํธ</a>
<a href="#" class="sub-menu">ํฌ์์</a>
<a href="#" class="sub-menu">์ง์ ๊ฐ๋ฅ์ฑ</a>
</div>
<button type="button" onclick="topFunction()" class="btn btn-primary">TOP</button>
</nav>
</footer>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>
<script>
function topFunction() {
document.documentElement.scrollTop = 0;
}
</script>
</body>
</html>
๋งํฌ๋ ์๋ตํ ๊ฒ ๋ง์์. ใ ใ
CSS
๐ ์ถ๊ฐ ์ฌํญ : product-image hover ํจ๊ณผ, ๋ฐ์ํ css ์ถ๊ฐ(768px๋ถํฐ)
PC์ฉ(style.css)
* {
box-sizing: border-box;
}
header {
background-color: #fff;
height: 80px;
display: flex;
align-items: center;
position: relative;
}
header div .logo {
width: 140px;
margin: 20px;
}
header .navibar .quick-menu {
display: inline-block;
text-decoration: none;
text-align: center;
color: #000;
margin-right: 10px;
line-height: 60px;
font-size: 0.8em;
}
header .navibar2 {
position: absolute;
right: 0;
margin-right: 80px;
display: flex;
gap: 20px;
}
header .navibar2 div {
display: flex;
align-items: center;
justify-content: center;
}
header .navibar2 p {
text-align: center;
color: #424242;
font-size: 0.9em;
margin: 0;
margin-right: 3px;
}
header .navibar2 img {
width: 15px;
height: 15px;
filter: opacity(0.5) drop-shadow(0 0 0 #424242);
}
main {
min-height: 700px;
}
main .slide {
display: flex;
}
main .slide .product-desc {
width: 50%;
background-color: #eee;
display: flex;
align-items:flex-start;
justify-content: center;
flex-flow: column;
}
main .slide .product-desc h1 {
font-size: 2.5em;
font-weight: bolder;
margin-bottom: 20px;
margin-left: 150px;
}
main .slide .product-desc p {
font-size: 1em;
margin-bottom: 20px;
margin-left: 150px;
}
main .slide .product-desc .click {
width: 130px;
height: 50px;
background-color: #0067b8;
margin-left: 150px;
text-align: center;
border-radius: 3px;
}
main .slide .product-desc .click a {
color: #fff;
text-decoration: none;
line-height: 50px;
font-weight: bolder;
}
main .slide .product-image {
width: 50%;
background-color: #eee;
display: flex;
align-items: center;
justify-content: center;
flex-flow: wrap;
}
main .slide .product-image img {
width: 100%;
}
main .sublink-container {
height: 150px;
background-color: #fff;
display: flex;
align-items: center;
justify-content: center;
}
main .sublink-container .sublink-item {
display: flex;
flex-flow: column;
justify-content: center;
align-items: center;
margin-right: 50px;
}
main .sublink-container .sublink-item .icon {
width: 40px;
height: 40px;
margin-bottom: 20px;
z-index: 10;
}
main .sublink-container .sublink-item .icon img {
width: 40px;
height: 40px;
}
main .sublink-container .sublink-item a {
color: #0067b8;
font-weight: bolder;
margin-bottom: 8px;
font-size: 1em;
}
main .product {
height: 450px;
background-color: #fff;
display: flex;
flex-flow: wrap;
justify-content: space-around;
margin: 0 20px;
}
main .product .product-item {
margin: 15px;
width: 380px;
height: 210px;
}
main .product .product-item img {
width: 100%;
box-shadow: 2px 2px 5px #a1a1a1;
transition-property: all;
transition-duration: 1s;
transition-delay: .3s;
}
main .product .product-item img:hover {
background-color: rgba(0, 0, 0, .6);
opacity: 0.5;
}
main .product .product-item h1 {
text-align: left;
font-size: 1.8em;
margin-top: 22px;
margin-bottom: 22px;
font-weight: bolder;
}
main .product .product-item p {
font-size: 0.9em;
line-height: 1.4;
margin-bottom: 22px;
}
main .product .product-item a {
text-decoration: none;
color: #0067b8;
font-weight: bolder;
font-size: 1.1em;
}
main .etc {
margin-top: 30px;
height: 150px;
display: flex;
align-items: flex-start;
}
main .etc p {
line-height: 30px;
margin-left: 120px;
margin-right: 30px;
}
main .etc img {
width: 30px;
height: 30px;
margin-right: 30px;
}
footer nav {
background-color: #eee;
height: 450px;
display: flex;
align-items: center;
justify-content: center;
align-items: flex-start;
}
footer nav div {
display: flex;
flex-direction: column;
margin-right: 70px;
}
footer nav div .main-menu {
margin-top: 40px;
margin-bottom: 20px;
text-decoration: none;
text-align: left;
color: #6b6b6b;
font-size: 1.17em;
font-weight: 600;
}
footer nav div .sub-menu {
margin-bottom: 13px;
text-decoration: none;
color: #6b6b6b;
font-size: 0.8em;
}
.dropdown {
display: none;
}
.btn-primary {
float: left;
position: fixed;
right: 100px;
bottom: 50px;
}
๋ชจ๋ฐ์ผ์ฉ(style_mobile.css)
* {
box-sizing: border-box;
}
body {
width: 100%;
margin: 0;
padding: 0;
}
header {
margin: 0 20px;
height: 5vh;
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
position: relative;
}
.dropdown {
display: inline;
}
.dropdown img {
width: 23px;
height: 23px;
}
header div .logo {
width: 120px;
margin: 0;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
header .navibar {
display: none;
}
header .navibar2 p:nth-child(2) {
display: none;
}
header .navibar2 p {
display: none;
}
header .navibar2 .search img, header .navibar2 .shopping-cart img, header .navibar2 .login img {
width: 15px;
height: 15px;
filter: opacity(0.5) drop-shadow(0 0 0 #424242);
}
header .navibar2 {
margin-right: 2px;
}
main {
display: flex;
flex-wrap: wrap;
flex-direction: column;
align-items: center;
justify-content: center;
}
main .slide {
display: flex;
flex-wrap: wrap;
flex-direction: column-reverse;
align-items: flex-start;
justify-content: center;
}
main .slide .product-desc {
width: 90%;
display: flex;
flex-wrap: wrap;
flex-direction: column;
background-color: #fff;
gap: 10px;
margin-left: 10px;
margin-bottom: 30px;
}
main .slide .product-desc h1 {
margin: 20px 0;
font-size: 2em;
text-align: left;
}
main .slide .product-desc p {
margin: 0;
text-align: left;
line-height: 20px;
}
main .slide .product-desc .click {
display: inline-block;
width: 10 0px;
height: 40px;
background-color: #0067b8;
text-align: center;
border-radius: 3px;
margin-left: 0;
}
main .slide .product-desc .click:hover {
background-color: #6f8fa8;
}
main .slide .product-desc .click a {
color: #fff;
text-decoration: none;
line-height: 40px;
font-weight: bolder;
font-size: 0.8em;
}
main .slide .product-image {
width: 100%;
background-color: #eee;
margin-bottom: 20px;
}
main .slide .product-image img {
width: 100%;
}
main .sublink-container {
height: auto;
display: flex;
align-items: flex-start;
justify-content: center;
margin: 10px 10px 30px 10px;
gap: 15px;
}
main .sublink-container .sublink-item {
display: flex;
align-items: center;
justify-content: center;
margin: 0;
}
main .sublink-container .sublink-item .icon {
width: 20px;
height: 20px;
margin-bottom: 20px;
z-index: 10;
}
main .sublink-container .sublink-item .icon img {
width: 100%;
height: 100%;
}
main .sublink-container .sublink-item a {
color: #0067b8;
font-weight: bolder;
font-size: 0.9em;
text-align: center;
line-height: 20px;
}
main .product {
margin: unset;
height: auto;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 160px;
}
main .product .product-item {
width: 90%;
}
main .product .product-item img {
width: 100%;
box-shadow: 2px 2px 5px #a1a1a1;
transition-property: all;
transition-duration: 1s;
transition-delay: .3s;
border-radius: 10px;
}
main .product .product-item img:hover {
background-color: rgba(0, 0, 0, .6);
opacity: 0.5;
}
main .product .product-item h1 {
font-size: 1.5em;
margin: 10px 0 5px 0;
}
main .product .product-item p {
font-size: 0.9em;
margin: 0 0 5px 0;
}
main .product .product-item a {
color: #0067b8;
font-size: 0.9em;
}
main .etc {
height: auto;
align-self: flex-start;
margin-top: 150px;
margin-left: 22px;
margin-bottom: 20px;
}
main .etc p {
margin: 0;
}
main .etc img {
width: 30px;
height: 30px;
margin-right: 10px;
}
footer nav {
background-color: #eee;
height: auto;
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
}
footer nav div {
margin-left: 20px;
display: flex;
flex-direction: column;
margin-right: 120px;
}
footer nav div .main-menu {
margin-top: 20px;
margin-bottom: 8px;
text-decoration: none;
text-align: left;
color: #6b6b6b;
font-size: 1.17em;
font-weight: 600;
}
footer nav div .sub-menu {
margin-bottom: 10px;
text-decoration: none;
color: #6b6b6b;
font-size: 0.8em;
}
.btn-primary {
right: 20px;
}
๋ถํธ์คํธ๋ฉ ์์ ์ฉ(custom.css)
.btn {
background-color: #fff;
border-color: #fff;
}
.btn:hover {
background-color: #fff;
border-color: #fff;
}
.btn > {
background-color: #fff;
}
์์ ๋ ์ฝ๋
html
<!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">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/reset-css@5.0.1/reset.min.css">
<script src="https://kit.fontawesome.com/847d54d8db.js"></script>
<link rel="stylesheet"
href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="./css/style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
<title>Document</title>
</head>
<body>
<header>
<nav class="navbar">
<img class="navbar__logo" src="./images/microsoft-logo.png" alt="">
<ul class="navbar__menu">
<li><a href="#">Microsoft 365</a></li>
<li><a href="#">Teams</a></li>
<li><a href="#">Windows</a></li>
<li><a href="#">Surface</a></li>
<li><a href="#">Xbox</a></li>
<li><a href="#">์ธ์ผ</a></li>
<li><a href="#">์ง์</a></li>
</ul>
<ul class="navbar__icons">
<li>๊ฒ์ <i class="fa-solid fa-magnifying-glass"></i></li>
<li>์นดํธ <i class="fa-solid fa-cart-shopping"></i></li>
<li>๋ก๊ทธ์ธ <i class="fa-regular fa-user"></i></li>
</ul>
<a href="#" class="navbar__toggleBtn">
<i class="fa-solid fa-bars"></i>
</a>
</nav>
</header>
<main>
<div class="slide">
<div class="slide slide-desc">
<h1>์ต๋ 25% ํ ์ธํํ</h1>
<p>Surface, Xbox ๋ฐ Microsoft 365๋ฅผ ํฌํจํ ๋ค์ํ ์ ํ์ ํน๊ฐ์ ๋ง๋๋ณด์ธ์.</p>
<p>์ง๊ธ ์ผํํ๊ธฐ</p>
</div>
<p class="slide slide-img"></p>
</div>
<div class="quick-menu">
<div class="item item1">
<i class="fa-brands fa-windows"></i>
<a href="#">๋ด๊ฒ ๋ง๋ Microsoft 365 ์ ํ</a>
</div>
<div class="item item2">
<i class="fa-solid fa-laptop"></i>
<a href="#">Surface ๋๋ฐ์ด์ค ์ผํ</a>
</div>
<div class="item item3">
<i class="fa-brands fa-xbox"></i>
<a href="#">Xbox ๊ฒ์ ์ผํ</a>
</div>
<div class="item item4">
<i class="fa-brands fa-windows"></i>
<a href="#">Windows 11 ๋ฐ๊ธฐ</a>
</div>
</div>
<div class="product">
<div class="product-ad product-ad1">
<img src="./images/surface.png" alt="">
<h1>Surface Laptop 5</h1>
<p>12์ธ๋ ์ธํ
์ฝ์ด์ Windows 11๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ํ๋ ์ ๊ตํ ์คํ์ผ๊ณผ ๋ฐ์ด๋ ๋ฉํฐํ์คํน ์๋๋ฅผ ๊ฒฝํํ์ธ์.</p>
<a href="#">์์ธํ ๋ด์ฉ ></a>
</div>
<div class="product-ad product-ad2">
<img src="./images/surface2.png" alt="">
<h1>Surface Laptop Studio</h1>
<p>์ต๊ณ ์ ์ฑ๋ฅ์ ์ ๊ณตํ๋ Surface Laptop์ผ๋ก ์ฐฝ์๋ ฅ์ ๋ง์๊ป ๋ฐํํ์ธ์. ์ด์ Windows 11๊ณผ ํจ๊ป ์ ๊ณต๋ฉ๋๋ค.</p>
<a href="#">์ง๊ธ ์ผํํ๊ธฐ ></a>
</div>
<div class="product-ad product-ad3">
<img src="./images/bing.png" alt="">
<h1>์๋ก์ด Bing์ ์๊ฐํฉ๋๋ค</h1>
<p>์ค์ ์ง๋ฌธ์ ๋์ ธ๋ณด์ธ์. ์ฑํ
ํ๊ณ ์ฐฝ์ํ์ธ์. AI ๊ธฐ๋ฐ์ ์น์ฉ Copilot์ ํตํด ๋ ๋์ ๋ต๋ณ์ ์ป์ผ์ธ์.</p>
<a href="#">์๋ก์ด Bing์ ๋ํด ์์๋ณด๊ธฐ ></a>
</div>
<div class="product-ad product-ad4">
<img src="./images/xbox.png" alt="">
<h1>Xbox Game Pass Ultimate</h1>
<p>์ฒซ ํ ๋ฌ๋์ 1,000์์ ์ด์ฉ๋ฃ๋ก ์ฝ์, PC, ํด๋ํฐ, ํ๋ธ๋ฆฟ์์ 100๊ฐ์ง๊ฐ ๋๋ ๊ณ ํ์ง ๊ฒ์์ ํ๋ ์ดํ์ธ์. (์ ๊ท ๊ตฌ๋
๋ง ์ฌ์ฉ๊ฐ๋ฅ)</p>
<a href="#">์ง๊ธ ๊ฐ์
ํ๊ธฐ ></a>
</div>
</div>
</main>
<footer>
<ul class="sitemap">
<li class="sitemap-hd menu1">
<h1>์๋ก์ด ๊ธฐ๋ฅ</h1>
<a href="">Microsoft 365</a>
<a href="">๊ฒ์</a>
<a href="">Surface Pro 9</a>
<a href="">Surface Laptop 5</a>
<a href="">Surface Laptop Studio</a>
<a href="">Surface Laptop Go 2</a>
<a href="">Windows 11 ์ฑ</a>
</li>
<li class="sitemap-hd menu2">
<h1>Microsoft Store</h1>
<a href="">Microsoft 365</a>
<a href="">๊ฒ์</a>
<a href="">Surface Pro 9</a>
<a href="">Surface Laptop 5</a>
<a href="">Surface Laptop Studio</a>
<a href="">Surface Laptop Go 2</a>
<a href="">Windows 11 ์ฑ</a>
</li>
<li class="sitemap-hd menu3">
<h1>๊ต์ก</h1>
<a href="">Microsoft 365</a>
<a href="">๊ฒ์</a>
<a href="">Surface Pro 9</a>
<a href="">Surface Laptop 5</a>
<a href="">Surface Laptop Studio</a>
<a href="">Surface Laptop Go 2</a>
<a href="">Windows 11 ์ฑ</a>
</li>
<li class="sitemap-hd menu4">
<h1>๊ธฐ์
๊ณ ๊ฐ</h1>
<a href="">Microsoft 365</a>
<a href="">๊ฒ์</a>
<a href="">Surface Pro 9</a>
<a href="">Surface Laptop 5</a>
<a href="">Surface Laptop Studio</a>
<a href="">Surface Laptop Go 2</a>
<a href="">Windows 11 ์ฑ</a>
</li>
<li class="sitemap-hd menu5">
<h1>๊ฐ๋ฐ์ ๋ฐ IT</h1>
<a href="">Microsoft 365</a>
<a href="">๊ฒ์</a>
<a href="">Surface Pro 9</a>
<a href="">Surface Laptop 5</a>
<a href="">Surface Laptop Studio</a>
<a href="">Surface Laptop Go 2</a>
<a href="">Windows 11 ์ฑ</a>
</li>
<li class="sitemap-hd menu6">
<h1>ํ์ฌ</h1>
<a href="">Microsoft 365</a>
<a href="">๊ฒ์</a>
<a href="">Surface Pro 9</a>
<a href="">Surface Laptop 5</a>
<a href="">Surface Laptop Studio</a>
<a href="">Surface Laptop Go 2</a>
<a href="">Windows 11 ์ฑ</a>
</li>
</ul>
<div class="footer-info">
<div class="language">
<i class="fa-solid fa-earth-americas"></i> ํ๊ตญ์ด(๋ํ๋ฏผ๊ตญ)
</div>
<ul class="etc">
<li>Microsoft ๋ฌธ์</li>
<li>๊ฐ์ธ์ ๋ณด์ฒ๋ฆฌ๋ฐฉ์นจ ๋ฐ ์์น์ ๋ณด์ด์ฉ์ฝ๊ด</li>
<li>์ฌ์ฉ์ฝ๊ด</li>
<li>์ํ</li>
<li>๊ด๊ณ ์ ๋ณด</li>
<li>โ Microsoft 2023</li>
</ul>
</div>
</footer>
<script src="./mains.js"></script>
</body>
</html>
CSS
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: 'Roboto', sans-serif;
}
a {
text-decoration: none;
color: #000;
}
.navbar {
display: flex;
justify-content: flex-start;
align-items: center;
background-color: #fff;
padding: 30px 100px;
}
.navbar__logo {
width: 120px;
}
.navbar__logo i {
color: #000;
}
.navbar__menu {
display:flex;
list-style: none;
padding-left: 0;
}
.navbar__menu a {
font-size: 0.8rem;
}
.navbar__menu li {
padding: 8px 12px;
}
.navbar__menu li:hover {
background-color: #eee;
border-radius: 5px;
}
.navbar__icons {
margin-left: auto;
list-style: none;
color: #000;
font-size: 0.9rem;
display: flex;
padding-left: 0;
}
.navbar__icons li {
padding: 8px 12px;
}
.navbar__toggleBtn {
display: none;
position: absolute;
right: 32px;
font-size: 24px;
color: #000;
}
.slide {
display: flex;
flex-wrap: wrap;
width: 100%;
height: 40rem;
justify-content: center;
align-items: center;
}
.slide-desc {
background-color: #eee;
width: 50%;
display: flex;
flex-direction: column;
align-items: flex-start;
line-height: 2.5rem;
padding: 0 0 0 8%;
}
.slide-desc h1 {
font-size: 2.5rem;
font-weight: bold;
}
.slide-desc p:nth-child(3) {
width: 120px;
height: 40px;
background-color: #0067b8;
color: #fff;
text-align: center;
font-weight: bold;
border-radius: 3px;
}
.slide-img {
background-color: #eee;
width: 50%;
display: inline-block;
content: "";
background-image: url('../images/slide1.png');
background-size: contain;
background-repeat: no-repeat;
}
.quick-menu {
display: flex;
justify-content: center;
align-items: center;
}
.quick-menu .item {
display: flex;
flex-direction: column;
align-items: center;
padding: 60px 35px;
}
.item > i {
font-size: 2.3rem;
padding: 8px;
color: #2f2f2f;
}
.item > a {
font-size: 1rem;
color: #0067b8;
font-weight: bold;
text-decoration: underline;
}
.product {
display: flex;
flex-wrap: wrap;
justify-content: center;
line-height: 60px;
padding: 20px 0 60px 0;
}
.product-ad {
width: 20%;
display: flex;
flex-direction: column;
margin: 0 20px;
}
.product-ad img {
box-shadow: 1px 1px 5px #646363;
border-radius: 5px;
}
.product-ad h1 {
font-size: 3vmin;
font-weight: bold;
}
.product-ad p {
line-height: 24px;
}
.product-ad a {
color: #0067b8;
font-weight: bold;
}
footer {
background-color: #eee;
color: #616161;
}
.sitemap {
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
padding: 30px 0;
}
.sitemap-hd {
display: flex;
flex-direction: column;
gap: 13px;
}
.sitemap-hd h1 {
font-weight: 600;
font-size: 17px;
}
.sitemap-hd a {
font-size: 0.7em;
}
.footer-info {
display: flex;
font-size: 12px;
padding: 20px 100px;
}
.etc {
display: flex;
flex-wrap: wrap;
margin-left: auto;
gap: 20px;
}
@media screen and (max-width:768px) {
.navbar {
flex-direction: column;
align-items: flex-start;
padding: 8px 24px;
flex-flow: wrap;
}
.navbar__menu {
display: none;
flex-direction: column;
align-items: center;
width: 100%;
}
.navbar__menu li {
width: 100%;
text-align: center;
}
.navbar__icons {
display: none;
justify-content: center;
width: 100%;
}
.navbar__toggleBtn {
display: block;
}
.navbar__menu.active, .navbar__icons.active {
display: flex;
}
.navbar__icons li:nth-child(1) {
display: none;
}
.slide {
flex-direction: column;
justify-content: center;
align-items: center;
}
.slide-desc {
width: 100%;
height: 50%;
order: 2;
background-color: #fff;
align-items: flex-start;
gap: 10px;
padding: 0 8%;
}
.slide-desc h1 {
font-size: 1.8rem;
font-weight: bold;
}
.slide-img {
width: 100%;
height: 50%;
order: 1;
}
.slide-desc p:nth-child(2) {
line-height: 1.5rem;
}
.quick-menu {
justify-content: space-around;
flex-wrap: wrap;
}
.quick-menu .item {
flex-direction: column;
align-items: center;
padding: 10px;
}
.quick-menu .item i {
font-size: 1.8rem;
}
.quick-menu .item a {
font-size: 1rem;
}
.product {
flex-direction: column;
}
.product-ad {
width: 90%;
}
.product-ad h1 {
font-size: 1.5rem;
font-weight: bold;
}
.sitemap {
flex-direction: column;
}
.sitemap-hd {
margin: 0 0 40px 20px;
}
.footer-info {
padding: 0;
flex-direction: column;
gap: 10px;
}
.language {
padding: 0 20px;
}
.etc {
justify-content: space-evenly;
padding: 20px;
}
}
PC
๋ชจ๋ฐ์ผ
์ค๋ ์์ฑํ ์ฝ๋๋ ๋ฐ์ํ์ ๊ณ ๋ คํ์ง ์์์ต๋๋ค.!
๋ฐ์ํ๊น์ง ๊ตฌํํด๋ณด์์ต๋๋ค! ๋ฐ์ํ์ด๋ผ๊ธฐ ๋ณด๋จ ์ ์ํ์ ๊ฐ๊น์ด.. (2023.03.23)
๋ฐ์ํ ์์ ์๋ฃ (2023.03.25)
์กฐ๊ฐ์กฐ๊ฐ ๋ฐฐ์ธ ๋๋ ๊ณต๋ถ๊ฐ ๋๋๊ฒ ๋ง๋ ํ์๋๋ฐ...
ํ ๋ฒ ๋ง๋ค๊ณ ๋๋๊น ๋๋ฌด ์ฌ๋ฐ๊ณ , ์ผ๋ฅธ JavaScript๋ React ๋ฐฐ์์ ๋ ๋ค์ํ ๊ธฐ๋ฅ๋ค์ ๊ตฌํํ๊ณ ์ถ์ต๋๋ค.
์ญ์ 100๋ฒ ์ด๋ก ๊ณต๋ถํ๋ ๊ฒ๋ณด๋ค ํ ๋ฒ ์ค์ต ํ๋๊ฒ ๋ ํจ๊ณผ๊ฐ ์ข์ ๊ฒ ๊ฐ์ต๋๋ค.
๋ง์ด ๋ถ์กฑํ์ง๋ง ์์ผ๋ก ๋ ์ด์ฌํ ๋ ธ๋ ฅํ๊ฒ ์ต๋๋ค.
ํ์ดํ !