From b6a78abae80d4d11d7d1474582de16846f386922 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20S=C3=B6derberg?= Date: Tue, 10 Mar 2026 23:45:14 +0100 Subject: [PATCH] Main pages --- app/components/BlurredCode.tsx | 68 +++ app/components/MatrixRain.tsx | 89 +++ app/components/Navbar.tsx | 68 +++ app/components/PhotoGallery.tsx | 64 ++ app/contact/page.tsx | 101 ++++ app/css.d.ts | 3 + app/gallery/page.tsx | 67 ++ app/globals.css | 41 +- app/globals.d.ts | 22 + app/layout.tsx | 45 +- app/page.tsx | 274 +++++++-- app/projects/code/page.tsx | 277 +++++++++ app/projects/design/page.tsx | 156 +++++ app/projects/page.tsx | 61 ++ next.config.ts | 6 +- package-lock.json | 1006 ++++++++++++++++++++++++++++++- package.json | 12 +- 17 files changed, 2244 insertions(+), 116 deletions(-) create mode 100644 app/components/BlurredCode.tsx create mode 100644 app/components/MatrixRain.tsx create mode 100644 app/components/Navbar.tsx create mode 100644 app/components/PhotoGallery.tsx create mode 100644 app/contact/page.tsx create mode 100644 app/css.d.ts create mode 100644 app/gallery/page.tsx create mode 100644 app/globals.d.ts create mode 100644 app/projects/code/page.tsx create mode 100644 app/projects/design/page.tsx create mode 100644 app/projects/page.tsx diff --git a/app/components/BlurredCode.tsx b/app/components/BlurredCode.tsx new file mode 100644 index 0000000..a6db699 --- /dev/null +++ b/app/components/BlurredCode.tsx @@ -0,0 +1,68 @@ +// app/components/BlurredCode.tsx + +'use client'; + +import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter'; +import { vscDarkPlus } from 'react-syntax-highlighter/dist/esm/styles/prism'; + +const pythonCode = `import quantum_entanglement +import neural_net_vibes +from cosmos import dark_matter + +class HotdogAnalyzer(quantum_entanglement.Observer): + def __init__(self, mustard_ratio=0.8): + self.mustard_ratio = mustard_ratio + self.is_sandwich = None + self.__secret_sauce = "01101000 01101101 01101101" + + async def _calculate_bun_topology(self, bread_manifold): + """Uses string theory to determine if a bun is contiguous.""" + try: + dimensions = await dark_matter.measure(bread_manifold) + if dimensions > 3: + raise Exception("Bun exists in the 4th dimension.") + return dimensions * self.mustard_ratio + except OverflowError: + return "Just eat it already" + + @neural_net_vibes.optimize(epochs=42069) + def check_is_sandwich(self, hotdog): + if hotdog.is_taco(): + self.is_sandwich = False + return self.is_sandwich + + # Initiate brute-force topological check + for atom in hotdog.get_atoms(): + if atom.vibe_check() == "sus": + hotdog.add_ketchup(override=True) + + self.is_sandwich = True if hotdog.entropy < 9000 else False + return "Maybe?" + +if __name__ == "__main__": + analyzer = HotdogAnalyzer(mustard_ratio=1.1) + analyzer.check_is_sandwich(target="glizzy")`; + +export default function BlurredCode() { + return ( +
+
+ + {pythonCode + '\n\n\n' + pythonCode + '\n\n\n' + pythonCode} + +
+ +