feat: add discord infomodal
This commit is contained in:
+30
-2
@@ -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>
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user