8
8
width =" 50"
9
9
height =" 50"
10
10
/>
11
- <span >Code Generator</span >
11
+ <span class = " pname " >Code Generator</span >
12
12
<small class =" version" >v{{ version }}</small >
13
13
</a >
14
14
</h1 >
19
19
title =" Download the generated code as a zip file"
20
20
>
21
21
Download
22
- <svg
23
- xmlns =" http://www.w3.org/2000/svg"
24
- xmlns:xlink =" http://www.w3.org/1999/xlink"
25
- aria-hidden =" true"
26
- role =" img"
27
- class =" iconify download iconify--system-uicons"
28
- width =" 20"
29
- height =" 20"
30
- preserveAspectRatio =" xMidYMid meet"
31
- viewBox =" 0 0 21 21"
32
- >
33
- <g
34
- fill =" none"
35
- fill-rule =" evenodd"
36
- stroke =" currentColor"
37
- stroke-width =" 1.5"
38
- stroke-linecap =" round"
39
- stroke-linejoin =" round"
40
- >
41
- <path d =" M6.5 10.5l4 4.232l4-4.191" ></path >
42
- <path d =" M10.5 3.5v11" ></path >
43
- <path d =" M4.5 17.5h12" ></path >
44
- </g >
45
- </svg >
22
+ <IconDownload />
46
23
</button >
47
24
<a
48
25
class =" external-links"
49
26
href =" https://github.com/pytorch-ignite/code-generator"
50
27
target =" _blank"
51
28
rel =" noopener noreferrer"
52
29
>
53
- GitHub
54
- <svg
55
- xmlns =" http://www.w3.org/2000/svg"
56
- xmlns:xlink =" http://www.w3.org/1999/xlink"
57
- aria-hidden =" true"
58
- role =" img"
59
- class =" iconify iconify--system-uicons"
60
- width =" 15"
61
- height =" 15"
62
- preserveAspectRatio =" xMidYMid meet"
63
- viewBox =" 0 0 21 21"
64
- >
65
- <g
66
- fill =" none"
67
- fill-rule =" evenodd"
68
- stroke =" currentColor"
69
- stroke-width =" 2"
70
- stroke-linecap =" round"
71
- stroke-linejoin =" round"
72
- >
73
- <path d =" M18.5 8.5v-5h-5" ></path >
74
- <path d =" M18.5 3.5l-7 7" ></path >
75
- <path
76
- d =" M10.5 3.5h-5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2v-4"
77
- ></path >
78
- </g >
79
- </svg >
30
+ <IconGitHub />
80
31
</a >
81
32
<a
82
33
class =" external-links"
83
34
href =" https://twitter.com/pytorch_ignite"
84
35
target =" _blank"
85
36
rel =" noopener noreferrer"
86
37
>
87
- Twitter
88
- <svg
89
- xmlns =" http://www.w3.org/2000/svg"
90
- xmlns:xlink =" http://www.w3.org/1999/xlink"
91
- aria-hidden =" true"
92
- role =" img"
93
- class =" iconify iconify--system-uicons"
94
- width =" 15"
95
- height =" 15"
96
- preserveAspectRatio =" xMidYMid meet"
97
- viewBox =" 0 0 21 21"
98
- >
99
- <g
100
- fill =" none"
101
- fill-rule =" evenodd"
102
- stroke =" currentColor"
103
- stroke-width =" 2"
104
- stroke-linecap =" round"
105
- stroke-linejoin =" round"
106
- >
107
- <path d =" M18.5 8.5v-5h-5" ></path >
108
- <path d =" M18.5 3.5l-7 7" ></path >
109
- <path
110
- d =" M10.5 3.5h-5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2v-4"
111
- ></path >
112
- </g >
113
- </svg >
38
+ <IconTwitter />
114
39
</a >
115
40
<a
116
41
class =" external-links"
117
42
href =" https://discord.gg/djZtm3EmKj"
118
43
target =" _blank"
119
44
rel =" noopener noreferrer"
120
45
>
121
- Discord
122
- <svg
123
- xmlns =" http://www.w3.org/2000/svg"
124
- xmlns:xlink =" http://www.w3.org/1999/xlink"
125
- aria-hidden =" true"
126
- role =" img"
127
- class =" iconify iconify--system-uicons"
128
- width =" 15"
129
- height =" 15"
130
- preserveAspectRatio =" xMidYMid meet"
131
- viewBox =" 0 0 21 21"
132
- >
133
- <g
134
- fill =" none"
135
- fill-rule =" evenodd"
136
- stroke =" currentColor"
137
- stroke-width =" 2"
138
- stroke-linecap =" round"
139
- stroke-linejoin =" round"
140
- >
141
- <path d =" M18.5 8.5v-5h-5" ></path >
142
- <path d =" M18.5 3.5l-7 7" ></path >
143
- <path
144
- d =" M10.5 3.5h-5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2v-4"
145
- ></path >
146
- </g >
147
- </svg >
46
+ <IconDiscord />
148
47
</a >
149
48
</div >
150
49
</nav >
@@ -155,8 +54,13 @@ import { version } from '../../package.json'
155
54
import { store } from ' ../store'
156
55
import { saveAs } from ' file-saver'
157
56
import JSZip from ' jszip'
57
+ import IconDiscord from ' ./IconDiscord.vue'
58
+ import IconDownload from ' ./IconDownload.vue'
59
+ import IconGitHub from ' ./IconGitHub.vue'
60
+ import IconTwitter from ' ./IconTwitter.vue'
158
61
159
62
export default {
63
+ components: { IconDiscord, IconDownload, IconGitHub, IconTwitter },
160
64
setup () {
161
65
let zip = new JSZip ()
162
66
@@ -189,12 +93,8 @@ h1 img {
189
93
top : -5px ;
190
94
}
191
95
.external-links {
192
- margin : 0.25 rem ;
96
+ margin : 0 0.5 rem ;
193
97
font-size : var (--font-size );
194
- border-bottom : 2px solid transparent ;
195
- }
196
- .external-links :hover {
197
- border-bottom : 2px solid var (--c-brand-red );
198
98
}
199
99
.nav-bar {
200
100
display : flex ;
@@ -227,9 +127,13 @@ h1 img {
227
127
.iconify {
228
128
vertical-align : middle ;
229
129
position : relative ;
230
- top : -2px ;
231
- }
232
- .iconify.download {
233
130
top : -3px ;
234
131
}
132
+ /* media queries */
133
+ @media (max-width : 768px ) {
134
+ .pname ,
135
+ .version {
136
+ display : none ;
137
+ }
138
+ }
235
139
</style >
0 commit comments