Basic website
This commit is contained in:
0
.prettierrc.yaml
Normal file
0
.prettierrc.yaml
Normal file
@@ -23,5 +23,6 @@
|
||||
"eslint": "^9",
|
||||
"eslint-config-next": "15.1.3",
|
||||
"@eslint/eslintrc": "^3"
|
||||
}
|
||||
},
|
||||
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
||||
}
|
||||
|
||||
BIN
public/header.png
Normal file
BIN
public/header.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 524 KiB |
18
src/app/about/page.tsx
Normal file
18
src/app/about/page.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Geist, Geist_Mono } from "next/font/google";
|
||||
import "./globals.css";
|
||||
import Navbar from "@/components/Navbar";
|
||||
import Footer from "@/components/Footer";
|
||||
|
||||
const geistSans = Geist({
|
||||
variable: "--font-geist-sans",
|
||||
@@ -27,7 +29,9 @@ export default function RootLayout({
|
||||
<body
|
||||
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
||||
>
|
||||
<Navbar />
|
||||
{children}
|
||||
<Footer />
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
||||
208
src/app/page.tsx
208
src/app/page.tsx
@@ -2,100 +2,122 @@ import Image from "next/image";
|
||||
|
||||
export default function Home() {
|
||||
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)]">
|
||||
<main className="flex flex-col gap-8 row-start-2 items-center sm:items-start">
|
||||
<Image
|
||||
className="dark:invert"
|
||||
src="/next.svg"
|
||||
alt="Next.js logo"
|
||||
width={180}
|
||||
height={38}
|
||||
priority
|
||||
/>
|
||||
<ol className="list-inside list-decimal text-sm text-center sm:text-left font-[family-name:var(--font-geist-mono)]">
|
||||
<li className="mb-2">
|
||||
Get started by editing{" "}
|
||||
<code className="bg-black/[.05] dark:bg-white/[.06] px-1 py-0.5 rounded font-semibold">
|
||||
src/app/page.tsx
|
||||
</code>
|
||||
.
|
||||
</li>
|
||||
<li>Save and see your changes instantly.</li>
|
||||
</ol>
|
||||
|
||||
<div className="flex gap-4 items-center flex-col sm:flex-row">
|
||||
<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="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<Image
|
||||
className="dark:invert"
|
||||
src="/vercel.svg"
|
||||
alt="Vercel logomark"
|
||||
width={20}
|
||||
height={20}
|
||||
/>
|
||||
Deploy now
|
||||
</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="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
Read our docs
|
||||
</a>
|
||||
<div className="bg-gray-50">
|
||||
{/* Header Section */}
|
||||
<header id="home" className="relative bg-gray-100">
|
||||
<div className="absolute inset-0">
|
||||
<Image
|
||||
className="w-full h-full object-cover"
|
||||
src="/header.png"
|
||||
alt="Next.js logo"
|
||||
width={180}
|
||||
height={38}
|
||||
priority
|
||||
/>
|
||||
<div className="absolute inset-0 bg-gray-900 opacity-50"></div>
|
||||
</div>
|
||||
</main>
|
||||
<footer className="row-start-3 flex gap-6 flex-wrap items-center justify-center">
|
||||
<a
|
||||
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
|
||||
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&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
|
||||
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
|
||||
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"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<Image
|
||||
aria-hidden
|
||||
src="/window.svg"
|
||||
alt="Window icon"
|
||||
width={16}
|
||||
height={16}
|
||||
/>
|
||||
Examples
|
||||
</a>
|
||||
<a
|
||||
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
|
||||
href="https://nextjs.org?utm_source=create-next-app&utm_medium=appdir-template-tw&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="relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div className="flex items-center justify-center h-[80vh]">
|
||||
<div className="text-center">
|
||||
<h1 className="text-4xl font-bold text-white sm:text-6xl">
|
||||
Open Source IT Hosting
|
||||
</h1>
|
||||
<p className="mt-4 text-lg text-gray-300 sm:mt-6">
|
||||
Empowering communities with reliable, affordable, and
|
||||
sustainable IT hosting solutions tailored to your needs.
|
||||
</p>
|
||||
<div className="mt-6">
|
||||
<a
|
||||
href="#features"
|
||||
className="inline-block px-6 py-3 bg-blue-600 text-white font-medium rounded-lg hover:bg-blue-700"
|
||||
>
|
||||
Learn More
|
||||
</a>
|
||||
<a
|
||||
href="#contact"
|
||||
className="ml-4 inline-block px-6 py-3 bg-gray-100 text-gray-900 font-medium rounded-lg hover:bg-gray-200"
|
||||
>
|
||||
Get Started
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{/* About Us Section */}
|
||||
<section id="about" 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">
|
||||
About Us
|
||||
</h2>
|
||||
<p className="mt-4 text-gray-600 text-center">
|
||||
zhbase is dedicated to providing community-driven IT hosting
|
||||
solutions. We aim to empower organizations by delivering scalable,
|
||||
reliable, and affordable hosting services tailored to your unique
|
||||
needs.
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* Services Section */}
|
||||
<section id="services" className="py-16 bg-gray-50">
|
||||
<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">
|
||||
Our Services
|
||||
</h2>
|
||||
<div className="mt-10 grid gap-10 sm:grid-cols-2 lg:grid-cols-3">
|
||||
<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">
|
||||
Reliable Hosting
|
||||
</h3>
|
||||
<p className="mt-2 text-gray-500">
|
||||
Scalable and secure hosting to support your community&aposs IT
|
||||
needs.
|
||||
</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">
|
||||
Community-Focused
|
||||
</h3>
|
||||
<p className="mt-2 text-gray-500">
|
||||
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>
|
||||
);
|
||||
}
|
||||
|
||||
19
src/components/Footer.tsx
Normal file
19
src/components/Footer.tsx
Normal 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">
|
||||
© {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
25
src/components/Navbar.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user