Old but ported to Svelte

This commit is contained in:
2026-02-17 18:21:01 +01:00
commit 94c616d14d
16 changed files with 1522 additions and 0 deletions

13
src/app.d.ts vendored Normal file
View File

@@ -0,0 +1,13 @@
// See https://svelte.dev/docs/kit/types#app.d.ts
// for information about these interfaces
declare global {
namespace App {
// interface Error {}
// interface Locals {}
// interface PageData {}
// interface PageState {}
// interface Platform {}
}
}
export {};

11
src/app.html Normal file
View File

@@ -0,0 +1,11 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="107" height="128" viewBox="0 0 107 128"><title>svelte-logo</title><path d="M94.157 22.819c-10.4-14.885-30.94-19.297-45.792-9.835L22.282 29.608A29.92 29.92 0 0 0 8.764 49.65a31.5 31.5 0 0 0 3.108 20.231 30 30 0 0 0-4.477 11.183 31.9 31.9 0 0 0 5.448 24.116c10.402 14.887 30.942 19.297 45.791 9.835l26.083-16.624A29.92 29.92 0 0 0 98.235 78.35a31.53 31.53 0 0 0-3.105-20.232 30 30 0 0 0 4.474-11.182 31.88 31.88 0 0 0-5.447-24.116" style="fill:#ff3e00"/><path d="M45.817 106.582a20.72 20.72 0 0 1-22.237-8.243 19.17 19.17 0 0 1-3.277-14.503 18 18 0 0 1 .624-2.435l.49-1.498 1.337.981a33.6 33.6 0 0 0 10.203 5.098l.97.294-.09.968a5.85 5.85 0 0 0 1.052 3.878 6.24 6.24 0 0 0 6.695 2.485 5.8 5.8 0 0 0 1.603-.704L69.27 76.28a5.43 5.43 0 0 0 2.45-3.631 5.8 5.8 0 0 0-.987-4.371 6.24 6.24 0 0 0-6.698-2.487 5.7 5.7 0 0 0-1.6.704l-9.953 6.345a19 19 0 0 1-5.296 2.326 20.72 20.72 0 0 1-22.237-8.243 19.17 19.17 0 0 1-3.277-14.502 17.99 17.99 0 0 1 8.13-12.052l26.081-16.623a19 19 0 0 1 5.3-2.329 20.72 20.72 0 0 1 22.237 8.243 19.17 19.17 0 0 1 3.277 14.503 18 18 0 0 1-.624 2.435l-.49 1.498-1.337-.98a33.6 33.6 0 0 0-10.203-5.1l-.97-.294.09-.968a5.86 5.86 0 0 0-1.052-3.878 6.24 6.24 0 0 0-6.696-2.485 5.8 5.8 0 0 0-1.602.704L37.73 51.72a5.42 5.42 0 0 0-2.449 3.63 5.79 5.79 0 0 0 .986 4.372 6.24 6.24 0 0 0 6.698 2.486 5.8 5.8 0 0 0 1.602-.704l9.952-6.342a19 19 0 0 1 5.295-2.328 20.72 20.72 0 0 1 22.237 8.242 19.17 19.17 0 0 1 3.277 14.503 18 18 0 0 1-8.13 12.053l-26.081 16.622a19 19 0 0 1-5.3 2.328" style="fill:#fff"/></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

1
src/lib/index.ts Normal file
View File

@@ -0,0 +1 @@
// place files you want to import through the `$lib` alias in this folder.

91
src/routes/+layout.svelte Normal file
View File

