Compare commits
2 Commits
3d35b0a327
...
f9c8fb76d3
Author | SHA1 | Date | |
---|---|---|---|
f9c8fb76d3 | |||
3ea7142b24 |
@@ -244,9 +244,9 @@ Custom
|
||||
}
|
||||
|
||||
.d-dark > * {
|
||||
background-color: rgba(35, 35, 35, 0.9) !important;
|
||||
background-color: rgba(35, 35, 35, 0.9);
|
||||
color: #ffffff;
|
||||
}
|
||||
.d-light > * {
|
||||
background-color: rgba(255, 255, 255, 0.9) !important;
|
||||
background-color: rgba(255, 255, 255, 0.9);
|
||||
}
|
@@ -1,5 +1,7 @@
|
||||
import { API_URL } from "../config";
|
||||
import { default as $ } from "jquery";
|
||||
import ReplayIcon from '@mui/icons-material/Replay';
|
||||
|
||||
|
||||
var randomMsg;
|
||||
|
||||
@@ -21,7 +23,16 @@ const getRandomMsg = () => {
|
||||
export default function RandomMsg() {
|
||||
getRandomMsg();
|
||||
return (
|
||||
<div className="random-msg">
|
||||
<div className="random-msg-container">
|
||||
<div className="random-msg">
|
||||
</div>
|
||||
<button id="new-msg"
|
||||
aria-label="New footer message"
|
||||
type="button"
|
||||
className="flex items-center justify-center px-2 py-1 rounded-md hover:bg-neutral-200 dark:hover:bg-neutral-800 transition-opacity new-msg-button"
|
||||
onClick={() => getRandomMsg()}>
|
||||
<ReplayIcon size="sm" />
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
@@ -16,7 +16,6 @@ const currentPath = Astro.url.pathname;
|
||||
---
|
||||
<script is:inline>
|
||||
toggleTheme = () => {
|
||||
console.log("Toggle!")
|
||||
const currentTheme = document.documentElement.getAttribute("data-theme");
|
||||
const newTheme = currentTheme === "dark" ? "light" : "dark";
|
||||
document.dispatchEvent(new CustomEvent("set-theme", { detail: newTheme }));
|
||||
|
Reference in New Issue
Block a user