diff --git a/pages/index.tsx b/pages/index.tsx
index 56abaa4..39b8406 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -6,10 +6,13 @@ import config from "../data/config.json";
const PageIndex = () => {
const [splash, setSplash] = useState("");
- useEffect(() => {
+ function randomizeSplash(): void {
setSplash(
config.splashes[Math.floor(Math.random() * config.splashes.length)].body
);
+ }
+ useEffect(() => {
+ randomizeSplash();
}, []);
const welcometext: string = "Witamy na witrynie internetowej Gractwa."; // Mamy nadzieję że odnajdziesz czego szukasz, zbłąkana duszo.";
return (
@@ -17,7 +20,12 @@ const PageIndex = () => {
{welcometext}
Warto naznaczyć, że strona jest w trakcie remontu.
diff --git a/styles/Index.module.scss b/styles/Index.module.scss index 2e7fdc6..49d3162 100644 --- a/styles/Index.module.scss +++ b/styles/Index.module.scss @@ -37,3 +37,9 @@ transform: scale(0.85); } } +.h1clicktorefreshsplash { + user-select: none; + &:hover { + cursor: pointer; + } +}