From ecf4c76b15c50e9f89bc631fdd9fe0062336198a Mon Sep 17 00:00:00 2001 From: neru Date: Thu, 7 May 2026 10:27:52 -0300 Subject: [PATCH] feat: add discord infomodal --- src/app/page.css | 72 +++++++++++++++++++++++++++++++++++++++++++++++- src/app/page.tsx | 32 +++++++++++++++++++-- 2 files changed, 101 insertions(+), 3 deletions(-) diff --git a/src/app/page.css b/src/app/page.css index 1970032..b9899ef 100644 --- a/src/app/page.css +++ b/src/app/page.css @@ -218,4 +218,74 @@ h1 { 100% { transform: translate(-100%, 0); } -} \ No newline at end of file +} + +/* + modal +*/ +.modal-overlay { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: rgba(255, 255, 255, 0.6); + backdrop-filter: blur(2px); + display: flex; + justify-content: center; + align-items: center; + z-index: 1000; + animation: fadeIn 0.3s ease; +} + +.modal-content { + background: var(--surface); + padding: 25px; + border: 1px ridge var(--pink-accent); + outline: 1px solid var(--accent); + box-shadow: 8px 8px 0px var(--pink-accent); + text-align: center; + min-width: 250px; +} + +.modal-header { + color: var(--text-title); + font-size: 1.1rem; + margin-bottom: 15px; + border-bottom: 1px double var(--accent); + padding-bottom: 5px; +} + +.modal-body p { + font-size: 0.9rem; + margin: 8px 0; + color: var(--text-main); +} + +.modal-close-btn { + background: none; + border: none; + margin-top: 15px; + font-family: inherit; + font-size: 0.7rem; + color: var(--text-dim); + text-transform: uppercase; + letter-spacing: 1px; + cursor: pointer; + transition: 0.3s; +} + +.modal-close-btn:hover { + color: var(--text-title-shadow); + letter-spacing: 2px; +} + +@keyframes fadeIn { + from { opacity: 0; } + to { opacity: 1; } +} + +@keyframes popIn { + from { transform: scale(0.8); opacity: 0; } + to { transform: scale(1); opacity: 1; } +} diff --git a/src/app/page.tsx b/src/app/page.tsx index a85f2e5..925ddd7 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,12 +1,18 @@ 'use client'; +import { useState } from 'react'; import './page.css'; const TWITTER_LINK = "https://x.com/neruu444" -const DISCORD_INFO = "username: neru444 - id: 1104474057916809226" +const DISCORD_USER = "neru444" +const DISCORD_ID = "1104474057916809226" const STEAM_LINK = "https://steamcommunity.com/profiles/76561198440714757/" function Content() { + const [isOpen, setIsOpen] = useState(true); + + const toggleModal = () => setIsOpen(!isOpen); + return ( <>
@@ -17,7 +23,7 @@ function Content() { @@ -39,12 +45,34 @@ function Content() { +
+

✧ dum stuff ✧

+ +
+ +
✧ ꒰ა˵• ﻌ •˵ა꒱ ✧ ฅ^•ﻌ•^ฅ ✧ ᶻ 𝗓 𐰁 /ᐠ. 。 .ᐟ\ ✧ ฅ/ᐠ. ̫ .ᐟ\ฅ ✧ ꒰ა≽^•⩊•^≼໒꒱ ✧ ₍˄·͈༝·͈˄₎ ✧ /ᐠ. ⩊ .ᐟ\ノ ✧ 𓏲ּ ֶָ ࣪ /ᐠ .ᆺ. ᐟ\ノ ✧
{/*

✼  ҉  ✼  ҉  ✼  ҉  ✼

*/}
+ + {isOpen && ( +
+
e.stopPropagation()}> +
✧ discord info ✧
+
+

User: {DISCORD_USER}

+

ID: {DISCORD_ID}

+
+ +
+
+ )}
);