이번 시간에는 코딩을 시작했다~
페이지가 총 8개라 두개씩 분담해서 작업하기로 했다. 분담 후에는 모든 페이지에 공통적으로 들어가는 요소인 네비게이션 바를 같이 제작해보았다.저번 시간 만들어놨던 깃허브 저장소에 서로 푸시 풀 해가며 작업해보면서 깃허브 사용이 좀 더 익숙해진 것 같다.
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 href="index.css" rel="stylesheet">
<title>Ewhadule</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<div class="page-header">
<a id="menu-icon" class="menu-icon" onclick="onMenuClick()">
<i class="fa fa-bars"></i>
</a>
<div id="navigation-bar" class="Logo">
<a class="active"> EWHADULE </a>
</div>
<div class = "nav">
<a> 강의실 </a>
<a> 시간표 </a>
<a> 수강신청 </a>
</div>
</div>
<script src="index.js">
</script>
</body>
</html>
CSS 코드
@import url('https://fonts.googleapis.com/css2?family=Kumar+One&display=swap');
@font-face {
font-family: 'NanumSquareNeo-Variable';
src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_11-01@1.0/NanumSquareNeo-Variable.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
body{
background-color: #153C20;
}
* {
margin: 0;
padding: 0;
}
.page-header {
background-color: var(--bgcolor);
color: white;
display: flex;
justify-content: space-between;
align-items: center;
width:100%;
height:105px;
border-bottom: #fff solid 1px;
}
.nav{
margin-right:30px;
display:flex;
width:400px;
justify-content: space-evenly;
}
.nav > a {
color: white;
padding: 1.5rem;
cursor: pointer;
font-family: 'NanumSquareNeo-Variable';
}
.nav > a:hover {
background-color: #FCF6F6;
opacity: 0.8;
color:#153C20;
}
.Logo{
margin-top:8px;
}
.Logo a.active {
background-color: #153C20;
font-family: 'Kumar One', cursive;
font-size:25px;
margin-left: 35px;
}
.menu-icon {
color: white;
cursor: pointer;
display: none;
}
'웹개발' 카테고리의 다른 글
[생활코딩 WEB2 Javascript] 정리노트 3 (0) | 2023.06.19 |
---|---|
웹개발 프로젝트 - 3. UI 디자인 완성 (0) | 2023.05.20 |
웹개발 프로젝트 - 2. 깃허브 연결하기 (0) | 2023.05.13 |
웹개발 프로젝트 - 1. 이화듈 소개 (0) | 2023.05.06 |
[생활코딩 WEB2 Javascript] 정리노트 2 (0) | 2023.05.06 |