feat: dark/light mode for splash

This commit is contained in:
supernova 2023-09-24 20:52:24 +03:00 committed by GitHub
parent 94ba59afb5
commit 166080c2b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,6 +15,7 @@
align-items: center; align-items: center;
border-radius: 8px; border-radius: 8px;
border: 1px solid var(--fg-semi-trans); border: 1px solid var(--fg-semi-trans);
background-color: var(--bg);
} }
p { p {
@ -25,17 +26,29 @@
width: 6em; width: 6em;
height: 6em; height: 6em;
} }
@media (prefers-color-scheme: dark) {
:root {
--bg: #282828;
--fg: #D3869B;
--fg-semi-trans: rgba(212, 212, 212, 0.7);
}
}
@media (prefers-color-scheme: light) {
:root {
--bg: #D3869B;
--fg: #282828;
--fg-semi-trans: rgba(30, 30, 30, 0.7);
}
}
</style> </style>
</head> </head>
<body> <body>
<div class="wrapper"> <div class="wrapper">
<img <img draggable="false" src="https://cdn.discordapp.com/emojis/1024751291504791654.gif?size=512" alt="shiggy"
draggable="false" role="presentation" />
src="https://cdn.discordapp.com/emojis/1024751291504791654.gif?size=512"
alt="shiggy"
role="presentation"
/>
<p>Loading Vesktop...</p> <p>Loading Vesktop...</p>
</div> </div>
</body> </body>