forked from vlang/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_layout.html
173 lines (127 loc) · 5.35 KB
/
_layout.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
172
173
@define "header"
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Simple, fast, safe, compiled programming language">
<meta name="google-site-verification" content="txGsy6FXpcB0Kn3kwbC_NwX6UEIq4OFniAGEziASvMo" />
<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?2"
<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';
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 target=_blank href='https://github.com/vlang/V/tree/master/examples'>%examples</a>
<a href='/docs'>%documentation</a>
<a href='/modules'>%modules</a>
<!--
<a href='/play'>Playground</a>
-->
<a href='/#faq'>%faq</a>
<a href='/#software'>%built_in_v</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'>864</span></a>
<a href='//blog.vlang.io'><img src='/img/blog.png'><span class='social-text'>%blog</span></a>
<a href='//forum.vlang.io/forum'><img src='/img/chat.png'><span class='social-text'>%forum</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_ru' id=tg2 style='display:none'><img src='/img/telegram.png'><span class='social-text'>vlang_ru</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'>
<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/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'>
<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'>9.3k</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='Your email'>
<input type='submit' value='Subscribe'> <!-- style='visibility:hidden'> -->
</form>
</div>
@end
@define "footer"
</div>
</body>
</html>
@end