Skip to content

Commit 95dd41c

Browse files
authored
Added "Contributors" widget and button (#311)
1 parent ddda951 commit 95dd41c

File tree

2 files changed

+136
-1
lines changed

2 files changed

+136
-1
lines changed

src/components/NavBar.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
>
2727
v{{ version }}@{{ currentCommit.slice(0, 7) }}
2828
</a>
29+
<NavContributors />
2930
</div>
3031
</nav>
3132
</template>
@@ -40,6 +41,7 @@ import NavIgniteWebsite from './NavIgniteWebsite.vue'
4041
import NavIgniteDocs from './NavIgniteDocs.vue'
4142
import NavTwitter from './NavTwitter.vue'
4243
import NavHelp from './NavHelp.vue'
44+
import NavContributors from './NavContributors.vue'
4345
4446
export default {
4547
components: {
@@ -50,7 +52,8 @@ export default {
5052
NavIgniteWebsite,
5153
NavTwitter,
5254
NavHelp,
53-
NavIgniteDocs
55+
NavIgniteDocs,
56+
NavContributors
5457
},
5558
setup() {
5659
const currentCommit = __COMMIT__ // from vite.config.js

src/components/NavContributors.vue

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
<template>
2+
<button
3+
@click.prevent="showContributors = true"
4+
title="Contributors"
5+
class="contributors-btn external-links"
6+
>
7+
<span class="icon-text">Contributors</span>
8+
</button>
9+
<div
10+
class="contributors-bg"
11+
v-show="showContributors"
12+
@click.prevent="showContributors = false"
13+
></div>
14+
<div class="contributors-wrapper" v-show="showContributors">
15+
<div>
16+
<h1 class="pis-40px">These folks made this web app!</h1>
17+
18+
<p class="pis-40px">
19+
🙌 ✨ 🎉 Big shout-out goes to <b>Jeff Yang</b> (<a
20+
href="https://github.com/ydcjeff"
21+
>@ydcjeff</a
22+
>) who coded the base of this web app!
23+
</p>
24+
25+
<p class="pis-40px">
26+
✨ Thanks to <b>Taras</b> (<a href="https://github.com/trsvchn"
27+
>@trsvchn</a
28+
>) who was helping Jeff with the templates and making this app great!
29+
</p>
30+
31+
<p class="pis-40px">
32+
🎉 Thanks to <b>Victor</b> (<a href="https://github.com/vfdev-5"
33+
>@vfdev-5</a
34+
>) who is helping with the code and coordinating this project!
35+
</p>
36+
37+
<p class="pis-40px">
38+
🎊 Thanks to <b>Jyotirmay</b> (<a
39+
href="https://github.com/theory-in-progress"
40+
>@theory-in-progress</a
41+
>), GSoC2023 student, who is working on new templates and improving the
42+
codebase!
43+
</p>
44+
45+
<p class="pis-40px">
46+
👏 Thanks to <b>Aryan</b> (<a href="https://github.com/guptaaryan16"
47+
>@guptaaryan16</a
48+
>), <a href="https://labs.quansight.org/">Quansight Labs</a> Intern, who
49+
worked on adding argparser option and Nebari support!
50+
</p>
51+
52+
<p class="pis-40px">
53+
If you find this app useful, please put a ⭐️ on
54+
<a href="https://github.com/pytorch-ignite/code-generator"
55+
>its repository</a
56+
>
57+
and give us a feedback
58+
<a href="https://github.com/pytorch-ignite/code-generator/issues/new"
59+
>here</a
60+
>. Thanks you!
61+
</p>
62+
63+
<p class="pis-40px">
64+
If you would like to see your name in this list, join us on our
65+
<a href="https://pytorch-ignite.ai/chat">Discord</a> and start
66+
contributing to this app!
67+
</p>
68+
</div>
69+
</div>
70+
</template>
71+
72+
<script>
73+
import { ref } from 'vue'
74+
export default {
75+
setup() {
76+
const showContributors = ref(false)
77+
return { showContributors }
78+
}
79+
}
80+
</script>
81+
82+
<style scoped>
83+
@import url('./css/nav-right.css');
84+
85+
.contributors-btn {
86+
display: inline-flex;
87+
align-items: center;
88+
justify-content: center;
89+
background: none;
90+
color: var(--c-text);
91+
cursor: pointer;
92+
font-family: var(--font-family-base);
93+
padding: 0.3rem 0.5rem;
94+
border: 1px solid darkred;
95+
border-radius: 4px;
96+
}
97+
.contributors-bg {
98+
text-align: left;
99+
color: var(--c-text);
100+
text-transform: none;
101+
position: fixed;
102+
top: 0;
103+
left: 0;
104+
background-color: rgba(101, 110, 133, 0.8);
105+
z-index: 10;
106+
width: 100vw;
107+
height: 100vh;
108+
}
109+
.contributors-wrapper {
110+
position: fixed;
111+
max-width: 38rem;
112+
padding: 0 0.5rem;
113+
margin: 20vh auto 100%;
114+
inset: 0;
115+
z-index: 12;
116+
}
117+
.contributors-wrapper div {
118+
padding: 1rem 0;
119+
background-color: var(--c-white-light);
120+
font-size: var(--font-size);
121+
color: var(--c-text);
122+
border-radius: 8px;
123+
box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.33);
124+
}
125+
.pis-40px {
126+
padding-inline-start: 40px;
127+
padding-inline-end: 40px;
128+
}
129+
.step {
130+
margin-top: 8px;
131+
}
132+
</style>

0 commit comments

Comments
 (0)