Basic website
This commit is contained in:
0
.prettierrc.yaml
Normal file
0
.prettierrc.yaml
Normal 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
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 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>
|
||||||
);
|
);
|
||||||
|
|||||||
208
src/app/page.tsx
208
src/app/page.tsx
@@ -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 */}
|
||||||
<Image
|
<header id="home" className="relative bg-gray-100">
|
||||||
className="dark:invert"
|
<div className="absolute inset-0">
|
||||||
src="/next.svg"
|
<Image
|
||||||
alt="Next.js logo"
|
className="w-full h-full object-cover"
|
||||||
width={180}
|
src="/header.png"
|
||||||
height={38}
|
alt="Next.js logo"
|
||||||
priority
|
width={180}
|
||||||
/>
|
height={38}
|
||||||
<ol className="list-inside list-decimal text-sm text-center sm:text-left font-[family-name:var(--font-geist-mono)]">
|
priority
|
||||||
<li className="mb-2">
|
/>
|
||||||
Get started by editing{" "}
|
<div className="absolute inset-0 bg-gray-900 opacity-50"></div>
|
||||||
<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>
|
</div>
|
||||||
</main>
|
<div className="relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||||
<footer className="row-start-3 flex gap-6 flex-wrap items-center justify-center">
|
<div className="flex items-center justify-center h-[80vh]">
|
||||||
<a
|
<div className="text-center">
|
||||||
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
|
<h1 className="text-4xl font-bold text-white sm:text-6xl">
|
||||||
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
Open Source IT Hosting
|
||||||
target="_blank"
|
</h1>
|
||||||
rel="noopener noreferrer"
|
<p className="mt-4 text-lg text-gray-300 sm:mt-6">
|
||||||
>
|
Empowering communities with reliable, affordable, and
|
||||||
<Image
|
sustainable IT hosting solutions tailored to your needs.
|
||||||
aria-hidden
|
</p>
|
||||||
src="/file.svg"
|
<div className="mt-6">
|
||||||
alt="File icon"
|
<a
|
||||||
width={16}
|
href="#features"
|
||||||
height={16}
|
className="inline-block px-6 py-3 bg-blue-600 text-white font-medium rounded-lg hover:bg-blue-700"
|
||||||
/>
|
>
|
||||||
Learn
|
Learn More
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
|
href="#contact"
|
||||||
href="https://vercel.com/templates?framework=next.js&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"
|
Get Started
|
||||||
>
|
</a>
|
||||||
<Image
|
</div>
|
||||||
aria-hidden
|
</div>
|
||||||
src="/window.svg"
|
</div>
|
||||||
alt="Window icon"
|
</div>
|
||||||
width={16}
|
</header>
|
||||||
height={16}
|
|
||||||
/>
|
{/* About Us Section */}
|
||||||
Examples
|
<section id="about" className="py-16 bg-white">
|
||||||
</a>
|
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||||
<a
|
<h2 className="text-3xl font-bold text-gray-900 text-center">
|
||||||
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
|
About Us
|
||||||
href="https://nextjs.org?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
</h2>
|
||||||
target="_blank"
|
<p className="mt-4 text-gray-600 text-center">
|
||||||
rel="noopener noreferrer"
|
zhbase is dedicated to providing community-driven IT hosting
|
||||||
>
|
solutions. We aim to empower organizations by delivering scalable,
|
||||||
<Image
|
reliable, and affordable hosting services tailored to your unique
|
||||||
aria-hidden
|
needs.
|
||||||
src="/globe.svg"
|
</p>
|
||||||
alt="Globe icon"
|
</div>
|
||||||
width={16}
|
</section>
|
||||||
height={16}
|
|
||||||
/>
|
{/* Services Section */}
|
||||||
Go to nextjs.org →
|
<section id="services" className="py-16 bg-gray-50">
|
||||||
</a>
|
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||||
</footer>
|
<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>
|
</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