-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
205 lines (169 loc) · 7.36 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PHP Class</title>
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="assets/css/fonts.css">
<style>
* {
margin: 0;
padding: 0;
color: #000;
font-family: 'SBAggro';
}
li {
list-style: none;
}
a {
text-decoration: none;
color: inherit;
}
body,
html {
overflow-y: hidden;
}
#wrap {
display: flex;
}
#nav {
width: 300px;
padding: 20px;
background-color: #1975de0a;
overflow-y: scroll;
max-height: 97vh;
}
/* 아래의 모든 코드는 영역::코드로 사용 */
.scroll::-webkit-scrollbar {
width: 10px;
/* 스크롤바의 너비 */
}
.scroll::-webkit-scrollbar-thumb {
height: 30%;
/* 스크롤바의 길이 */
background: #adadad;
/* 스크롤바의 색상 */
border-radius: 10px;
}
.scroll::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.1);
/*스크롤바 뒷 배경 색상*/
}
#nav h2 {
margin-bottom: 10px;
}
#nav ul {
margin-bottom: 25px;
}
#nav li a {
border: 1px solid #000;
display: flex;
padding: 10px;
margin-bottom: 5px;
justify-content: flex-start;
text-align: left;
font-size: 15px;
font-weight: 100;
}
#nav li a:hover {
background-color: #1976DE;
border: 1px solid #1976DE;
color: #fff;
}
#nav .webd {
margin-top: 50px;
}
#nav .webd li {
width: 55px;
display: inline-block;
text-align: center;
}
#main {
width: 100%;
min-height: 100vh;
}
#main iframe {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id="wrap">
<nav id="nav" class="scroll">
<ul class="html_page">
<h2>HTML</h2>
<li><a href="html/main.html">메인(main.html)</a></li>
<li><a href="html/introduce.html">교복소개</a></li>
<li><a href="html/intro_detail.html">교복소개 : 상세 + 댓글</a></li>
<li><a href="html/ranking.html">인기순위</a></li>
<li><a href="html/cummunity.html">수다방</a></li>
<li><a href="html/community_view.html">수다방 : 상세</a></li>
<li><a href="html/login.html">로그인</a></li>
<li><a href="html/join.html">회원가입 : 정보입력, 이용약관</a></li>
<li><a href="html/joinEnd.html">회원가입 : 가입완료</a></li>
<li><a href="html/mypage.html">마이페이지</a></li>
<li><a href="html/idFind.html">아이디 찾기</a></li>
<li><a href="html/passFind.html">비밀번호 찾기</a></li>
</ul>
<ul class="php_page">
<h2>PHP</h2>
<li><a href="connect/connect.php">DB 접속(connect.php)</a></li><br>
<!-- <li><a href="create/createMember.php">멤버 테이블 만들기(createMember.php)</a></li>
<li><a href="create/createCommunity.php">게시판 테이블 만들기(createCommunity.php)</a></li> -->
<!-- <li><a href="create/createBlog.php">블로그 테이블 만들기(createBlog.php)</a></li>
<li><a href="create/createBlogComment.php">블로그 댓글 테이블 만들기(createBlogComment.php)</a></li>
<li><a href="create/createCommunityData.php">게시판 데이터 만들기(createCommunityData.php)</a></li>
<li><a href="create/createIntroComment.php">교복소개 댓글 테이블 만들기(createCommunityData.php)</a></li>
<li><a href="create/commentLikes.php">좋아요 테이블</a></li><br> -->
<!-- <li><a href="create/createIntroCommentData.php">교복소개 댓글 데이터 만들기</a></li>
<li><a href="create/createIntroComment.php">교복소개 댓글 테이블 만들기(createCommunityData.php)</a></li>
<li><a href="create/createIntro.php">교복소개 테이블</a></li>
<li><a href="create/createIntroData.php">교복소개 테이블22</a></li> -->
<li><a href="main/main.php">메인(main.php)</a></li>
<li><a href="login/login.php">로그인</a></li>
<li><a href="join/join.php">회원가입 : 정보입력, 이용약관</a></li>
<li><a href="join/joinEnd.php">회원가입 : 가입완료</a></li>
<li><a href="find/findId.php">아이디 찾기</a></li>
<li><a href="find/findPass.php">비밀번호 찾기</a></li>
<li><a href="cummunity/cummunity.php">수다방</a></li>
<li><a href="cummunity/communityView.php?blogId=29">수다방 : 상세</a></li>
<li><a href="mypage/mypage.php">마이페이지 : 내 정보 변경 (완료)</a></li>
<li><a href="mypage/mypageWrite.php">마이페이지 : 내가 쓴 글 (완료)</a></li>
<!-- <li><a href="mypage/mypageLike.php">마이페이지 : 내가 좋아한 글</a></li> -->
<li><a href="mypage/mypageGyobok.php">마이페이지 : 내가 좋아한 교복</a></li>
<li><a href="mypage/mypagePass.php">마이페이지 : 비밀번호 변경 (완료)</a></li>
<li><a href="mypage/mypageLeave.php">마이페이지 : 회원 탈퇴하기 (완료)</a></li>
</ul>
</nav>
<!-- <div class="box">
<ul>
<li><a href="html/main.html">메인(main.html)</a></li>
<br>
<li><a href="html/join.html">회원가입 : 정보입력, 이용약관</a></li>
<li><a href="html/joinEnd.html">회원가입 : 가입완료(joinEnd.html)</a></li>
</ul>
<ul>
<li><a href="connect/connect.php">DB 접속(connect.php)</a></li><br>
<li><a href="create/createMember.php">멤버 테이블 만들기(createMember.php)</a></li><br>
<li><a href="main/main.php">메인(main.php)</a></li><br>
<li><a href="join/join.php">회원가입 : 정보입력, 이용약관</a></li>
<li><a href="join/joinEnd.php">회원가입 : 가입완료</a></li>
</ul>
</div> -->
<main id="main">
<iframe src="html/main.html" frameborder="0"></iframe>
</main>
<script>
document.querySelectorAll("#nav ul li").forEach((li) => {
li.addEventListener("click", (event) => {
event.preventDefault();
const href = li.querySelector("a").getAttribute("href");
document.querySelector("#main iframe").src = href;
});
});
</script>
</div>
</body>
</html>