mirror of
https://github.com/wah-su/wahs.wah.su.git
synced 2025-09-14 10:23:50 +05:00
add light mode
This commit is contained in:
parent
e604b456c4
commit
c3a775bc4a
4 changed files with 40 additions and 6 deletions
|
@ -26,7 +26,7 @@ export default function head(props: {
|
|||
<meta property="og:image:alt" content="" />
|
||||
<link href="/static/tailwind.css" rel="stylesheet" />
|
||||
<meta property="og:url" content={`${props.url}${props.path}`} />
|
||||
{props.preload ? props.preload.map((item) => <link key={`preload_${item}`} rel="preload" href={item} as="fetch"></link>) : ""}
|
||||
{props.preload ? props.preload.map((item) => <link key={`preload_${item}`} rel="preload" href={item} as="fetch" crossOrigin="anonymous"></link>) : ""}
|
||||
{props.dns ? props.dns.map((item) => <link key={`dns_${item}`} rel="dns-prefetch" href={item} />) : ""}
|
||||
<meta property="og:logo" content={`${props.url}/static/logo-1x.png`} />
|
||||
{props.environment == "dev" ? (
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
export default function Header(props: {path: string}) {
|
||||
return (
|
||||
<header className="sticky top-0 left-0 right-0 dark:bg-orange-950 text-[#f9ebeb] rounded-b-lg z-10">
|
||||
<header className="sticky top-0 left-0 right-0 bg-orange-950 text-[#f9ebeb] rounded-b-lg z-10">
|
||||
<div className="container flex items-center justify-between gap-4 px-4 sm:px-8 py-4 mx-auto min-h-16">
|
||||
<a href="/">
|
||||
<img
|
||||
|
|
|
@ -21,7 +21,7 @@ export default function Index(props: {
|
|||
path={props.path}
|
||||
{...props.head}
|
||||
/>
|
||||
<body className="dark:bg-[#160606] text-[#f9ebeb]">
|
||||
<body className="dark:bg-[#160606] bg-[#faebeb] dark:text-[#f9ebeb] text-[#140606]">
|
||||
<Header path={props.path} />
|
||||
<div className="container mx-auto py-4 px-4 sm:px-8">
|
||||
<div>
|
||||
|
@ -35,13 +35,21 @@ export default function Index(props: {
|
|||
<a
|
||||
data-type="index__placeholder__image"
|
||||
key={`index__placeholder__image-${num}`}
|
||||
className={`relative aspect-square min-w-48 sm:min-w-auto ${idx >= 5 ? "hidden xl:block" : ""}`}
|
||||
className={`relative aspect-square min-w-48 sm:min-w-auto ${
|
||||
idx >= 5 ? "hidden xl:block" : ""
|
||||
}`}
|
||||
>
|
||||
<div id={`index__placeholder__image-${num}-loader`} className="w-full h-full absolute inset-0 bg-gray-400 opacity-30 animate-pulse z-[3]"></div>
|
||||
<div
|
||||
id={`index__placeholder__image-${num}-loader`}
|
||||
className="w-full h-full absolute inset-0 bg-gray-400 opacity-30 animate-pulse z-[3]"
|
||||
></div>
|
||||
</a>
|
||||
);
|
||||
})}
|
||||
<a href="/images/" className="hover:bg-orange-600 transition-colors aspect-square dark:bg-yellow-950 min-w-48 sm:min-w-auto flex items-center justify-center flex-col">
|
||||
<a
|
||||
href="/images/"
|
||||
className="text-[#f9ebeb] hover:bg-orange-600 transition-colors aspect-square bg-yellow-950 min-w-48 sm:min-w-auto flex items-center justify-center flex-col"
|
||||
>
|
||||
<span className="material-symbols--arrow-forward-rounded w-16 h-16"></span>
|
||||
<p className="text-xl">All Images</p>
|
||||
</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue