diff --git a/public/file.svg b/public/file.svg deleted file mode 100644 index 004145c..0000000 --- a/public/file.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/globe.svg b/public/globe.svg deleted file mode 100644 index 567f17b..0000000 --- a/public/globe.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/music.svg b/public/music.svg new file mode 100644 index 0000000..6ba383b --- /dev/null +++ b/public/music.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/music/shedontluvyou.mp3 b/public/music/shedontluvyou.mp3 new file mode 100644 index 0000000..85e9532 Binary files /dev/null and b/public/music/shedontluvyou.mp3 differ diff --git a/public/next.svg b/public/next.svg deleted file mode 100644 index 5174b28..0000000 --- a/public/next.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/pause.svg b/public/pause.svg new file mode 100644 index 0000000..0cb9071 --- /dev/null +++ b/public/pause.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/play.svg b/public/play.svg new file mode 100644 index 0000000..bee6520 --- /dev/null +++ b/public/play.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/vercel.svg b/public/vercel.svg deleted file mode 100644 index 7705396..0000000 --- a/public/vercel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/window.svg b/public/window.svg deleted file mode 100644 index b2b2a44..0000000 --- a/public/window.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/app/globals.css b/src/app/globals.css index a2dc41e..d89ebdb 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -1,26 +1,16 @@ @import "tailwindcss"; :root { - --background: #ffffff; - --foreground: #171717; + --background: #0F0A1F; + --primary: #FFA826; } @theme inline { --color-background: var(--background); - --color-foreground: var(--foreground); - --font-sans: var(--font-geist-sans); - --font-mono: var(--font-geist-mono); -} - -@media (prefers-color-scheme: dark) { - :root { - --background: #0a0a0a; - --foreground: #ededed; - } + --color-primary: var(--primary); } body { background: var(--background); - color: var(--foreground); - font-family: Arial, Helvetica, sans-serif; -} + color: white; +} \ No newline at end of file diff --git a/src/app/layout.tsx b/src/app/layout.tsx index f7fa87e..6614bfc 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,20 +1,14 @@ import type { Metadata } from "next"; -import { Geist, Geist_Mono } from "next/font/google"; +import { Roboto_Mono } from 'next/font/google' import "./globals.css"; -const geistSans = Geist({ - variable: "--font-geist-sans", - subsets: ["latin"], -}); - -const geistMono = Geist_Mono({ - variable: "--font-geist-mono", - subsets: ["latin"], -}); +const roboto_mono = Roboto_Mono({ + subsets: ['latin'] +}) export const metadata: Metadata = { - title: "Create Next App", - description: "Generated by create next app", + title: "Nonszy Build", + description: "Build!", }; export default function RootLayout({ @@ -25,7 +19,7 @@ export default function RootLayout({ return ( {children} diff --git a/src/app/page.tsx b/src/app/page.tsx index e68abe6..cc88e6e 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,103 +1,28 @@ -import Image from "next/image"; +import { MusicTab } from "@/components/music"; +import { NolaGlitch } from "@/components/nola-glitch"; +import Link from "next/link"; export default function Home() { return ( -
-
- Next.js logo -
    -
  1. - Get started by editing{" "} - - src/app/page.tsx - - . -
  2. -
  3. - Save and see your changes instantly. -
  4. -
- -
- - Vercel logomark - Deploy now - - - Read our docs - +
+
+
+
+
+ +
+
-
- -
+
+

Nonszy... Build?

+

+ What you see here that Nonszy might learning or testing a new build, on a server, a distributed server, even decentralized! So this web might be more powerful than you think! But... how do you know this address? +

+
+ +
+
+
+ ); } diff --git a/src/components/music.tsx b/src/components/music.tsx new file mode 100644 index 0000000..e9c0590 --- /dev/null +++ b/src/components/music.tsx @@ -0,0 +1,61 @@ +'use client' + +import Image from "next/image"; +import { useEffect, useRef, useState } from "react"; + +export const MusicTab = () => { + const [audio, setAudio] = useState(null); + const [isPlay, SetPlay] = useState(false); + + useEffect(() => { + if (typeof Audio !== undefined) { + setAudio(new Audio("/music/shedontluvyou.mp3")) + } + if (audio) { + } + return () => { + if (audio) { + audio.pause(); + } + } + }, []) + + const toggleAudio = () => { + if (!audio) return + audio.volume = 0.3; + if (audio.paused) { + audio.loop = true + audio.play(); + SetPlay(true); + } + else { + audio.pause(); + audio.currentTime = 0; + SetPlay(false); + } + } + + return ( +
+ +

+ jdmfessh - shedon'tluvyou +

+ lu-music +
+ ) +} \ No newline at end of file diff --git a/src/components/nola-glitch.tsx b/src/components/nola-glitch.tsx new file mode 100644 index 0000000..22ad0ec --- /dev/null +++ b/src/components/nola-glitch.tsx @@ -0,0 +1,93 @@ +'use client' + +import { useEffect, useRef } from "react"; + +export const NolaGlitch = () => { + const ascii = useRef(null); + + const chars = "asdfghjklzxcvbnmqwertyuiopZXCVBNMASDFGHJKLQWERTYUIOP1234567890"; + const symbols = "10!@#$%^&*~|\;,./?<>:"; + + function randomChar(len: number) { + let char = ""; + for (let i = 0; i <= len; i++) { + const cindex = Math.floor(Math.random() * chars.length); + char += chars[cindex]; + } + return char; + } + + function randomSymbol(len: number = 1) { + let char = ""; + for (let i = 0; i <= len; i++) { + const cindex = Math.floor(Math.random() * symbols.length); + char += symbols[cindex]; + } + return char; + } + + useEffect(() => { + const art = ascii.current as HTMLDivElement; + const artasci = art.innerHTML; + + const interval = setInterval(() => { + const glitch_probality = Math.floor(Math.random() * 10); + + if (glitch_probality == 1) { + art.innerHTML = [...artasci].map(v => { + const char_probality = Math.floor(Math.random() * 50); + const delchar_probablity = Math.floor(Math.random() * 40); + + if (delchar_probablity == 1) { + return ' '; + } + else { + if (v == "⠀") { + return char_probality == 1 ? randomSymbol(0) : v; + } + else if (v === " ") { + return char_probality == 1 ? "-" : v; + } + } + + return v; + }). + join(""); + } + else { + art.innerHTML = artasci; + } + }, 60); + + return () => { + clearInterval(interval); + } + }, []); + + return ( +
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⣴⠶⠶⠿⠿⢶⣶⠶⠶⠿⠛⠻⠷⠶⣦⣄⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⡾⠛⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⠷⣦⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
+ ⠀⠀⠀⠀⠀⠀⠀⠀⣀⣴⠟⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢷⣄⠀⠀⠀⠀⠀⠀⠀⠀
+ ⠀⠀⠀⠀⠀⠀⠀⣴⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣷⡀⠀⠀⠀⠀⠀⠀
+ ⠀⠀⠀⠀⠀⠀⣾⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⡄⠀⠀⠀⠀⠀
+ ⠀⠀⠀⠀⠀⢸⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣷⠀⠀⠀⠀⠀
+ ⠀⠀⠀⠀⠀⣿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⡆⠀⠀⠀⠀
+ ⠀⠀⠀⠀⢰⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⡇⠀⠀⠀⠀
+ ⠀⠀⠀⠀⣾⠇⠀⠀⠀⠀⢀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⣿⠀⠀⠀⠀
+ ⠀⠀⠀⢠⡿⠀⠀⠀⠀⠀⣿⠀⠀⠀⠀⢠⣶⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠰⣆⠀⠀⠀⠀⠀⠀⠀⠀⢻⡆⠀⠀⠀
+ ⠀⠀⠀⣾⠇⠀⠀⠀⠀⢰⣿⠀⠀⢀⣀⣤⣿⣧⠀⠀⠀⠀⠀⢠⡄⠀⣤⣤⣤⣤⣤⡹⣧⡀⠀⠀⠀⠀⠀⠀⠈⢿⡄⠀⠀
+ ⠀⠀⢰⡿⠀⠀⠀⠀⠀⢸⣿⣤⣾⠛⠋⠁⢙⣿⣧⣀⡀⠀⠀⢸⣷⡀⠀⠀⠀⠀⠈⣹⡿⣧⠀⠀⠀⢻⣆⠀⠀⠘⣿⡀⠀
+ ⠀⠀⣾⠃⠀⠀⠀⠀⠀⢸⣿⠉⠙⠛⠛⠛⠛⢉⣈⡉⠛⠛⠿⠿⠛⠛⠛⠛⠛⠛⠛⠋⠀⢻⡆⠀⠀⠀⢿⡆⠀⠀⠘⣷⠀
+ ⠀⣸⡏⠀⠀⢠⡦⠀⠀⢸⣿⠀⠀⢀⣤⣶⣿⣿⣯⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⠄⠘⣷⠀⠀⠀⠈⣿⡀⠀⠀⢹⡇
+ ⢠⡿⠀⠀⠀⣼⠇⠀⠀⢸⣿⠀⠾⠛⠁⢿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⢤⣤⠴⠶⠛⠉⠀⠀⣿⡄⠀⠀⠀⢸⡇⠀⠀⠈⣿
+ ⢸⡇⠀⠀⠀⣿⠀⠀⠀⠈⣿⠀⠀⠀⠀⠘⠿⠿⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⡇⠀⠀⠀⠘⣿⠀⠀⢠⡿
+ ⠘⣷⠀⠀⠀⣿⠀⠀⠀⠀⢻⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⣀⣠⣶⠀⠀⠀⠀⠀⠀⣸⡇⠀⠀⠀⠀⣿⠀⣀⣾⠃
+ ⠀⠹⣧⠀⠀⣿⠀⠀⠀⠀⠸⣧⠀⠀⠀⠀⠀⠀⠀⠻⠷⠿⠛⠉⠉⠉⠉⠀⠀⠀⢀⣀⣤⡾⣿⡇⠀⠀⠀⢰⣿⡾⠛⠁⠀
+ ⠀⠀⠙⣷⡄⢹⡇⠀⠀⠀⠀⢿⣶⣦⣤⣀⣀⣀⣀⣀⣀⣀⣀⣤⣤⣤⣴⠶⠶⠿⠛⠋⠁⠀⣿⠀⠀⠀⢀⣿⠃⠀⠀⠀⠀
+ ⠀⠀⠀⠈⠻⣾⣿⡀⠀⠀⠀⠘⣷⡀⠉⠉⠉⠛⠛⠛⠋⠉⠉⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⡏⠀⣀⣴⠟⠁⠀⠀⠀⠀⠀
+ ⠀⠀⠀⠀⠀⠈⠙⢷⡄⠀⠀⠀⠹⣷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡿⠿⠛⠋⠁⠀⠀⠀⠀⠀⠀⠀
+ ⠀⠀⠀⠀⠀⠀⠀⠈⠛⠷⣦⣤⣤⣽⡧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
+
+ ) +} \ No newline at end of file