Skip to content

Commit 698ba52

Browse files
authored
bring back the uwu logo (#2523)
1 parent eb890fe commit 698ba52

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

.vitepress/config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,14 @@ export default defineConfigWithTheme<ThemeConfig>({
654654
'utf-8'
655655
)
656656
],
657+
[
658+
'script',
659+
{},
660+
fs.readFileSync(
661+
path.resolve(__dirname, './inlined-scripts/uwu.js'),
662+
'utf-8'
663+
)
664+
],
657665
[
658666
'script',
659667
{

.vitepress/inlined-scripts/uwu.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
if (location.search.includes('?uwu')) {
2+
document.documentElement.classList.add('uwu')
3+
}

.vitepress/theme/components/Home.vue

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ onMounted(load)
1111

1212
<template>
1313
<section id="hero">
14+
<img id="uwu" alt="Vue.js Kawaii Logo by @icarusgkx" />
1415
<h1 class="tagline">
1516
The
1617
<span class="accent">Progressive</span>
@@ -358,4 +359,23 @@ html:not(.dark) .accent,
358359
font-size: 36px;
359360
}
360361
}
362+
363+
#uwu {
364+
display: none;
365+
}
366+
367+
/* .uwu #uwu {
368+
display: block;
369+
width: 100%;
370+
max-width: 720px;
371+
margin: -120px auto -20px;
372+
aspect-ratio: 192 / 108;
373+
content: url(/logo-uwu.png);
374+
}
375+
376+
@media (max-width: 576px) {
377+
.uwu #uwu {
378+
margin: -60px auto -10px;
379+
}
380+
} */
361381
</style>

0 commit comments

Comments
 (0)