-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindeks.html
171 lines (169 loc) · 3.39 KB
/
indeks.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
<!DOCTYPE html>
<html>
<head>
<title>Kumpulan Berita</title>
<style>
body{
background: #eaeaea;
background-image: url(bg2.jpg)
font: 16/28px arial, san-serif;
background-size: cover;
}
.container{
width: 960px;
background-color: white;
margin: 30px auto;
display: flex;
flex-direction: column;
min-height: 100vh;
flex-wrap: wrap;
}
.header{
padding: 20px;
}
.header .judul{
font-size: 40px;
color: red;
font-weight: bold;
}
.header ul li{
display: inline-block;
margin-top: 20px;
margin-right: 10px;
}
.header a{
text-decoration: none;
border: 2px solid salmon;
padding: 5px;
border-radius: 20px;
font-size: 14px;
font-family: arial;
}
header, a:hover{
background: lightskyblue;
color: white;
}
.hero{
height: 400px;
background-size: cover;
background-image: url(bg.jpg);
background-position: 0 -50px;
border-top: 3px solid salmon;
border-bottom: 3px solid skyblue;
}
.content{
display: flex;
}
.main{
width: 600px;
padding: 20px;
box-sizing: border-box;
border-bottom: 1px solid #ccc;
}
.main h2{
font-weight: bold;
font-size: 28px;
}
.main .penulis{
font-size: 11px;
text-decoration: none;
}
.main a:hover{
font-style: italic;
font-weight: bold;
}
.main p{
margin-bottom: 20px;
font-size: 14px;
text-align: justify;
overflow: hidden;
text-overflow: ellipsis;
display: webkit-box;
webkit-line-clamp: 5;
webkit-box-orient: vertical;
border-bottom: 1px solid #ccc;
padding-bottom: 10px;
}
.sidebar{
width: 300px;
padding: 20px;
}
.sidebar h3{
font-weight: bold;
padding-bottom: 8px;
}
.sidebar img{
width: 80px;
float: left;
padding-right: 10px;
opacity: 0.2;
}
.sidebar img:hover{
opacity: 1;
}
.sidebar p{
text-align: justify;
font-size: 12px;
}
.footer{
background: lightskyblue;
padding: 10px;
border-top: 3px solid salmon;
margin-top: auto;
}
.footer .copy{
text-align: center;
font-size: 12px;
margin-left: auto;
margin-right: auto;
width: max-content;
}
.footer a:hover{
color: white;
text-decoration: none;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<marquee direction="left"><h1 class="judul">Selamat Datang Di Website Susanto</h1>
</marquee>
<ul>
<li><a href="layout berita.html">HOME</a></li>
<li><a href="galeri.html">GALERI</a></li>
<li><a href="contact.html">CONTACT</a></li>
<li><a href="service.html">SERVICE</a></li>
<li><a href="about.html">ABOUT</a></li>
</ul>
</div>
<div class="hero"></div>
<div class="content cf">
<div class="main">
<body>
<h1>
Berita Hari Ini
</h1>
<hr>
<article>
<h2><a href="layout berita.html">Zaman Tiga Kerajaan 'Penghujung Dinasti Han'</a></h2>
</div>
</article>
<div class="sidebar">
<h3>Tentang Penulis</h3>
<img src="susanto.png" alt="susanto">
<p>Susanto adalah murid SMKS Hosana Tebas yang sekarang,
sedang duduk di bangku kelas 12 SMK dari Jurusan Teknik
Komputer dan Jaringan.
Selamat membaca, semoga isinya menarik dan membantu kita
untuk saling menuangkan ide-ide yang kreatif supaya
saling berkembang.</p>
</div>
</div>
<div class="footer">
<p class="copy">Copyright 2024
<a href="#">@SMKS HOSANA TEBAS</a></p>
</div>
</div>
</body>
</html>