-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.html
113 lines (102 loc) · 2.5 KB
/
template.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>GitHub article Preview</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f6f8fa;
}
.article {
width: 1200px;
height: 630px;
background-color: #fff;
border: 1px solid #e1e4e8;
border-radius: 6px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
padding: 32px;
position: relative;
}
.article-header {
padding: 32px;
display: flex;
justify-content: space-between;
align-items: center;
.article-name {
font-size: 56px;
font-weight: 600;
color: #0366d6;
flex: 1;
}
}
.article-description {
padding: 32px;
font-size: 32px;
margin-top: 8px;
display: flex;
color: #586069;
}
.article-footer {
padding: 32px;
border-top: 1px solid #e1e4e8;
justify-content: space-between;
align-items: center;
font-size: 16px;
display: flex;
width: calc(100% - 2 * 32px);
bottom: 0;
position: absolute;
box-sizing: border-box;
color: #586069;
.left {
align-self: flex-start;
}
.right {
align-self: flex-end;
}
}
.container {
display: flex;
.left {
width: 100%;
}
.right {
flex: 0 0 20%;
display: flex;
justify-content: flex-end;
align-items: center;
}
}
</style>
</head>
<body>
<div class="article">
<div class="container">
<div class="left">
<div class="article-header">
<div class="article-name">Random Article title</div>
</div>
<div class="article-description">Random article description</div>
</div>
<div class="right">
<img
src="https://avatars.githubusercontent.com/u/13270428"
alt="User"
width="100%"
style="border-radius: 50%"
/>
</div>
</div>
<div class="article-footer">
<div class="left">Shawn Hsu</div>
<div class="right">
<div class="repo-updated">Created on Jan 1, 2022</div>
</div>
</div>
</div>
</body>
</html>