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
+70
View File
@@ -219,3 +219,73 @@ h1 {
transform: translate(-100%, 0);
}
}
/*
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; }
}
+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>
</>
);