-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.html
210 lines (179 loc) · 8.8 KB
/
blog.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
206
207
208
209
210
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>HIAR</title>
<meta content="" name="description">
<meta content="" name="keywords">
<meta property="og:type" content="website">
<meta property="og:url" content="https://hiar.co.kr/index.html">
<meta property="og:title" content="HIAR">
<meta property="og:image" content="https://github.com/chamroro/HIAR-front/blob/main/assets/img/og.png?raw=true">
<meta property="og:description" content="화해중재원 홈페이지에 오신 것을 환영합니다.">
<meta property="og:site_name" content="HIAR">
<meta property="og:locale" content="en_US">
<!-- 다음의 태그는 필수는 아니지만, 포함하는 것을 추천함 -->
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<!-- Favicons -->
<link href="assets/img/favicon.png" rel="icon">
<link href="assets/img/apple-touch-icon.png" rel="apple-touch-icon">
<!-- Google Fonts -->
<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=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600;1,700&family=Roboto:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Work+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap"
rel="stylesheet">
<link
href="https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Libre+Baskerville:wght@700&family=Playfair+Display:wght@700&display=swap"
rel="stylesheet">
<!-- Vendor CSS Files -->
<link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
<link href="assets/vendor/fontawesome-free/css/all.min.css" rel="stylesheet">
<link href="assets/vendor/aos/aos.css" rel="stylesheet">
<link href="assets/vendor/glightbox/css/glightbox.min.css" rel="stylesheet">
<link href="assets/vendor/swiper/swiper-bundle.min.css" rel="stylesheet">
<!-- Template Main CSS File -->
<link href="assets/css/main.css" rel="stylesheet">
<!-- =======================================================
* Template Name: UpConstruction - v1.1.0
* Template URL: https://bootstrapmade.com/upconstruction-bootstrap-construction-website-template/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
======================================================== -->
</head>
<body>
<script src="https://www.gstatic.com/firebasejs/8.6.5/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.6.5/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.6.5/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.6.5/firebase-storage.js"></script>
<script src="config.js"></script>
<script type="module">
import { db } from './config.js';
db.collection('posts')
.get()
.then((result) => {
result.forEach((postInfo) => {
const convertDate = (date) => {
var d = date.toString();
return d.substr(4, 11);
};
var date = convertDate(postInfo.data().uploadDate.toDate());
const data = postInfo.data().id;
const postTemplate = `
<div class="col-xl-4 col-md-6">
<div class="post-item position-relative h-100">
<div class="post-content d-flex flex-column">
<h3 class="post-title"><a class="goToPost overflow" style="color: #364D59;" href="post.html?${data}">${postInfo.data().title}</a></h3>
<div class="meta d-flex align-items-center">
<div class="d-flex align-items-center overflow">
<span>${postInfo.data().sub}</span>
</div>
</div>
<div class="filedate d-flex justify-content-between flex-row-reverse">
<div style="order:1;" class="writedate">
<h5>${date}</h5>
</div>
</div>
</div>
</div>
</div>
`;
document.querySelector('.posts-list').insertAdjacentHTML('afterbegin', postTemplate);
const aTag = document.querySelector(`a[href="post.html?${data}"]`);
aTag.addEventListener('click', () => {
location.href = `post.html?${data}`;
}, false);
});
});
</script>
<!-- ======= Header ======= -->
<header id="header" class="header d-flex align-items-center">
<div class="container-fluid container-xl d-flex align-items-center justify-content-between">
<a href="index.html" class="logo d-flex align-items-center">
<!-- Uncomment the line below if you also wish to use an image logo -->
<!-- <img src="assets/img/logo.png" alt=""> -->
<img src="assets/img/logo.png">
</a>
<i class="mobile-nav-toggle mobile-nav-show bi bi-list"></i>
<i class="mobile-nav-toggle mobile-nav-hide d-none bi bi-x"></i>
<nav id="navbar" class="navbar">
<ul>
<li class="dropdown active"><a href="index.html"><span>홈</span> <i
class="bi bi-chevron-down dropdown-indicator"></i></a>
<ul>
<li><a href="index.html#about">비전</a></li>
<li><a href="index.html#about">설립취지</a></li>
<li><a href="index.html#alt-services">주요사업</a></li>
</ul>
</li>
<li class="dropdown active"><a href="about.html"><span>소개</span> <i
class="bi bi-chevron-down dropdown-indicator"></i></a>
<ul>
<li><a href="about.html#about">조직구성</a></li>
<li><a href="about.html#features">인사말</a></li>
<li><a href="about.html#symbol">로고와 상징</a></li>
</ul>
</li>
<li class="dropdown active"><a href="blog.html"><span>게시판</span> <i
class="bi bi-chevron-down dropdown-indicator"></i></a>
<ul>
<li><a href="blog.html">글 목록</a></li>
</ul>
</li>
<li class="dropdown active"><a href="clinic.html"><span>클리닉</span> <i
class="bi bi-chevron-down dropdown-indicator"></i></a>
<ul>
<li><a href="clinic.html">상담 조정 신청</a></li>
</ul>
</li>
<li class="dropdown active"><a href="contact.html"><span>정보</span> <i
class="bi bi-chevron-down dropdown-indicator"></i></a>
<ul>
<li><a href="contact.html">연락처</a></li>
</ul>
</li>
<li class="dropdown active"><a href="bloge.html">English></a>
</li>
<li class="dropdown active"></li><a class="headerButton"
href="mailto:[email protected], [email protected]">상담, 조정신청</a>
</li>
</ul>
</nav><!-- .navbar -->
</div>
</header><!-- End Header -->
<main id="main">
<!-- ======= Breadcrumbs ======= -->
<div class="breadcrumbs d-flex align-items-center" style="background-image: url('assets/img/breadcrumbs-bg.png');">
<div class="container position-relative d-flex flex-column align-items-center" data-aos="fade">
<h2>게시판</h2>
</div>
</div><!-- End Breadcrumbs -->
<!-- ======= Blog Section ======= -->
<section id="blog" class="blog">
<div class="container" data-aos="fade-up" data-aos-delay="100">
<div style="margin-bottom: 200px;" class="row gy-4 posts-list ">
</div><!-- End blog posts list -->
</div>
</section><!-- End Blog Section -->
</main><!-- End #main -->
<footer include-html="footer.html"></footer>
<a href="#" class="scroll-top d-flex align-items-center justify-content-center"><i
class="bi bi-arrow-up-short"></i></a>
<div id="preloader"></div>
<!-- Vendor JS Files -->
<script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="assets/vendor/aos/aos.js"></script>
<script src="assets/vendor/glightbox/js/glightbox.min.js"></script>
<script src="assets/vendor/isotope-layout/isotope.pkgd.min.js"></script>
<script src="assets/vendor/swiper/swiper-bundle.min.js"></script>
<script src="assets/vendor/purecounter/purecounter_vanilla.js"></script>
<!-- Template Main JS File -->
<script src="assets/js/main.js"></script>
<script>
includeHTML();
</script>
</body>
</html>