feat: add discord infomodal

This commit is contained in:
2026-05-07 10:27:52 -03:00
parent d1a28fd777
commit ecf4c76b15
2 changed files with 101 additions and 3 deletions
+30 -2
View File
@@ -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 (
<>
<div className="main-frame">
@@ -17,7 +23,7 @@ function Content() {
<nav className="social-links">
<a href={TWITTER_LINK}>twitter</a>
<a onClick={() => alert(DISCORD_INFO)} style={{ cursor: 'pointer' }}>discord</a>
<a onClick={toggleModal}>discord</a>
<a href={STEAM_LINK} style={{ cursor: 'pointer' }}>steam</a>
<a href="https://git.neru.rip/neru">projects</a>
</nav>
@@ -39,12 +45,34 @@ function Content() {
</ul>
</section>
<section className="content-box">
<h2 className="title"> dum stuff </h2>
<ul className="directory">
<li><a href="discord://-/apps">break discord</a></li>
<li><a href="discord://-/channels/@me/">fix discord</a></li>
</ul>
</section>
<footer>
<div className="marquee">
<span> ˵ ˵ ^^ 𝗓 𐰁 /. .\ /. ̫ .\ ^^ ˄·͈·͈˄ /. .\ 𓏲ּ ֶָ / .. \ </span>
</div>
{/* <p style={{ fontSize: '0.65rem', opacity: 0.5 }}>✼  ҉  ✼  ҉  ✼  ҉  ✼</p> */}
</footer>
{isOpen && (
<div className="modal-overlay" onClick={toggleModal}>
<div className="modal-content" onClick={(e) => e.stopPropagation()}>
<div className="modal-header"> discord info </div>
<div className="modal-body">
<p><strong>User:</strong> {DISCORD_USER}</p>
<p><strong>ID:</strong> {DISCORD_ID}</p>
</div>
<button className="modal-close-btn" onClick={toggleModal}>[ close ]</button>
</div>
</div>
)}
</div>
</>
);