88 width =" 50"
99 height =" 50"
1010 />
11- <span >Code Generator</span >
11+ <span class = " pname " >Code Generator</span >
1212 <small class =" version" >v{{ version }}</small >
1313 </a >
1414 </h1 >
1919 title =" Download the generated code as a zip file"
2020 >
2121 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 />
4623 </button >
4724 <a
4825 class =" external-links"
4926 href =" https://github.com/pytorch-ignite/code-generator"
5027 target =" _blank"
5128 rel =" noopener noreferrer"
5229 >
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 />
8031 </a >
8132 <a
8233 class =" external-links"
8334 href =" https://twitter.com/pytorch_ignite"
8435 target =" _blank"
8536 rel =" noopener noreferrer"
8637 >
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 />
11439 </a >
11540 <a
11641 class =" external-links"
11742 href =" https://discord.gg/djZtm3EmKj"
11843 target =" _blank"
11944 rel =" noopener noreferrer"
12045 >
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 />
14847 </a >
14948 </div >
15049 </nav >
@@ -155,8 +54,13 @@ import { version } from '../../package.json'
15554import { store } from ' ../store'
15655import { saveAs } from ' file-saver'
15756import 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'
15861
15962export default {
63+ components: { IconDiscord, IconDownload, IconGitHub, IconTwitter },
16064 setup () {
16165 let zip = new JSZip ()
16266
@@ -189,12 +93,8 @@ h1 img {
18993 top : -5px ;
19094}
19195.external-links {
192- margin : 0.25 rem ;
96+ margin : 0 0.5 rem ;
19397 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 );
19898}
19999.nav-bar {
200100 display : flex ;
@@ -227,9 +127,13 @@ h1 img {
227127.iconify {
228128 vertical-align : middle ;
229129 position : relative ;
230- top : -2px ;
231- }
232- .iconify.download {
233130 top : -3px ;
234131}
132+ /* media queries */
133+ @media (max-width : 768px ) {
134+ .pname ,
135+ .version {
136+ display : none ;
137+ }
138+ }
235139 </style >
0 commit comments