-
Notifications
You must be signed in to change notification settings - Fork 0
/
3.html
134 lines (130 loc) · 3.86 KB
/
3.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
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NEWSLETTER</title>
<style>
@font-face {
font-family: 'IBMPlexSansKR-Regular';
src: url('YOUR_GOOGLE_DRIVE_FONT_URL') format('woff2');
}
@font-face {
font-family: 'IBMPlexSansKR-Bold';
src: url('YOUR_GOOGLE_DRIVE_BOLD_FONT_URL') format('woff2');
}
body {
font-family: 'IBMPlexSansKR-Regular', Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
.container {
width: 100%;
max-width: 800px;
margin: 0 auto;
background-color: white;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.header {
text-align: left;
border-bottom: 2px solid #000;
padding: 20px;
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
background-color: #000;
}
.header h1 {
margin: 0;
font-size: 48px;
font-family: 'IBMPlexSansKR-Bold', Arial, sans-serif;
letter-spacing: 2px;
color: white;
}
.logo {
width: auto;
height: 30px;
}
.main {
display: flex;
flex-direction: column;
padding: 20px;
}
.item {
width: 100%;
margin-bottom: 30px;
border: 1px solid #eee;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
transition: transform 0.3s ease;
}
.item:hover {
transform: translateY(-5px);
}
.item img {
width: 100%;
height: auto;
cursor: pointer;
}
.item h2 {
background-color: #000;
color: #fff;
padding: 15px;
margin: 0;
font-family: 'IBMPlexSansKR-Bold', Arial, sans-serif;
font-size: 18px;
}
.item p {
padding: 15px;
margin: 0;
line-height: 1.6;
}
.item .published-date {
padding: 10px 15px;
font-size: 0.9em;
color: #666;
border-top: 1px solid #eee;
background-color: #f9f9f9;
}
.footer {
border-top: 2px solid #000;
padding: 20px;
text-align: center;
font-size: 14px;
color: #000;
}
.footer a {
color: #000;
text-decoration: none;
font-weight: bold;
}
.footer a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>NEWSLETTER</h1>
<img src="data:image/png;base64,{{ logo_base64 }}" alt="로고" class="logo">
</div>
<div class="main">
{% for news in news_items %}
<div class="item">
<a href="{{ news.url }}" target="_blank">
<img src="{{ news.image_url }}" alt="Image">
</a>
<div class="published-date">발행일: {{ news.published_at.strftime('%Y년 %m월 %d일') }}</div>
<h2>{{ news.title }}</h2>
<p>{{ news.description }}</p>
</div>
{% endfor %}
</div>
<div class="footer">
기사 원문은 <a href="https://stoz.co.kr/">STOZ</a>에서 확인하실 수 있습니다.
</div>
</div>
</body>
</html>