@@ -0,0 +1,91 @@
<script lang="ts">
import favicon from '$lib/assets/favicon.svg';
let { children } = $props();
</script>
<svelte:head>
<link rel="icon" href={favicon} />
<title>Developer | Creator | Tech Enthusiast</title>
</svelte:head>
<style>
:global(*) {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:global(body) {
background-color: #0f172a;
color: #e2e8f0;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
line-height: 1.6;
min-height: 100vh;
}
:global(a) {
color: #60a5fa;
text-decoration: none;
transition: color 0.2s ease;
}
:global(a:hover) {
color: #93c5fd;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1.5rem;
}
header {
padding: 2rem 0;
text-align: center;
border-bottom: 1px solid #1e293b;
margin-bottom: 3rem;
}
.logo {
font-size: 2.5rem;
font-weight: 700;
background: linear-gradient(135deg, #60a5fa, #3b82f6);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.tagline {
color: #94a3b8;
font-size: 1.1rem;
margin-top: 0.5rem;
}
main {
min-height: 70vh;
}
footer {
text-align: center;
padding: 2rem 0;
color: #94a3b8;
border-top: 1px solid #1e293b;
margin-top: 4rem;
font-size: 0.9rem;
}
</style>
<div class="container">
<header>
<div class="tagline">Developer | Creator | Tech Enthusiast</div>
</header>
<main>
{@render children()}
</main>
<footer>
<p>© {new Date().getFullYear()} Malxte. Built with Svelte 5 & Nostr ❤️</p>
</footer>
</div>

252
src/routes/+page.svelte Normal file
View File

@@ -0,0 +1,252 @@
<style>
.hero {
text-align: center;
padding: 4rem 0;
margin-bottom: 3rem;
}
.hero h1 {
font-size: 3.5rem;
font-weight: 800;
background: linear-gradient(135deg, #60a5fa, #3b82f6);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 1rem;
}
.hero .subtitle {
font-size: 1.5rem;
color: #94a3b8;
max-width: 600px;
margin: 0 auto 2rem;
}
.section {
margin-bottom: 4rem;
}
.section-title {
font-size: 2rem;
font-weight: 700;
color: #f8fafc;
margin-bottom: 1.5rem;
position: relative;
display: inline-block;
}
.section-title::after {
content: '';
position: absolute;
bottom: -8px;
left: 0;
width: 60px;
height: 3px;
background: linear-gradient(90deg, #60a5fa, #3b82f6);
border-radius: 2px;
}
.about-content {
background: #1e293b;
border-radius: 12px;
padding: 2.5rem;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.about-text {
font-size: 1.2rem;
line-height: 1.8;
color: #cbd5e1;
}
.about-text strong {
color: #60a5fa;
}
.connect-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5rem;
margin-top: 2rem;
}
.connect-card {
background: #1e293b;
border-radius: 12px;
padding: 2rem;
text-align: center;
transition: transform 0.3s ease, box-shadow 0.3s ease;
border: 1px solid #334155;
}
.connect-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
border-color: #60a5fa;
}
.card-icon {
font-size: 3rem;
margin-bottom: 1rem;
display: flex;
justify-content: center;
align-items: center;
width: 70px;
height: 70px;
border-radius: 50%;
background: rgba(96, 165, 250, 0.1);
margin: 0 auto 1rem;
}
.card-title {
font-size: 1.5rem;
font-weight: 600;
color: #f8fafc;
margin-bottom: 0.5rem;
}
.card-description {
color: #94a3b8;
margin-bottom: 1.5rem;
font-size: 0.95rem;
}
.card-link {
display: inline-block;
padding: 0.75rem 1.5rem;
background: linear-gradient(135deg, #60a5fa, #3b82f6);
color: white;
border-radius: 8px;
font-weight: 600;
text-decoration: none;
transition: opacity 0.2s ease;
}
.card-link:hover {
opacity: 0.9;
}
.projects-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin-top: 2rem;
}
.project-card {
background: #1e293b;
border-radius: 12px;
padding: 2rem;
border: 1px solid #334155;
}
.project-title {
font-size: 1.5rem;
font-weight: 600;
color: #f8fafc;
margin-bottom: 1rem;
}
.project-description {
color: #cbd5e1;
line-height: 1.7;
}
@media (max-width: 768px) {
.hero h1 {
font-size: 2.5rem;
}
.hero .subtitle {
font-size: 1.2rem;
}
.section-title {
font-size: 1.75rem;
}
.about-content {
padding: 1.5rem;
}
.connect-grid,
.projects-grid {
grid-template-columns: 1fr;
}
}
</style>
<div class="hero">
<h1>Malxte</h1>
<p class="subtitle">Rust 🦀 programmer & Nostr Lover ❤️</p>
</div>
<div class="section">
<h2 class="section-title">About me</h2>
<div class="about-content">
<p class="about-text">
Hi, I am a young highly motivated <strong>Rust 🦀 programmer</strong> and <strong>Nostr Lover ❤️</strong>.
I like to share my Projects, Tech News and Tips.
</p>
<p class="about-text">
When I'm not coding, I create content or work on my own projects, such as
<strong>bytemalte.de</strong> a community website or my social media app <strong>maltemedia</strong>.
</p>
</div>
</div>
<div class="section">
<h2 class="section-title">Connect</h2>
<div class="connect-grid">
<div class="connect-card">
<div class="card-icon">🌐</div>
<h3 class="card-title">ByteMalte.de</h3>
<p class="card-description">Meine Website</p>
<a href="https://bytemalte.de" target="_blank" class="card-link">Visit</a>
</div>
<div class="connect-card">
<div class="card-icon">▶️</div>
<h3 class="card-title">YouTube</h3>
<p class="card-description">Tutorials & Content</p>
<a href="https://youtube.com" target="_blank" class="card-link">Watch</a>
</div>
<div class="connect-card">
<div class="card-icon">✖️</div>
<h3 class="card-title">X (Twitter)</h3>
<p class="card-description">Gedanken & Updates</p>
<a href="https://twitter.com" target="_blank" class="card-link">Follow</a>
</div>
<div class="connect-card">
<div class="card-icon">💻</div>
<h3 class="card-title">My Gitea</h3>
<p class="card-description">Mein Code</p>
<a href="https://gitea.com" target="_blank" class="card-link">Browse</a>
</div>
<div class="connect-card">
<div class="card-icon">💬</div>
<h3 class="card-title">Reddit</h3>
<p class="card-description">Community Posts & Updates</p>
<a href="https://reddit.com" target="_blank" class="card-link">Join</a>
</div>
</div>
</div>
<div class="section">
<h2 class="section-title">Projects</h2>
<div class="projects-grid">
<div class="project-card">
<h3 class="project-title">ByteMalte.de</h3>
<p class="project-description">
A community website where I share insights, tutorials, and connect with other developers.
Built with modern web technologies and a focus on performance.
</p>
</div>
<div class="project-card">
<h3 class="project-title">Maltemedia</h3>
<p class="project-description">
A social media app that prioritizes privacy and user control. Currently in development
with Rust backend and Svelte frontend.
</p>
</div>
</div>
</div>