-
Notifications
You must be signed in to change notification settings - Fork 25
/
header.html
164 lines (144 loc) · 2.63 KB
/
header.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
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Simple, fast, safe, compiled programming language">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="//vlang.io/img/favicon.png">
<link href="//fonts.googleapis.com/css?family=Roboto:400,300,100,200,500,700|Roboto+Mono:400,300,100,200,500" rel="stylesheet" type="text/css">
<title>V Forum</title>
<!-- TODO remove external CSS and clean it up -->
<link href="//vlang.io/css/main.css?9" rel="stylesheet">
<style>
textarea {
resize: none;
width: 100%;
height:100px;
display: block;
margin-top:10px;
font-size:15px;
padding:10px;
border-radius: 12px;
border: none;
background: rgb(239, 239, 239);
}
h1 {
text-align: left;
font-size: 26px;
}
input[type=submit] {
padding: 5px;
padding-right: 10px;
padding-left: 10px;
margin-top: 10px;
font-size:100%;
}
#social {
display:none;
}
input[type=text] {
margin-top:30px;
width:100%;
font-size:15px;
padding:10px;
border-radius: 12px;
border: none;
background: rgb(239, 239, 239);
}
input[type=text]:focus {
outline: none;
}
textarea:focus {
outline: none;
}
.comment {
color: #222;
border-bottom: 1px solid #dfdfdf;
display: block;
padding:10px;
font-size: 14px;
}
i {
float:right;
color: #919191;
font-size:13px;
}
b {
color: #646464;
font-size: 14px;
}
.text {
margin-top:3px;
}
.post {
padding: 10px;
border-radius: 12px;
}
.post:hover {
background-color:#f7f7f7;
cursor: pointer;
border-radius: 12px;
}
.time {
float: right;
}
img.avatar {
border-radius: 100%;
width: 50px;
float: left;
margin-right: 10px;
}
.author {
font-size: 13px;
color: #646464;
clear: both;
padding-left: 10px;
height: 50px;
margin-bottom:10px;
}
.post-time {
padding-top:5px;
}
a.topic {
display: inline-block;
color:#333;
width: 75%;
}
.nav{
align-items: center;
justify-content: space-between;
display: flex;
}
img.comment-img, img.comment-img::after {
content:url(//vlang.io/img/comment.png);
width: 17px;
position: relative;
top: 3px;
}
.center {
max-width: 800px !important;
}
#log_off {
float:right;
}
.new_button{
border-radius: 12px;
border: 0;
}
</style>
</head>
<body>
<div class="content">
<div class="center">
<div class="nav">
<h1><a href=/>V Forum</a></h1>
<div id='log_off'>
@if app.logged_in
<b>@app.user.name</b> <a href='/logoff'>Log off</a>
@else
<a href="https://github.com/login/oauth/authorize?response_type=code&client_id=@client_id">Log in</a>
@end
</div>
</div>
</div>
</div>