๐2022-08-08๐
https://thebook.io/080313/part04/ch13/
https://github.com/GyuWonLee/homepage.git
index.html
<!DOCTYPE html>
<html lang="zxx">
<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>Final Project</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="style.css">
<style>
/* width */
::-webkit-scrollbar {
width: 20px;
border-radius: 10px;
background: #000000;
}
/* Track */
::-webkit-scrollbar-track {
background: #BDBDBD;
border-radius: 10px;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #ED4848;
border-radius: 10px;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #ED4848;
border-radius: 10px;
}
*{
font-family: 'KOTRA_BOLD-Bold';
}
@font-face {
src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-10-21@1.1/KOTRA_BOLD-Bold.woff') format('woff');
font-weight: normal;
font-style: normal;
}
</style>
</head>
<body>
<!-- header -->
<header>
<div class="container">
<h1>
<button data-animation-scroll="true" data-target="#main">BLOG</button>
</h1>
<nav>
<ul>
<li>
<button data-animation-scroll="true" data-target="#about">
About
</button>
</li>
<li>
<button data-animation-scroll="true" data-target="#features">
Features
</button>
</li>
<li>
<button data-animation-scroll="true" data-target="#portfolio">
Portfolio
</button>
</li>
<li>
<button data-animation-scroll="true" data-target="#contact">
Contact
</button>
</li>
</ul>
</nav>
</div>
</header>
<!-- //end header -->
<!-- main -->
<main id="main">
<div class="container">
<h4>Welcome</h4>
<h2 class="active">I`M A <span></span></h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Praesentium dolor quas nulla unde ea officiis?</p>
<button class="download">DOWNLOAD CV</button>
<button class="mouse"><i class="fa-solid fa-computer-mouse"></i></button>
</div>
</main>
<!-- //end Main -->
<!-- About Me -->
<section id="about" class="about">
<div class="container">
<div class="title">
<h4>Who Am I</h4>
<h2>About Me</h2>
</div>
<div class="about-self">
<div class="left">
<img src="images/me_alone.jpg" alt="">
</div>
<div class="right">
<h3>Hello, <strong>I`m Sucoding</strong></h3>
<p>I`m Web Publisher And Web Front-End Developer.</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Saepe veritatis aperiam accusantium.</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sit praesentium doloremque quos quis est officiis.</p>
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Autem, omnis quibusdam.</p>
<div class="social">
<a href="#">
<i class="fa-brands fa-facebook"></i>
</a>
<a href="#">
<i class="fa-brands fa-instagram"></i>
</a>
<a href="#">
<i class="fa-brands fa-twitch"></i>
</a>
<a href="#">
<i class="fa-brands fa-youtube"></i>
</a>
</div>
</div>
</div>
</div>
</section>
<!-- end About Me -->
<!-- What I Do -->
<section id="features" class="do">
<div class="container">
<div class="title">
<h4>Features</h4>
<h2>What I Do</h2>
</div>
<div class="do-me">
<div class="do-inner">
<div class="icon">
<i class="fa-brands fa-html5"></i>
</div>
<div class="content">
<h3>HTML5</h3>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Illo culpa magni laboriosam sit excepturi quibusdam adipisci, vero debitis?</p>
</div>
</div>
<div class="do-inner">
<div class="icon">
<i class="fa-brands fa-css3-alt"></i>
</div>
<div class="content">
<h3>CSS3</h3>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Illo culpa magni laboriosam sit excepturi quibusdam adipisci, vero debitis?</p>
</div>
</div>
<div class="do-inner">
<div class="icon">
<i class="fa-brands fa-bootstrap"></i>
</div>
<div class="content">
<h3>BootStrap v5.0</h3>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Illo culpa magni laboriosam sit excepturi quibusdam adipisci, vero debitis?</p>
</div>
</div>
</div>
</div>
</section>
<!-- //end What I Do -->
<!-- Background -->
<div class="bg"></div>
<!-- //end Background-->
<!-- PortFolio -->
<section id="portfolio" class="portfolio">
<div class="container">
<div class="title">
<h4>PORTFOLIOBACK</h4>
<h2>PortFolio</h2>
</div>
<div class="portfolio-me">
<div class="portfolio-inner">
<img src="images/mock1.png" alt="">
<strong>BRANDING</strong>
<h3>Package Design</h3>
</div>
<div class="portfolio-inner">
<img src="images/mock2.png" alt="">
<strong>DEVELOPMENT</strong>
<h3>Tablet App Dev</h3>
</div>
<div class="portfolio-inner">
<img src="images/mock3.png" alt="">
<strong>MARKETING</strong>
<h3>Coka Cola </h3>
</div>
<div class="portfolio-inner">
<img src="images/mock4.png" alt="">
<strong>APP</strong>
<h3>FaceBook Clone</h3>
</div>
<div class="portfolio-inner">
<img src="images/mock5.png" alt="">
<strong>APP</strong>
<h3>Netflix Clone</h3>
</div>
<div class="portfolio-inner">
<img src="images/mock6.png" alt="">
<strong>WEB</strong>
<h3>FirmBee Web</h3>
</div>
</div>
</div>
</section>
<!-- //end PortFolio -->
<!-- Contact With Me -->
<section id="contact" class="contact">
<div class="container">
<div class="title">
<h4>CONTACT</h4>
<h2>Contact With Me</h2>
</div>
<div class="contact-me">
<div class="left">
<div class="card">
<div class="icon">
<i class="fa-solid fa-phone-volume"></i>
</div>
<div class="info-text">
<h3>phone</h3>
<p>010-2222-1111</p>
</div>
</div>
<div class="card">
<div class="icon">
<i class="fa-solid fa-envelope-open-text"></i>
</div>
<div class="info-text">
<h3>email</h3>
<p>sucoding@naver.com</p>
</div>
</div>
<div class="card">
<div class="icon">
<i class="fa-solid fa-location-crosshairs"></i>
</div>
<div class="info-text">
<h3>address</h3>
<p>Samseong-ro, Gangnam-gu, Seoul, Republic of Korea</p>
</div>
</div>
</div>
<div class="right">
<form action="#">
<div class="form-group">
<label for="name">name</label>
<input type="text" id="name">
</div>
<div class="form-group">
<label for="email">email</label>
<input type="text" id="email">
</div>
<div class="form-group">
<label for="msg">message</label>
<textarea id="msg"></textarea>
</div>
<button>send</button>
</form>
</div>
</div>
</div>
</section>
<!-- end Contact With Me -->
<!-- script ํ๊ทธ๋ ์์ ํ์ง ์์ต๋๋ค. -->
<script src="script.js"></script>
</body>
</html>
script.js
/* text_iife.js */
// ํ
์คํธ ์์ฑ๊ณผ ์ญ์ ์ฆ์ ์คํ ํจ์
(function(){
const spanEl = document.querySelector("main h2 span");
const txtArr = ['Web Publisher', 'Front-End Developer', 'Web UI Designer', 'UX Designer', 'Back-End Developer'];
let index = 0;
let currentTxt = txtArr[index].split("");
function writeTxt(){
spanEl.textContent += currentTxt.shift();
if(currentTxt.length !== 0){
setTimeout(writeTxt, Math.floor(Math.random() * 100));
}else{
currentTxt = spanEl.textContent.split("");
setTimeout(deleteTxt, 3000);
}
}
function deleteTxt(){
currentTxt.pop();
spanEl.textContent = currentTxt.join("");
if(currentTxt.length !== 0){
setTimeout(deleteTxt, Math.floor(Math.random() * 100))
}else{
index = (index + 1) % txtArr.length;
currentTxt = txtArr[index].split("");
writeTxt();
}
}
writeTxt();
})();
/* end text_iife.js */
/* scroll_request.js */
/* ์์ง ์คํฌ๋กค์ด ๋ฐ์ํ๋ฉด header ํ๊ทธ์ active ํด๋์ค ์ถ๊ฐ ๋ฐ ์ญ์ */
const headerEl = document.querySelector("header");
window.addEventListener('scroll', function(){
requestAnimationFrame(scrollCheck);
});
function scrollCheck(){
let browerScrollY = window.scrollY ? window.scrollY : window.pageYOffset;
if(browerScrollY > 0){
headerEl.classList.add("active");
}else{
headerEl.classList.remove("active");
}
}
/* end scroll_request.js */
/* move.js */
/* ์ ๋๋ฉ์ด์
์คํฌ๋กค ์ด๋ */
const animationMove = function(selector){
// โ selector ๋งค๊ฐ๋ณ๋ก ์ด๋ํ ๋์ ์์ ๋
ธ๋ ๊ฐ์ ธ์ค๊ธฐ
const targetEl = document.querySelector(selector);
// โก ํ์ฌ ๋ธ๋ผ์ฐ์ ์ ์คํฌ๋กค ์ ๋ณด(y ๊ฐ)
const browserScrollY = window.pageYOffset;
// โข ์ด๋ํ ๋์์ ์์น(y ๊ฐ)
const targetScorllY = targetEl.getBoundingClientRect().top + browserScrollY;
// โฃ ์คํฌ๋กค ์ด๋
window.scrollTo({ top: targetScorllY, behavior: 'smooth' });
};
// ์คํฌ๋กค ์ด๋ฒคํธ ์ฐ๊ฒฐํ๊ธฐ
const scollMoveEl = document.querySelectorAll("[data-animation-scroll='true']");
for(let i = 0; i < scollMoveEl.length; i++){
scollMoveEl[i].addEventListener('click', function(e){
const target = this.dataset.target;
animationMove(target);
});
}
/* End move.js */
style.css
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&family=Varela+Round&display=swap');
/* header.css */
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family: 'GangwonEduPowerExtraBoldA';
}
* {
font-family: 'ONE-Mobile-POP';
}
a, a:link, a:visited{
color:inherit;
text-decoration:none;
}
li{
list-style:none;
}
.container{
width:1140px;
margin:0 auto;
}
header{
position:fixed;
color:white;
top:0;
z-index:1;
width:100%;
padding:1rem;
}
header .container{
display:flex;
justify-content:space-between;
align-items:center;
width:100%;
}
header nav ul{
display:flex;
}
header nav ul li{
padding:10px;
}
header button{
background: transparent;
border:0;
cursor: pointer;
color:white;
}
header h1 button{
font-size: 2rem;
font-weight: bold;
}
header nav ul li button{
font-size: 1.2rem;
}
/* End header.css */
/* main.css */
main{
width:100%;
height:100vh;
color:white;
background:linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('images/me.jpg') center center;
background-size:cover;
display:flex;
justify-content:center;
align-items:center;
text-align:center;
}
main h4{
font-size:2rem;
}
main h2{
font-size:3.5rem;
margin:2rem 0;
letter-spacing:3px;
font-family:'Varela Round', sans-serif; /* ์น ํฐํธ ์ถ๊ฐ */
}
main p{
max-width:500px;
margin:0 auto;
font-size:1.25rem;
}
main button.download{
background-color:transparent;
border:3px solid white;
border-radius:20px;
padding:1rem 2rem;
margin-top:3rem;
color:white;
font-weight:bold;
cursor:pointer;
}
main button.mouse{
background-color:transparent;
border:none;
color:white;
font-size:2rem;
position:absolute;
bottom:1rem;
left:50%;
transform:translateX(-50%);
animation:upDown 1s ease-in-out infinite;
cursor:pointer;
}
@keyframes upDown{
0%{
bottom:1rem;
}
50%{
bottom:1.5rem;
}
100%{
bottom:1rem;
}
}
main h2 span::after{
content:"";
height:40px;
width:3px;
background-color:#fff;
display:inline-block;
animation: blink .7s ease-in-out infinite;
}
@keyframes blink {
0%{
opacity: 1;
}
100%{
opacity: 0;
}
}
/* about_me.css */
section{
font-family:'Poppins', sans-serif;
padding:5rem 0;
}
section:nth-child(2n){
background-color:#f8f8f8;
}
section .title{
margin-bottom:3rem;
}
section .title h4{
font-size:1.35rem;
color:#ed4848;
position:relative;
}
section .title h2{
font-size:3.5rem;
}
section .title p{
font-size:1.15rem;
}
/* float ์์ฑ ํด์ */
section .about-self::after{
content:"";
clear:both;
display:block;
}
/* ๋ณธ๋ฌธ ๋๋น ์ ๋ฐ ์ง์ & ์ผ์ชฝ ๋ฐฐ์น */
section .about-self .left{
width:50%;
float:left;
}
/* ์ด๋ฏธ์ง ํฌ๊ธฐ๊ฐ ๋ถ๋ชจ ์์ญ์ ๋์ง ์๋๋ก ๋ถ๋ชจ ์์ญ์ ์ต๋ ํฌ๊ธฐ๋ก ์ง์ */
section .about-self .left img{
max-width:100%;
}
/* ๋ณธ๋ฌธ ๋๋น ์ ๋ฐ ์ง์ & ์ค๋ฅธ์ชฝ ๋ฐฐ์น */
section .about-self .right{
width:50%;
float:left;
padding:0 2rem;
}
/* ๋ณธ๋ฌธ ์ค๋ฅธ์ชฝ h3 ํ๊ทธ์ ๊ธ์ ํฌ๊ธฐ์ ์ฌ๋ฐฑ ์ง์ */
section .about-self .right h3{
font-size:2.25rem;
margin-bottom:1rem;
}
/* ๋ณธ๋ฌธ ์ค๋ฅธ์ชฝ h3 ํ๊ทธ์ strong ํ๊ทธ ์์ ๊ฐ์กฐ */
section .about-self .right h3 strong{
color:#ed4848;
}
/* ๋ณธ๋ฌธ ์ค๋ฅธ์ชฝ p ํ๊ทธ์ ํฌ๊ธฐ์ ์ฌ๋ฐฑ ์ง์ */
section .about-self .right p{
font-size:1.15rem;
margin:1rem 0;
}
/* ๋ณธ๋ฌธ ์ค๋ฅธ์ชฝ์ ์์ด์ฝ ํฐํธ ํฌ๊ธฐ์ ์ฌ๋ฐฑ ์ง์ */
section .about-self .right .social a{
font-size:2.5rem;
margin-right:0.2rem;
}
/* End about_me.css */
/* what_i_do.css */
/* float ์์ฑ ํด์ */
section .do-me::after{
content:"";
display:block;
clear:both;
}
/* ์ฌ๊ฐํ ํฌ๊ธฐ์ ๊ฐ๊ฒฉ, ๋ด๋ถ ์ฌ๋ฐฑ ์ค์ */
section .do-me .do-inner{
background-color:#fff;
width:30%;
padding:2rem;
float:left;
margin-right:5%;
cursor:pointer;
}
/* ๋ง์ง๋ง ์ฌ๊ฐํ์ ์ธ๋ถ ์ฌ๋ฐฑ ์ค์ */
section .do-me .do-inner:last-child{
margin-right:0;
}
/* ์์ด์ฝ ํฐํธ ํฌ๊ธฐ์ ์์ */
section .do-me .do-inner .icon i{
font-size:2.5rem;
color:#ff6a6a;
}
/* HTML5, CSS3, BootStrap v5.0 ํ
์คํธ ํฌ๊ธฐ์ ๊ฐ๊ฒฉ */
section .do-me .do-inner .content h3{
font-size:2rem;
margin:1rem 0;
}
/* ์ฌ๊ฐํ ํ
์คํธ ํฌ๊ธฐ */
section .do-me .do-inner .content p{
font-size:1.15rem;
}
/* do-inner ํด๋์ค์ ๋ง์ฐ์ค๋ฅผ ์ฌ๋ฆฌ๋ฉด ๋ฐฐ๊ฒฝ์๊ณผ ํ
์คํธ ์์ ๋ณ๊ฒฝ */
section .do-me .do-inner:hover{
background-color:lightcoral;
color:white;
}
/* do-inner ํด๋์ค์ ๋ง์ฐ์ค๋ฅผ ์ฌ๋ฆฌ๋ฉด ์์ด์ฝ ํฐํธ ์์ ๋ณ๊ฒฝ */
section .do-me .do-inner:hover i{
color:white;
}
/* End what_i_do.css */
/* background.css */
.bg{
background:url('./images/background.jpg') center center;
background-size:cover;
background-attachment:fixed;
height:650px;
}
/* End background.css */
/* portfolio.css */
/* clear ์์ฑ์ผ๋ก float ์์ฑ๊ฐ ํด์ */
section.portfolio::after{
content:"";
display:block;
clear:both;
}
/* portfolio-inner ์ฌ๊ฐํ ๊พธ๋ฏธ๊ธฐ */
section.portfolio .portfolio-inner{
width:30%;
margin-right:5%;
padding:1rem 1rem 1.5rem 1rem;
float:left;
background-color:#f8f8f8;
border:1px solid #ccc;
margin-bottom:3rem;
}
/* 3๋ฒ์งธ๋ง๋ค margin-right 0 ์ ์ฉ */
section.portfolio .portfolio-inner:nth-child(3n){
margin-right:0;
}
/* ์ด๋ฏธ์ง์ ํฌ๊ธฐ๊ฐ ๋ถ๋ชจ ์์๋ฅผ ๋์ง ์๋๋ก 100%๋ก ์ง์ */
section.portfolio .portfolio-inner img{
width:100%;
display:block;
}
/* strong ํ๊ทธ ์์๊ณผ ๊ฐ๊ฒฉ */
section.portfolio .portfolio-inner strong{
color:#ff6a6a;
margin:0.5rem 0;
display:block;
}
/* h3 ํ๊ทธ ์์๊ณผ ๊ฐ๊ฒฉ */
section.portfolio .portfolio-inner h3{
font-size:1.75rem;
}
/* End portfolio.css */
/* contact_with_me.css */
section.contact .contact-me::after{
content:"";
display:block;
clear:both;
}
section.contact .contact-me .left{
width:30%;
float:left;
}
section.contact .contact-me .right{
float:left;
width:65%;
margin-left:5%;
}
section.contact .contact-me .left .card{
border:1px solid #ccc;
padding:1rem;
display:flex;
align-items:center;
margin-bottom:1.25rem;
}
section.contact .contact-me .left .card .icon i{
font-size:2rem;
margin-right:15px;
}
section.contact .contact-me .right{
float:left;
width:65%;
margin-left:5%;
margin-bottom:2rem;
border:1px solid #ccc;
padding:1rem;
}
/* form-group ์ฌ์ด ๊ฐ๊ฒฉ ์ง์ */
section.contact .contact-me .right .form-group{
margin-bottom:1.25rem;
}
/* label ํ๊ทธ๊ฐ ์ธ๋ผ์ธ ์ฑ๊ฒฉ์ด์ด์ ์ธ๋ถ ์ฌ๋ฐฑ์ ์ ์ฉํ๊ธฐ ์ํด block์ผ๋ก ๋ณ๊ฒฝ */
section.contact .contact-me .right .form-group label{
display:block;
margin-bottom:0.85rem;
}
/* input ์์ ๊พธ๋ฏธ๊ธฐ */
section.contact .contact-me .right .form-group input{
padding:0.625rem;
width:100%;
outline:none;
border:1px solid #ccc;
border-radius:10px;
}
/* :focus ๊ฐ์ ํด๋์ค ์ ํ์๋ก ์
๋ ฅ ์์์ ์ปค์๊ฐ ํ์ฑํ๋๋ฉด ํ๋์ ํ
๋๋ฆฌ์ ๊ทธ๋ฆผ์ ํจ๊ณผ ์ถ๊ฐ */
section.contact .contact-me .right .form-group input:focus{
border:1px solid #719ECE;
box-shadow:0 0 10px #719ECE;
}
/* textarea ์์ ๊พธ๋ฏธ๊ธฐ */
section.contact .contact-me .right .form-group textarea{
height:300px;
width:100%;
resize:none;
border:1px solid #ccc;
border-radius:10px;
}
/* textarea ์์์ ์ปค์ ํ์ฑํ๊ฐ ๋๋ฉด ํ๋์ ํ
๋๋ฆฌ์ ๊ทธ๋ฆผ์ ํจ๊ณผ ์ถ๊ฐ */
section.contact .contact-me .right .form-group textarea:focus{
outline:none;
border:1px solid #719ECE;
box-shadow:0 0 10px #719ECE;
}
/* ๋ฒํผ ์์ ๊พธ๋ฏธ๊ธฐ */
section.contact .contact-me .right button{
width:100%;
padding:1rem;
background-color:#ED4848;
border:none;
color:white;
}
/* End contact_with_me.css */
/* media.css */
@media screen and (max-width: 1140px){
/* ๋ฉ์ธ container ๊ธฐ์ค 1140 -> 992px */
main .container{
width: 992px;
}
/* ์น์
container ๊ธฐ์ค 1140 -> 600px */
section .container{
width:600px;
}
/* About me ์์ญ ์ผ์ชฝ์ ๋๋น๋ฅผ 50% -> 100% ๋ณ๊ฒฝ */
section .about-self .left{
width:100%;
margin-bottom: 1.5rem;
}
/* About me ์์ญ ์ค๋ฅธ์ชฝ ๋๋น๋ฅผ 50% -> 100% ๋ณ๊ฒฝ */
section .about-self .right{
width:100%;
padding:0;
}
/* What I Do ์์ญ์ ์ฝํ
์ธ ๋ฐ์ค์ ๋๋น๋ฅผ 30% -> 48% ๋ณ๊ฒฝ */
section .do-me .do-inner{
width:48%;
margin-bottom: 1.5rem;
margin-right: 0;
}
section .do-me .do-inner:nth-child(2n+1){
margin-right:4%; /* 1, 3, 5...๋ฒ์งธ ๋ณธ๋ฌธ ์ฌ๊ฐํ์ margin-right 4% ์ ์ฉ */
}
/* PortFolio ์์ญ์ ์ฝํ
์ธ ๋ฐ์ค ๋๋น๋ฅผ 30% -> 48% ๋ณ๊ฒฝ */
section .portfolio-me .portfolio-inner{
width:48%;
margin-right: 0;
}
section .portfolio-me .portfolio-inner:nth-child(2n+1){
margin-right:4%;
}
/* Contact With Me ์์ญ */
section.contact .contact-me .left{
width:100%; /* ๋๋น ๋ณ๊ฒฝ 30% -> 100% */
}
section.contact .contact-me .right{
width:100%;/* ๋๋น ๋ณ๊ฒฝ 65% -> 100% */
margin-left: 0; /* margin ์ด๊ธฐํ */
}
}
@media (max-width: 992px){
html{
font-size: 14px;
}
/* ๋ฉ์ธ ์์ญ container ๊ธฐ์ค ๋๋น ๋ณ๊ฒฝ */
main .container{
width: 768px; /* 992px -> 768px */
}
/* PortFolio ์์ญ */
section .portfolio-me .portfolio-inner{
width:100%; /* 48% -> 100% ๋ณ๊ฒฝ */
}
}
@media (max-width: 768px){
html{
font-size: 13px;
}
/* ๋ฉ์ธ ์์ญ container ๊ธฐ์ค ๋๋น ๋ณ๊ฒฝ */
main .container{
width: 576px; /* 768px -> 576px */
}
section .container{
width:400px; /* 600px -> 400px */
}
section .do-me .do-inner{
width:100%; /* 48% -> 100% */
margin-right: 0; /* margin ์ด๊ธฐํ */
}
}
@media (max-width: 576px){
html{
font-size: 12px;
}
main .container{
width: 400px; /* 576px -> 400px */
}
section .container{
width:360px; /* 400px -> 360px */
}
}
@media (max-width: 400px){
html{
font-size: 11px;
}
main .container{
width: 320px;/* 400px -> 320px */
}
main h4{
font-size: 1.5rem;
}
section .container{
width: 320px;/* 360px -> 320px */
}
section .title h2{
font-size: 3rem; /* 3.5rem -> 3rem */
}
}
/* End media.css */
header.active{
background-color:rgba(0,0,0);
animation:fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn{
0%{
opacity:0;
}
100%{
opacity:1;
}
}
'IT > HTML' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[34์ผ์ฐจ] 10์ฅ ์๋์ฐ์ ๋ธ๋ผ์ฐ์ ๊ด๋ จ ๊ฐ์ฒด (0) | 2022.08.05 |
---|---|
[34์ผ์ฐจ] 9์ฅ ์ด๋ฒคํธ ๊ธฐ์ด ๋ฐ ํ์ฉ (0) | 2022.08.05 |
[34์ผ์ฐจ] 8์ฅ HTML DOM๊ณผ Document (0) | 2022.08.05 |
[33์ผ์ฐจ] 7์ฅ ์๋ฐ์คํฌ๋ฆฝํธ ์ฝ์ด ๊ฐ์ฒด์ ๋ฐฐ์ด (0) | 2022.08.04 |
[33์ผ์ฐจ] js02 (0) | 2022.08.04 |
๋๊ธ