1
1
<div class =" bg-blue-dark border-t-8 border-green" >
2
2
<div class =" container flex items-center flex-wrap px-4 md:px-0 mx-auto" >
3
3
<div class =" flex-1 flex items-center" >
4
- <a href =" / " >
4
+ <a href =" <%= lang() %> " >
5
5
<div class =" relative w-16 h-16" >
6
6
<img class =" w-16 h-16 absolute pin"
7
7
src =" https://art.nativescript-vue.org/NativeScript-Vue-White-Green.svg"
12
12
</div >
13
13
</a >
14
14
15
- <span class =" hidden lg:block w-1 h-1 bg-blue-light rounded-full ml-2" ></span >
16
- <span class =" hidden lg:block w-2 h-2 bg-blue-light rounded-full ml-2" ></span >
17
- <span class =" hidden lg:block w-4 h-4 bg-blue-light rounded-full ml-2" ></span >
15
+ <span role =" presentation" aria-hidden =" true"
16
+ class =" hidden lg:block w-1 h-1 bg-blue-light rounded-full ml-2" ></span >
17
+ <span role =" presentation" aria-hidden =" true"
18
+ class =" hidden lg:block w-2 h-2 bg-blue-light rounded-full ml-2" ></span >
19
+ <span role =" presentation" aria-hidden =" true"
20
+ class =" hidden lg:block w-4 h-4 bg-blue-light rounded-full ml-2" ></span >
18
21
<div class =" hidden md:block px-4 py-1 rounded-full bg-blue-light ml-2" >
19
- <a href =" #" class =" no-underline text-white hover:text-green text-sm truncate" >Announcing v1.0! Click to read more.</a >
22
+ <a href =" /" class =" no-underline text-white hover:text-green text-sm truncate" >
23
+ Announcing v1.0
24
+ </a >
20
25
</div >
21
26
</div >
22
27
<div class =" w-auto text-center relative" >
23
- <input class =" w-full md:w-32 px-4 py-2 text-blue-lightest bg-blue-light rounded-full"
28
+ <input class =" w-full md:w-48 px-4 py-2 text-blue-lightest bg-blue-light rounded-full"
24
29
type =" search"
25
30
aria-label =" Search"
26
31
placeholder =" Search coming soon."
44
49
<!-- Nav-->
45
50
<div :class =" { hidden: isMobile && !navOpen, flex: isMobile && navOpen }"
46
51
class =" flex-col md:flex-row w-full md:w-auto" >
47
- <!-- <a href="<%= lang(null, 'docs/quick-start') %>" class="no-underline text-blue-lightest md:ml-6 mr-4 py-4">Quick-->
48
- <!-- Start</a>-->
49
52
<a href =" <%= lang(null, 'docs/about-nativescript-vue') %>"
50
53
class =" no-underline text-blue-lightest md:ml-6 mr-4 py-4" >Docs</a >
51
54
<a href =" /<%= collections.blog[0].path %>" class =" no-underline text-blue-lightest mr-4 py-4" >Blog</a >
56
59
<div class =" flex flex-col" >
57
60
<a href =" https://github.com/rigor789/nativescript-vue"
58
61
target =" _blank"
62
+ rel =" noopener"
59
63
class =" no-underline text-blue-lightest md:text-blue-dark hover:bg-green hover:text-white px-4 py-2" >GitHub</a >
60
64
<a href =" https://developer.telerik.com/wp-login.php?action=slack-invitation"
65
+ @click.prevent =" modalVisible = true"
61
66
target =" _blank"
67
+ rel =" noopener"
62
68
class =" no-underline text-blue-lightest md:text-blue-dark hover:bg-green hover:text-white px-4 py-2" >Slack</a >
63
69
</div >
64
70
</div >
65
71
</div >
66
72
<div class =" inline text-blue-lightest py-4 relative group" >
67
- <svg role =" img" aria-label =" Language" class =" w-4 h-4 fill-current -mb-px" viewBox =" 0 0 20 20"
68
- version =" 1.1" xmlns =" http://www.w3.org/2000/svg" xml:space =" preserve"
69
- style =" fill-rule :evenodd ;clip-rule :evenodd ;stroke-linejoin :round ;stroke-miterlimit :1.41421 ;" ><path
70
- d="M20,10c0,-5.532 -4.488,-10 -10,-10c-5.509,0 -10,4.465 -10,10c0,5.522 4.477,10 10,10c5.52,0 10,-4.475 10,-10Zm-1.678,2.581l-4.01,0c0.277,-1.73 0.266,-3.497 0.002,-5.162l4.008,0c0.517,1.67 0.517,3.492 0,5.162Zm-8.322,6.064c-1.239,-1.118 -2.183,-2.803 -2.72,-4.774l5.44,0c-0.537,1.971 -1.481,3.656 -2.72,4.774Zm-3.006,-6.064c-0.29,-1.669 -0.297,-3.449 0.001,-5.162l6.01,0c0.298,1.712 0.291,3.492 0.001,5.162l-6.012,0Zm3.006,-11.225c1.353,1.221 2.24,3.022 2.718,4.773l-5.436,0c0.48,-1.76 1.37,-3.556 2.718,-4.773Zm7.804,4.773l-3.75,0c-0.441,-1.78 -1.184,-3.375 -2.173,-4.635c2.588,0.569 4.762,2.295 5.923,4.635Zm-9.685,-4.635c-0.989,1.26 -1.732,2.855 -2.173,4.635l-3.75,0c1.161,-2.34 3.335,-4.066 5.923,-4.635Zm-6.441,5.925l4.008,0c-0.264,1.665 -0.275,3.432 0.002,5.162l-4.01,0c-0.517,-1.67 -0.517,-3.492 0,-5.162Zm0.518,6.452l3.755,0c0.443,1.781 1.188,3.38 2.17,4.636c-2.602,-0.572 -4.77,-2.308 -5.925,-4.636Zm9.683,4.636c0.982,-1.256 1.727,-2.855 2.17,-4.636l3.755,0c-1.157,2.332 -3.327,4.065 -5.925,4.636Z"
71
- style =" fill-rule :nonzero ;" /></svg >
72
- <span class =" md:hidden" >Language</span >
73
+ <span class =" -md:hidden" >Translations</span >
73
74
74
75
<div class =" pl-4 mt-3 md:pl-0 md:hidden group-hover:block hover:block md:absolute md:bg-white md:shadow md:rounded md:pin-r overflow-hidden" >
75
76
<div class =" flex flex-col" >
76
77
<% locales .forEach (l => {% >
77
78
< a href= " <%= lang(l) %>"
78
79
class = " no-underline text-blue-lightest md:text-blue-dark hover:bg-green hover:text-white px-4 py-2" >
79
- < %= l % >
80
+ < %= localeMap[l] % >
80
81
< / a>
81
82
< % })%>
82
83
</div >
85
86
</div >
86
87
</div >
87
88
</div >
89
+
90
+ <% - include (' _partials/slack_modal' )%>