-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
217 lines (203 loc) · 5.41 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
206
207
208
209
210
211
212
213
214
215
216
217
---
layout: default
---
<style>
.container-fluid {
overflow: hidden;
}
.photo-gallery {
display: flex;
white-space: nowrap;
animation: scrollLeft 30s linear infinite;
}
.photo-gallery img {
max-width: 100px;
margin-right: 10px;
height: 75px;
}
@keyframes scrollLeft {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-100%);
}
}
</style>
<script>
document.addEventListener("DOMContentLoaded", function () {
const photoGallery = document.querySelector(".photo-gallery");
const images = photoGallery.querySelectorAll("img");
// 이미지 복사 함수
function duplicateImages() {
images.forEach((img) => {
const clone = img.cloneNode(true);
photoGallery.appendChild(clone);
});
}
duplicateImages();
});
</script>
<div>
<div
style="
position: relative;
max-height: 200px;
overflow: hidden;
margin: 0 auto;
margin-top: -10px;
"
>
<img
src="../img/default/Banner2.png"
style="width: 100%; object-fit: cover"
/>
<div
class="post-header"
style="
height: 37px;
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: rgba(255, 255, 255, 0.8);
padding: 10px;
"
></div>
</div>
<div id="home" style="max-width: 1170px; margin: 0 auto">
{% if site.show_header %}
<header>
<h1>{{ site.title }}</h1>
</header>
{% endif %} {% for item in site.data.notice %} {% if item.status == "open"
%}
<div id="notice" class="shadow-lg mb-3" style="border-radius: 10px">
<div class="jumbotron">
<h4>{{ item.title }}</h4>
<p>{{ item.notice }}</p>
<button id="closeNotice">Close</button>
</div>
</div>
<script>
document
.getElementById("closeNotice")
.addEventListener("click", function () {
var notice = document.getElementById("notice");
notice.style.display = "none";
});
</script>
{% endif %} {% endfor %}
<div
id="carouselIndicators"
class="carousel slide shadow"
data-ride="carousel"
style="margin-top: 15px; margin-bottom: 20px; border-radius: 10px"
>
<ol class="carousel-indicators">
{% for fig in site.data.info.mainFig %}
<li
data-target="#carouselIndicators"
data-slide-to="{{ forloop.index0 }}"
{%
if
forloop.first
%}class="active"
{%
endif
%}
></li>
{% endfor %}
</ol>
<div class="carousel-inner" style="border-radius: 10px">
{% for fig in site.data.info.mainFig %}
<div class="carousel-item {% if forloop.first %}active{% endif %}">
<div class="row" style="margin: 0px">
<div style="display: flex; flex-direction: row">
<img
src="img/info/hello.jpg"
class="d-block w-50"
alt="{{ fig.title }}"
/>
<img
src="img/{{ fig.image }}"
class="d-block w-50"
alt="{{ fig.title }}"
/>
</div>
</div>
</div>
{% endfor %}
</div>
<a
class="carousel-control-prev"
href="#carouselIndicators"
role="button"
data-slide="prev"
>
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a
class="carousel-control-next"
href="#carouselIndicators"
role="button"
data-slide="next"
>
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<h3>Recent Publications</h3>
<div id="publications" class="container-fluid" style="border-radius: 10px">
<ul class="card-body" style="padding: 1rem; margin-left: 20px">
{% assign count = 0 %} {% for paper in site.data.publications %}
<li class="mb-2">
<div>
<strong
><big
><a
style="color: black; margin-top: 50px"
href="{{ paper.Link }}"
>{{ paper.Title }}</a
></big
></strong
>
</div>
<div style="margin-left: 0px; margin-top: 0px">{{paper.Authors}}</div>
{% if paper.Journal %}
<div style="margin-left: 0px; margin-top: 0px">
{{ paper.Journal }}, {{ paper.Year }}
</div>
{% endif %} {% if paper.Conference %}
<div style="margin-left: 0px; margin-top: 0px">
{{ paper.Conference }}, {{ paper.Year }}
</div>
{% endif %}
</li>
{% assign count = count | plus: 1 %} {% if count == 3 %} {% break %} {%
endif %} {% endfor %}
</ul>
</div>
<h3>Recent Photos</h3>
<div
class="container-fluid"
style="
padding: 0em;
overflow: hidden;
margin-bottom: 20px;
border-radius: 10px;
"
>
<a href="{{site.url}}/photos" class="photo-gallery">
{% for i in (1..16) %}
<img
src="./img/photos/2023/({{i}}).jpg"
alt="Image {{i}}"
style="border-radius: 5px"
/>
{% endfor %}
</a>
</div>
</div>
</div>