forked from vlang/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_layout.html
More file actions
211 lines (160 loc) · 7.16 KB
/
_layout.html
File metadata and controls
211 lines (160 loc) · 7.16 KB
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
@define "header"
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Simple, fast, safe, compiled programming language">
<meta name="google-site-verification" content="gwMiS9Rv5gRM6LYRX03qkGk2RQkscnQmij3k2ME2BAM" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="/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'>
<!--
<link href="//fonts.googleapis.com/css?family=Roboto|Roboto+Mono" rel="stylesheet">
-->
<title>The V Programming Language</title>
@css "main.css?11"
<script>
function showtg() {
document.getElementById('tg0').style.display = 'none';
document.getElementById('tg1').style.display = 'block';
document.getElementById('tg2').style.display = 'block';
document.getElementById('tg3').style.display = 'block';
document.getElementById('tg4').style.display = 'block';
return false
}
function set_lang(lang) {
document.cookie = 'lang=' + lang + '; expires=Fri, 19 Jun 2020 20:47:11 UTC; path=/'
window.location.reload()
}
</script>
</head>
<body>
<div class='content'>
<div class='menu' style='width:auto !important;'>
<div class='center' style='text-align:center'>
<a href='/'><img src='/img/v-logo.png' style='width:30px;position: relative; top: 5px;'></a>
<a target=_blank href='https://github.com/vlang/V/tree/master/examples'>%examples</a>
<a href='/docs'>%documentation</a>
<a href='/modules'>%modules<!--<span style='color:red; font-size:11px; font-weight:bold'> (new!)</span>--></a>
<a href='//vpm.vlang.io'>vpm</a>
<a href='/play'>Playground</a>
<a href='/#faq'>%faq</a>
<!--
<a href='/#software'>%built_in_v</a>
-->
<a href='https://github.com/vlang/v/wiki/Backers'>Backers</a>
</div>
</div>
<div id='donate'>
<a target=_blank href='https://www.patreon.com/vlang'><img height=35 src='/img/patreon.png'></a>
<a style='text-align:center; display:block;' target=_blank href='https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=HRGVJ2LA2LKJ8&item_name=Support+V+development¤cy_code=USD&source=url&lc=US '> Donate via PayPal </a>
</div>
<div class='br'></div>
<div id='social'>
<div id='social1'>
<a target=_blank
href='https://twitter.com/v_language'><img
src='/img/twitter.png'><span class='social-text'>@v_language</span></a>
<!--
<a target=_blank
href='https://join.slack.com/t/vlang-io/shared_invite/enQtNTQ4NDk4OTE1NTM2LWQ4YmU2YjgzYWIxMzg5NzVjY2RiNGZiNTY2YmU2MjE4MGM1NzhhZTY4MmNkYTRhYmUxY2Q4OTM0OTdiOTY5Yzc'><img width=30
src='/img/slack.png'><span class='social-text'>Slack</span></a>
-->
<a href='https://discord.gg/n7c74HM' target=_blank><img src='/img/discord.png'><span class='social-text'>Discord</span> <span id='git-btn'>1.8k</span></a>
<!--
<div style='margin-bottom: 10px'>
-->
<a href='https://github.com/vlang/v/wiki' ><img src='/img/chat.png' ><span class='social-text'>Blog</span></a>
<!--
<a href='//blog.vlang.io' style='display:inline'><span class='social-text'> </span></a>
</div>
-->
<a href='https://www.youtube.com/channel/UCLZIElNyubHOvbfudT7KS1A' target=_blank><img src='/img/youtube.png' style='position:relative;top:1px'><span class='social-text'>YouTube Channel</span></a>
<!--
<a target=_blank href='https://old.reddit.com/r/vlang'><img src='/img/reddit.png'><span class='social-text'>/r/vlang</span></a>
-->
<a target=_blank href='https://t.me/vlang_en' id=tg0 onclick='return showtg()'><img
src='/img/telegram.png'><span class='social-text'>Telegram</span></a>
<a target=_blank href='https://t.me/vlang_en' id=tg1 style='display:none'><img src='/img/telegram.png'><span class='social-text'>vlang_en</span></a>
<a target=_blank href='https://t.me/vlang_rus' id=tg2 style='display:none'><img src='/img/telegram.png'><span class='social-text'>vlang_rus</span></a>
<a target=_blank href='https://t.me/vlang_it' id=tg4 style='display:none'><img src='/img/telegram.png'><span class='social-text'>vlang_it</span></a>
<a target=_blank href='https://t.me/vlang_zh' id=tg3 style='display:none'><img src='/img/telegram.png'><span class='social-text'>vlang_zh</span></a>
</div>
<div id='lang-links'>
<select id='select_lang' onchange='var s = document.getElementById("select_lang"); set_lang(s.options[s.selectedIndex].value);'>
<option value='en'> English</option>
<option value='en'> English</option>
<option value="de"> Deutsch</option>
<option value="es"> Español</option>
<option value="fr"> Français</option>
<option value="ru">Русский </option>
<option value="zh">中文 </option>
<option value="ja">日本語</option>
</select>
<!--
<div onclick='set_lang("en")'> English</div>
<div onclick='set_lang("de")'> Deutsch</div>
<div onclick='set_lang("es")'> Español</div>
<div onclick='set_lang("fr")'> Français</div>
<div onclick='set_lang("ru")'>Русский </div>
<div onclick='set_lang("zh")'>中文 </div>
<div onclick='set_lang("ja")'>日本語</div>
-->
<!--
<div style='margin-top:10px'>
<a target=_blank style='font-size:80%; ' href=
'https://github.com/vlang/v/wiki/Helping-to-translate-the-V-website'>fix an error/<br>help translate</a>
</div>
-->
</div>
</div>
<!--
<a target=_blank href='https://groups.google.com/forum/#!forum/vlang'><img width=30 src='img/gmail.png'>V mailing list</a>
-->
<div style='flex-grow:1' id='main-header'>
<h1> <a href='/' style='color:black'> %the_v_lang</a> </h1>
<div style='font-size:18px; text-align:center; position: relative; top:-10px; font-weight:300'>
%v_slogan
<!--
<a target=_blank href='https://volt-app.com'>Volt</a>,
soon available for everyone.
<br><br>
Open source release on June 20, 2019.
<a target=_blank href='https://www.patreon.com/vlang'>Early access</a> since April 15.
-->
<a target=_blank href='https://github.com/vlang/v' style='font-size:16px; display: block; margin-top: 17px;'><img
style='width:30px; position: relative; top:10px'
src='/img/github.png'> github.com/vlang/v<span id='git-btn'><svg style='position: relative; top: 3px;' viewBox="0 0 14 16" version="1.1" width="12" height="14" aria-hidden="true"><path fill-rule="evenodd" d="M14 6l-4.9-.64L7 1 4.9 5.36 0 6l3.6 3.26L2.67 14 7 11.67 11.33 14l-.93-4.74L14 6z"></path></svg>14k</span></a>
</div>
<div id='install'>
Install V from source in 0.5 seconds
<pre>wget vlang.io/v.c && gcc -o v v.c</pre>
<!--
or if you already have V
<pre>wget https://vlang.io/v.v && v v.v</pre>
-->
</div>
</div>
<div id='sub-form'>
<form method='POST' action='/subscribe'>
<div>
<!--Subscribe to development updates -->
</div>
<input type='text' name='email' class='txt-subscribe'
placeholder='Enter your email to sub to dev updates' style='visibility:hidden; font-size:84%'>
<input type='submit' value='Subscribe' style='visibility:hidden'>
</form>
</div>
@end
@define "footer"
<span id='logo' style='font-size:80%; color: #777'>
<img src='/img/v-logo.png' style='width:15px;position: relative; top: 3px;'> logo by <a href='https://github.com/sonovice/' target=_blank>Sonovice</a> and
<a href='https://github.com/donnisnoni95' target=_blank>Don</a>.
<br><br><br>
</span>
</div>
</body>
</html>
@end