Basic website

This commit is contained in:
Lukas Reichart
2024-12-29 13:11:28 +01:00
parent f848fddd16
commit 7dc0883f25
8 changed files with 183 additions and 94 deletions

0
.prettierrc.yaml Normal file
View File

View File

@@ -23,5 +23,6 @@
"eslint": "^9", "eslint": "^9",
"eslint-config-next": "15.1.3", "eslint-config-next": "15.1.3",
"@eslint/eslintrc": "^3" "@eslint/eslintrc": "^3"
} },
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
} }

BIN
public/header.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 524 KiB

18
src/app/about/page.tsx Normal file
View File

@@ -0,0 +1,18 @@
export default function About() {
return (
<div>
<section className="bg-gray-50 py-16 px-8">
<div className="max-w-4xl mx-auto text-center">
<h1 className="text-4xl text-gray-800 font-bold mb-6">About Us</h1>
<p className="text-gray-600">
zhbase is a community-driven IT hosting platform that focuses on
providing secure, reliable, and sustainable solutions. Our mission
is to empower individuals and businesses with accessible and
efficient IT infrastructure, built on a foundation of collaboration
and trust.
</p>
</div>
</section>
</div>
);
}

View File

@@ -1,6 +1,8 @@
import type { Metadata } from "next"; import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google"; import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css"; import "./globals.css";
import Navbar from "@/components/Navbar";
import Footer from "@/components/Footer";
const geistSans = Geist({ const geistSans = Geist({
variable: "--font-geist-sans", variable: "--font-geist-sans",
@@ -27,7 +29,9 @@ export default function RootLayout({
<body <body
className={`${geistSans.variable} ${geistMono.variable} antialiased`} className={`${geistSans.variable} ${geistMono.variable} antialiased`}
> >
<Navbar />
{children} {children}
<Footer />
</body> </body>
</html> </html>
); );

View File

@@ -2,100 +2,122 @@ import Image from "next/image";
export default function Home() { export default function Home() {
return ( return (
<div className="grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20 font-[family-name:var(--font-geist-sans)]"> <div className="bg-gray-50">
<main className="flex flex-col gap-8 row-start-2 items-center sm:items-start"> {/* Header Section */}
<header id="home" className="relative bg-gray-100">
<div className="absolute inset-0">
<Image <Image
className="dark:invert" className="w-full h-full object-cover"
src="/next.svg" src="/header.png"
alt="Next.js logo" alt="Next.js logo"
width={180} width={180}
height={38} height={38}
priority priority
/> />
<ol className="list-inside list-decimal text-sm text-center sm:text-left font-[family-name:var(--font-geist-mono)]"> <div className="absolute inset-0 bg-gray-900 opacity-50"></div>
<li className="mb-2"> </div>
Get started by editing{" "} <div className="relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<code className="bg-black/[.05] dark:bg-white/[.06] px-1 py-0.5 rounded font-semibold"> <div className="flex items-center justify-center h-[80vh]">
src/app/page.tsx <div className="text-center">
</code> <h1 className="text-4xl font-bold text-white sm:text-6xl">
. Open Source IT Hosting
</li> </h1>
<li>Save and see your changes instantly.</li> <p className="mt-4 text-lg text-gray-300 sm:mt-6">
</ol> Empowering communities with reliable, affordable, and
sustainable IT hosting solutions tailored to your needs.
<div className="flex gap-4 items-center flex-col sm:flex-row"> </p>
<div className="mt-6">
<a <a
className="rounded-full border border-solid border-transparent transition-colors flex items-center justify-center bg-foreground text-background gap-2 hover:bg-[#383838] dark:hover:bg-[#ccc] text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5" href="#features"
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app" className="inline-block px-6 py-3 bg-blue-600 text-white font-medium rounded-lg hover:bg-blue-700"
target="_blank"
rel="noopener noreferrer"
> >
<Image Learn More
className="dark:invert"
src="/vercel.svg"
alt="Vercel logomark"
width={20}
height={20}
/>
Deploy now
</a> </a>
<a <a
className="rounded-full border border-solid border-black/[.08] dark:border-white/[.145] transition-colors flex items-center justify-center hover:bg-[#f2f2f2] dark:hover:bg-[#1a1a1a] hover:border-transparent text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 sm:min-w-44" href="#contact"
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app" className="ml-4 inline-block px-6 py-3 bg-gray-100 text-gray-900 font-medium rounded-lg hover:bg-gray-200"
target="_blank"
rel="noopener noreferrer"
> >
Read our docs Get Started
</a> </a>
</div> </div>
</main> </div>
<footer className="row-start-3 flex gap-6 flex-wrap items-center justify-center"> </div>
<a </div>
className="flex items-center gap-2 hover:underline hover:underline-offset-4" </header>
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank" {/* About Us Section */}
rel="noopener noreferrer" <section id="about" className="py-16 bg-white">
> <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<Image <h2 className="text-3xl font-bold text-gray-900 text-center">
aria-hidden About Us
src="/file.svg" </h2>
alt="File icon" <p className="mt-4 text-gray-600 text-center">
width={16} zhbase is dedicated to providing community-driven IT hosting
height={16} solutions. We aim to empower organizations by delivering scalable,
/> reliable, and affordable hosting services tailored to your unique
Learn needs.
</a> </p>
<a </div>
className="flex items-center gap-2 hover:underline hover:underline-offset-4" </section>
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank" {/* Services Section */}
rel="noopener noreferrer" <section id="services" className="py-16 bg-gray-50">
> <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<Image <h2 className="text-3xl font-bold text-gray-900 text-center">
aria-hidden Our Services
src="/window.svg" </h2>
alt="Window icon" <div className="mt-10 grid gap-10 sm:grid-cols-2 lg:grid-cols-3">
width={16} <div className="text-center">
height={16} <div className="flex items-center justify-center w-16 h-16 mx-auto bg-blue-600 text-white rounded-full">
/> 💻
Examples </div>
</a> <h3 className="mt-4 text-lg font-bold text-gray-900">
<a Reliable Hosting
className="flex items-center gap-2 hover:underline hover:underline-offset-4" </h3>
href="https://nextjs.org?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app" <p className="mt-2 text-gray-500">
target="_blank" Scalable and secure hosting to support your community&aposs IT
rel="noopener noreferrer" needs.
> </p>
<Image </div>
aria-hidden <div className="text-center">
src="/globe.svg" <div className="flex items-center justify-center w-16 h-16 mx-auto bg-blue-600 text-white rounded-full">
alt="Globe icon" 🌍
width={16} </div>
height={16} <h3 className="mt-4 text-lg font-bold text-gray-900">
/> Community-Focused
Go to nextjs.org </h3>
</a> <p className="mt-2 text-gray-500">
</footer> Designed to prioritize local communities and their unique
requirements.
</p>
</div>
<div className="text-center">
<div className="flex items-center justify-center w-16 h-16 mx-auto bg-blue-600 text-white rounded-full">
💡
</div>
<h3 className="mt-4 text-lg font-bold text-gray-900">
Affordable Solutions
</h3>
<p className="mt-2 text-gray-500">
Cost-effective plans tailored for organizations of all sizes.
</p>
</div>
</div>
</div>
</section>
{/* Events Section */}
<section id="events" className="py-16 bg-white">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<h2 className="text-3xl font-bold text-gray-900 text-center">
Upcoming Events
</h2>
<p className="mt-4 text-gray-600 text-center">
Stay tuned for our latest community events, workshops, and webinars
designed to help you make the most of our services.
</p>
</div>
</section>
</div> </div>
); );
} }

19
src/components/Footer.tsx Normal file
View File

@@ -0,0 +1,19 @@
export default function Footer() {
return (
<footer className="py-8 bg-gray-100">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="flex justify-between items-center">
<p className="text-gray-400 text-sm">
&copy; {new Date().getFullYear()} zhbase. All rights reserved.
</p>
<p className="text-gray-400 text-sm">
Contact us at{" "}
<a href="mailto:info@zhbase.com" className="text-blue-400">
info@zhbase.ch
</a>
</p>
</div>
</div>
</footer>
);
}

25
src/components/Navbar.tsx Normal file
View File

@@ -0,0 +1,25 @@
import Link from "next/link";
export default function Navbar() {
return (
<nav className="bg-white sticky top-0 z-50 shadow-md">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="flex justify-between items-center h-16">
<div className="text-gray-800 text-xl font-bold">zhbase</div>
<div>
<ul className="flex space-x-6 text-gray-600">
<li>
<Link href="/">Home</Link>
</li>
<li>
<Link href="/about">About Us</Link>
</li>
<li>Services</li>
<li>Events</li>
</ul>
</div>
</div>
</div>
</nav>
);
}