File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
.vitepress/theme/components/landing/1. hero-section Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -437,6 +437,12 @@ const isChromiumBrowser = ref(false)
437437onMounted (() => {
438438 isChromiumBrowser .value = ' chrome' in window
439439})
440+
441+ // Check for uwu query
442+ const isUwu = ref (false )
443+ onMounted (() => {
444+ isUwu .value = location .search .includes (' ?uwu' )
445+ })
440446 </script >
441447
442448<template >
@@ -463,7 +469,12 @@ onMounted(() => {
463469 ></div >
464470 </div >
465471 <div class =" vite-chip__filter" />
466- <img src =" /logo.svg" alt =" Vite Logo" class =" vite-chip__logo" />
472+ <img
473+ :src =" isUwu ? '/logo-uwu.png' : '/logo.svg'"
474+ :alt =" isUwu ? 'Vite Kawaii Logo by @icarusgkx' : 'Vite Logo'"
475+ class =" vite-chip__logo"
476+ :class =" { uwu: isUwu }"
477+ />
467478 </div >
468479 </div >
469480
@@ -638,6 +649,10 @@ onMounted(() => {
638649 z-index : 3 ;
639650 }
640651
652+ .uwu.vite-chip__logo {
653+ width : 134px ;
654+ }
655+
641656 &.active {
642657 box-shadow : 0 30px 35px -10px rgba (0 , 0 , 0 , 0.6 );
643658 transform : translate3d (0 , 0 , 0 ) scale (1 );
You can’t perform that action at this time.
0 commit comments