mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
uwu - add alt and instructions for turning off
This commit is contained in:
@@ -117,7 +117,12 @@ export function HomeContent() {
|
||||
<div className="ps-0">
|
||||
<div className="mx-5 mt-12 lg:mt-24 mb-20 lg:mb-32 flex flex-col justify-center">
|
||||
<div className="uwu-visible flex justify-center">
|
||||
<img className="uwu-visible h-24 lg:h-40" src="/images/uwu.png" />
|
||||
<img
|
||||
alt="logo by @sawaratsuki1004"
|
||||
title="logo by @sawaratsuki1004"
|
||||
className="uwu-visible h-24 lg:h-40"
|
||||
src="/images/uwu.png"
|
||||
/>
|
||||
</div>
|
||||
<Logo
|
||||
className={cn(
|
||||
@@ -495,6 +500,8 @@ export function HomeContent() {
|
||||
<div className="mt-20 px-5 lg:px-0 mb-6 max-w-4xl text-center text-opacity-80">
|
||||
<div className="uwu-visible flex justify-center">
|
||||
<img
|
||||
alt="logo by @sawaratsuki1004"
|
||||
title="logo by @sawaratsuki1004"
|
||||
className="uwu-visible mb-10 lg:mb-8 h-24 lg:h-32"
|
||||
src="/images/uwu.png"
|
||||
/>
|
||||
|
||||
@@ -253,7 +253,12 @@ export default function TopNav({
|
||||
<NextLink
|
||||
href="/"
|
||||
className={`active:scale-95 mt-0.5 overflow-hidden transition-transform relative items-center justify-center text-primary dark:text-primary-dark p-1 whitespace-nowrap outline-link rounded-full 3xl:rounded-xl inline-flex text-lg font-normal gap-2`}>
|
||||
<img className="h-8" src="/images/uwu.png" />
|
||||
<img
|
||||
alt="logo by @sawaratsuki1004"
|
||||
title="logo by @sawaratsuki1004"
|
||||
className="h-8"
|
||||
src="/images/uwu.png"
|
||||
/>
|
||||
</NextLink>
|
||||
</div>
|
||||
<div className="uwu-hidden">
|
||||
|
||||
@@ -40,7 +40,8 @@ const MyDocument = () => {
|
||||
localStorage.setItem('uwu', true);
|
||||
} catch (err) { }
|
||||
document.documentElement.classList.add('uwu');
|
||||
console.log('uwu mode enabled. logo credits to @sawaratsuki1004 via https://github.com/SAWARATSUKI/ServiceLogos');
|
||||
console.log('uwu mode enabled. turn off with ?uwu=false')
|
||||
console.log('logo credit to @sawaratsuki1004 via https://github.com/SAWARATSUKI/ServiceLogos');
|
||||
} else {
|
||||
try {
|
||||
localStorage.removeItem('uwu', false);
|
||||
|
||||
Reference in New Issue
Block a user