switched to nextjs

This commit is contained in:
2024-11-14 16:25:56 +01:00
parent eded2294d4
commit 98c401c9e1
20 changed files with 2251 additions and 345 deletions
+63 -89
View File
@@ -1,95 +1,69 @@
import Image from "next/image";
import styles from "./page.module.css";
"use client";
import './Page.css';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faGolang, faJs, faPython, faRust } from '@fortawesome/free-brands-svg-icons';
import GraphemeSplitter from 'grapheme-splitter';
import dynamic from 'next/dynamic';
const Typewriter = dynamic(() => import('typewriter-effect'), { ssr: false });
const stringSplitter = (text: string): any => {
const splitter = new GraphemeSplitter();
return splitter.splitGraphemes(text);
};
export default function Home() {
return (
<div className={styles.page}>
<main className={styles.main}>
<Image
className={styles.logo}
src="/next.svg"
alt="Next.js logo"
width={180}
height={38}
priority
/>
<ol>
<li>
Get started by editing <code>src/app/page.tsx</code>.
</li>
<li>Save and see your changes instantly.</li>
</ol>
<div className="app">
<img src="logo.png" alt="Logo" className="logo" />
<div className="shape-blob"></div>
<div className="shape-blob one"></div>
<div className="shape-blob two"></div>
<div className="home">
<h2>
<Typewriter
options={{
stringSplitter,
loop: true,
}}
onInit={(typewriter) => {
typewriter
.typeString("Hey, I'm Leo 👋🏻")
.start()
.pauseFor(2400)
.deleteAll()
.typeString("A software developer")
.pauseFor(2400)
.changeDeleteSpeed(10)
.deleteChars(18)
.typeString("Cybersecurity engineer")
.pauseFor(2400)
.deleteChars(22)
.typeString("Computer architect")
.pauseFor(2400);
}}
/>
</h2>
<p>
I'm a developer and researcher from Tirane, Albania. I'm the leader of{' '}
<a href="https://github.com/orus-dev">Orus</a>. I've been coding for 5
years and I'm in love with it. I work on free and open source projects.
I'm also willing to work on paid projects with a payment. You can find
me on <a href="https://instagram.com/kleo.dev">Instagram</a>,{' '}
<a href="https://github.com/kleo-dev">GitHub</a>,{' '}
<a href="https://www.youtube.com/@0xkleo">YouTube</a>, Or if you
prefer to contact me via Discord: leocodes. You can also check out{' '}
<a href="/blog">My Blog</a>
</p>
</div>
<div className={styles.ctas}>
<a
className={styles.primary}
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
className={styles.logo}
src="/vercel.svg"
alt="Vercel logomark"
width={20}
height={20}
/>
Deploy now
</a>
<a
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
className={styles.secondary}
>
Read our docs
</a>
</div>
</main>
<footer className={styles.footer}>
<a
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="/file.svg"
alt="File icon"
width={16}
height={16}
/>
Learn
</a>
<a
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="/window.svg"
alt="Window icon"
width={16}
height={16}
/>
Examples
</a>
<a
href="https://nextjs.org?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="/globe.svg"
alt="Globe icon"
width={16}
height={16}
/>
Go to nextjs.org →
</a>
</footer>
<div className="tech-stack">
<FontAwesomeIcon icon={faRust} className="tech" />
<FontAwesomeIcon icon={faPython} className="tech" />
<FontAwesomeIcon icon={faGolang} className="tech" />
<FontAwesomeIcon icon={faJs} className="tech" />
</div>
</div>
);
}
};