Skip to content

Commit ecefb9b

Browse files
committed
Just Add Water
1 parent 6433c93 commit ecefb9b

File tree

6 files changed

+35
-22
lines changed

6 files changed

+35
-22
lines changed

.vitepress/config.mts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ const settings = {
77
short: 'Feature Packed Self-Hosted ShareX Upload Server.',
88
long: 'A Feature Packed, Self-Hosted, File Upload and Sharing Server running in Docker for ShareX with Native Mobile Clients for All Platforms.',
99
},
10+
image: '/images/logo.png',
11+
color: '#565aa9',
12+
docs_repo: 'https://github.com/django-files/django-files.github.io',
13+
source_repo: 'https://github.com/django-files/django-files',
1014
}
1115

1216
// https://vitepress.dev/reference/site-config
@@ -24,25 +28,25 @@ export default defineConfig({
2428
description: settings.description.short,
2529
head: [
2630
['link', { rel: 'icon', href: '/favicon.ico', type: 'image/x-icon' }],
27-
['link', { rel: 'apple-touch-icon', sizes: '180x180', href: '/images/logo.png' }],
31+
['link', { rel: 'apple-touch-icon', sizes: '180x180', href: settings.image }],
2832

2933
['meta', { name: 'darkreader-lock' }],
3034

31-
['meta', { name: 'theme-color', content: '#565aa9' }],
35+
['meta', { name: 'theme-color', content: settings.color }],
3236
['meta', { name: 'description', content: settings.description.long }],
3337

3438
['meta', { property: 'og:type', content: 'website' }],
3539
['meta', { property: 'og:site_name', content: settings.name }],
3640
['meta', { property: 'og:title', content: settings.title }],
3741
['meta', { property: 'og:description', content: settings.description.short }],
38-
['meta', { property: 'og:image', content: '/images/logo.png' }],
42+
['meta', { property: 'og:image', content: settings.image }],
3943
['meta', { property: 'og:image:alt', content: settings.title }],
4044

4145
['meta', { property: 'twitter:card', content: 'summary' }],
4246
['meta', { property: 'twitter:site', content: settings.name }],
4347
['meta', { property: 'twitter:title', content: settings.title }],
4448
['meta', { property: 'twitter:description', content: settings.description.short }],
45-
['meta', { property: 'twitter:image', content: '/images/logo.png' }],
49+
['meta', { property: 'twitter:image', content: settings.image }],
4650
['meta', { property: 'twitter:image:alt', content: settings.title }],
4751
],
4852

@@ -60,8 +64,8 @@ export default defineConfig({
6064
text: 'Links',
6165
items: [
6266
{ text: 'GitHub Organization', link: 'https://github.com/django-files' },
63-
{ text: 'Server Source Code', link: 'https://github.com/django-files/django-files' },
64-
{ text: 'Docs Source Code', link: 'https://github.com/django-files/django-files.github.io' },
67+
{ text: 'Server Source Code', link: settings.source_repo },
68+
{ text: 'Docs Source Code', link: settings.docs_repo },
6569
{ text: 'Meet Our Team', link: '/team' },
6670
],
6771
},
@@ -119,7 +123,7 @@ export default defineConfig({
119123
],
120124

121125
editLink: {
122-
pattern: 'https://github.com/django-files/django-files.github.io/blob/master/docs/:path',
126+
pattern: `${settings.docs_repo}/blob/master/docs/:path`,
123127
text: 'View on GitHub',
124128
},
125129

.vitepress/theme/components/BrowserIcons.vue

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<script setup>
2+
import 'animate.css'
3+
24
// Variables
35
const chrome_url = 'https://chromewebstore.google.com/detail/django-files/abpbiefojfkekhkjnpakpekkpeibnjej'
46
const firefox_url = 'https://addons.mozilla.org/addon/django-files'
@@ -11,14 +13,18 @@ const browsers = [
1113
{ name: 'Edge', url: chrome_url, img: 'edge/edge_48x48.png' },
1214
{ name: 'Opera', url: chrome_url, img: 'opera/opera_48x48.png' },
1315
{ name: 'Brave', url: chrome_url, img: 'brave/brave_48x48.png' },
14-
{ name: 'Chromium', url: chrome_url, img: 'chromium/chromium_48x48.png' },
16+
// { name: 'Chromium', url: chrome_url, img: 'chromium/chromium_48x48.png' },
1517
]
1618
1719
// Style from Props
1820
const props = defineProps({
21+
animation: { type: String, default: null },
1922
centered: { type: Boolean, default: false },
2023
margin: { type: String, default: null },
2124
})
25+
26+
const imageClass = props.animation ? `animate__animated ${props.animation}` : null
27+
2228
const iconStyle = {}
2329
if (props.centered) iconStyle.textAlign = 'center'
2430
if (props.margin) iconStyle.margin = props.margin
@@ -28,7 +34,7 @@ if (props.margin) iconStyle.margin = props.margin
2834
.browser-icons {
2935
min-height: 48px;
3036
}
31-
.browser-icons img {
37+
.browser-icons a {
3238
display: inline-block;
3339
vertical-align: middle;
3440
transform: translateZ(0);
@@ -38,7 +44,7 @@ if (props.margin) iconStyle.margin = props.margin
3844
transition-duration: 0.3s;
3945
transition-property: transform;
4046
}
41-
.browser-icons img:hover {
47+
.browser-icons a:hover {
4248
transform: scale(1.2);
4349
}
4450
</style>
@@ -54,7 +60,7 @@ if (props.margin) iconStyle.margin = props.margin
5460
target="_blank"
5561
rel="noopener"
5662
>
57-
<img :alt="browser.name" :src="`${baseUrl}/${browser.img}`" width="48" height="auto" />
63+
<img :alt="browser.name" :src="`${baseUrl}/${browser.img}`" :class="imageClass" width="48" height="48" />
5864
</a>
5965
</div>
6066
</template>

docs/clients/browser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Get it from Google or Mozilla.
1717
- [Chrome Web Store](https://chromewebstore.google.com/detail/django-files/abpbiefojfkekhkjnpakpekkpeibnjej)
1818
- [Mozilla Addons](https://addons.mozilla.org/addon/django-files)
1919

20-
<BrowserIcons />
20+
<BrowserIcons animation="animate__rotateIn" />
2121

2222
::: details View QR Codes 📸
2323

docs/team.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,7 @@ const members = [
3131
{ icon: 'googleplay', link: 'https://play.google.com/store/apps/dev?id=8933468453824534870' },
3232
{ icon: 'npm', link: 'https://www.npmjs.com/~smashed' },
3333
{ icon: 'discord', link: 'https://discord.gg/wXy6m2X8wY' },
34-
{
35-
icon: {
36-
svg: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" style="fill: none;" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-globe"><circle cx="12" cy="12" r="10"/><path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"/><path d="M2 12h20"/></svg>',
37-
},
38-
link: 'https://cssnr.github.io/',
39-
},
34+
{ icon: 'linux', link: 'https://cssnr.github.io/' },
4035
],
4136
},
4237
{
@@ -48,14 +43,14 @@ const members = [
4843
desc: 'Upper Management',
4944
links: [
5045
{ icon: 'github', link: 'https://github.com/raluaces' },
51-
{ icon: 'twitter', link: 'https://x.com/raluaces' },
52-
{ icon: 'threads', link: 'https://www.threads.com/@raluaces' },
46+
{ icon: 'x', link: 'https://x.com/raluaces' },
5347
{
5448
icon: {
5549
svg: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" style="fill: none;" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-linkedin-icon lucide-linkedin"><path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"/><rect width="4" height="12" x="2" y="9"/><circle cx="4" cy="4" r="2"/></svg>',
5650
},
5751
link: 'https://www.linkedin.com/in/raluaces',
5852
},
53+
{ icon: 'threads', link: 'https://www.threads.com/@raluaces' },
5954
{ icon: 'rocket', link: 'https://blastsoftstudios.com/' },
6055
],
6156
},
@@ -68,10 +63,10 @@ const members = [
6863
desc: 'Have you Heard?',
6964
links: [
7065
{ icon: 'github', link: 'https://github.com/miluaces' },
71-
{ icon: 'twitter', link: 'https://x.com/miluaces' },
66+
{ icon: 'x', link: 'https://x.com/miluaces' },
7267
{ icon: 'youtube', link: 'https://www.youtube.com/milua20' },
73-
{ icon: 'steam', link: 'https://steamcommunity.com/id/miluaces' },
7468
{ icon: 'twitch', link: 'https://www.twitch.tv/miluaces' },
69+
{ icon: 'steam', link: 'https://steamcommunity.com/id/miluaces' },
7570
{ icon: 'rocket', link: 'https://blastsoftstudios.com/' },
7671
],
7772
},

package-lock.json

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
},
88
"dependencies": {
99
"@cssnr/vitepress-swiper": "^0.0.6",
10+
"animate.css": "^4.1.1",
1011
"vitepress": "^1.6.4"
1112
},
1213
"devDependencies": {

0 commit comments

Comments
 (0)