work work

This commit is contained in:
2026-02-19 03:54:47 +01:00
parent decfc0b383
commit bf25b882ab
23 changed files with 549 additions and 367 deletions
+51
View File
@@ -0,0 +1,51 @@
const sections = [
{
title: "Mobilkran",
text: "Wir glauben an digitale Lösungen, die Menschen verbinden. Technologie soll nicht nur funktionieren, sondern begeistern.",
image: "/mobilkran.jpg",
},
{
title: "Transport",
text: "Ein bunter Mix aus Kreativen, Entwicklern und Strategen vereint durch die Leidenschaft für gute Ideen und sauberen Code.",
image: "/transport.jpg",
},
{
title: "ADAC Abschleppdienst",
text: "Transparenz, Empathie und Nachhaltigkeit sind keine Buzzwords für uns, sondern gelebte Prinzipien in jedem Projekt.",
image: "/abschleppdienst.jpg",
},
];
export default function About() {
return (
<div className="bg-white py-20 px-6 lg:px-24">
<h1 className="text-4xl font-bold text-center mb-20 text-gray-800">Über uns</h1>
<div className="space-y-28">
{sections.map((section, index) => (
<div
key={index}
className={`flex flex-col lg:flex-row ${
index % 2 === 1 ? "lg:flex-row-reverse" : ""
} items-center gap-12`}
>
{/* Bild */}
<div className="w-full lg:w-1/2">
<img
src={section.image}
alt={section.title}
className="w-full h-auto rounded-xl shadow-xl object-cover"
/>
</div>
{/* Text */}
<div className="w-full lg:w-1/2">
<h2 className="text-3xl font-semibold text-gray-700 mb-4">{section.title}</h2>
<p className="text-gray-600 text-lg leading-relaxed">{section.text}</p>
</div>
</div>
))}
</div>
</div>
);
}
+10
View File
@@ -0,0 +1,10 @@
"use client"
import ContactForm from "@/components/ContactForm";
export default function Page() {
return (
<main className="min-h-screen bg-gray-100 py-10">
<ContactForm/>
</main>
);
};
Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

+8 -16
View File
@@ -1,26 +1,18 @@
@import "tailwindcss";
:root {
--background: #ffffff;
--foreground: #171717;
--background: #FFFFFF;
--foreground: #171717;
--color-primary: #FBDA1B;
}
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--font-sans: var(--font-geist-sans);
--font-mono: var(--font-geist-mono);
}
@media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--foreground: #ededed;
}
--color-background: var(--background);
--color-foreground: var(--foreground);
}
body {
background: var(--background);
color: var(--foreground);
font-family: Arial, Helvetica, sans-serif;
background: var(--background);
color: var(--foreground);
font-family: Arial, Helvetica, sans-serif;
}
+7 -3
View File
@@ -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",
@@ -13,8 +15,8 @@ const geistMono = Geist_Mono({
});
export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
title: "MKV Kleinholz",
description: "",
};
export default function RootLayout({
@@ -23,11 +25,13 @@ export default function RootLayout({
children: React.ReactNode;
}>) {
return (
<html lang="en">
<html lang="de">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
<Navbar/>
{children}
<Footer/>
</body>
</html>
);
+30 -101
View File
@@ -1,103 +1,32 @@
import Image from "next/image";
export default function Home() {
return (
<div className="font-sans grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20">
<main className="flex flex-col gap-[32px] 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="font-mono list-inside list-decimal text-sm/6 text-center sm:text-left">
<li className="mb-2 tracking-[-.01em]">
Get started by editing{" "}
<code className="bg-black/[.05] dark:bg-white/[.06] font-mono font-semibold px-1 py-0.5 rounded">
src/app/page.tsx
</code>
.
</li>
<li className="tracking-[-.01em]">
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] font-medium text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 sm:w-auto"
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 font-medium text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 w-full sm:w-auto md:w-[158px]"
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>
</main>
<footer className="row-start-3 flex gap-[24px] 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>
);
return (
<>
<main
className="bg-[url('/background.jpg')] bg-cover flex flex-col items-center justify-center min-h-screen bg-gray-100 text-white px-4">
<section className="text-center max-w-2xl">
<h1 className="text-4xl font-bold mb-4">Willkommen bei <span className="bg-[var(--color-primary)]">MKV Kleinholz</span>
</h1>
<p className="text-lg mb-6">
Ihr Mobilkranvermieter aus Mülheim und Umgebung
</p>
<a
href="/about"
className="inline-block bg-[var(--color-primary)] text-white px-6 py-2 rounded hover:bg-[var(--color-primary)] transition"
>
Mehr erfahren
</a>
</section>
</main>
<div className="w-full h-[400px]">
<iframe
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2489.1370108126625!2d6.875406576840839!3d51.400537171789225!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x47b8c14b986f8f25%3A0x8cc0d4e323228ee8!2sAdac%20Mobilit%C3%A4tspartner%20Kleinholz!5e0!3m2!1sde!2sde!4v1755638002671!5m2!1sde!2sde"
width="100%"
height="100%"
className="border:0"
loading="lazy"
referrerPolicy="no-referrer-when-downgrade"
></iframe>
</div>
</>
);
}
+87
View File
@@ -0,0 +1,87 @@
// components/ContactForm.tsx
import { useState } from 'react';
export default function ContactForm() {
const [formData, setFormData] = useState({
name: '',
email: '',
message: '',
});
const [submitted, setSubmitted] = useState(false);
const handleChange = (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => {
setFormData({ ...formData, [e.target.name]: e.target.value });
};
const handleSubmit = (e: React.FormEvent) => {
e.preventDefault();
// Hier kannst du die Daten an dein Backend oder einen Dienst senden
console.log('Formulardaten:', formData);
setSubmitted(true);
};
return (
<div className="max-w-xl mx-auto p-6 bg-white shadow-md rounded-md">
<h2 className="text-2xl font-semibold mb-4">Kontaktformular</h2>
{submitted ? (
<p className="text-green-600">Vielen Dank für deine Nachricht!</p>
) : (
<form onSubmit={handleSubmit} className="space-y-4">
<div>
<label htmlFor="name" className="block text-sm font-medium text-gray-700">
Name
</label>
<input
type="text"
name="name"
id="name"
required
value={formData.name}
onChange={handleChange}
className="mt-1 block w-full border border-gray-300 rounded-md p-2"
/>
</div>
<div>
<label htmlFor="email" className="block text-sm font-medium text-gray-700">
E-Mail
</label>
<input
type="email"
name="email"
id="email"
required
value={formData.email}
onChange={handleChange}
className="mt-1 block w-full border border-gray-300 rounded-md p-2"
/>
</div>
<div>
<label htmlFor="message" className="block text-sm font-medium text-gray-700">
Nachricht
</label>
<textarea
name="message"
id="message"
rows={5}
required
value={formData.message}
onChange={handleChange}
className="mt-1 block w-full border border-gray-300 rounded-md p-2"
/>
</div>
<button
type="submit"
className="bg-[var(--color-primary)] text-white px-4 py-2 rounded hover:bg-[var(--color-primary)] transition"
>
Absenden
</button>
</form>
)}
</div>
);
}
+25
View File
@@ -0,0 +1,25 @@
export default function Footer() {
return (
<footer className="bg-gray-900 text-gray-300 py-10 px-6 lg:px-20">
<div className="max-w-7xl mx-auto grid grid-cols-1 md:grid-cols-3 gap-8 text-sm">
<div>
<h3 className="text-white font-semibold mb-2">Kontakt</h3>
<p>E-Mail: <a href="mailto:info@mkv-kleinholz.de" className="hover:underline">info@mkv-kleinholz.de</a></p>
<p>Telefon: <a href="tel:+49208488460" className="hover:underline">+49 208 488460</a></p>
</div>
<div>
<h3 className="text-white font-semibold mb-2">Rechtliches</h3>
<ul className="space-y-1">
<li><a href="/imprint" className="hover:underline">Impressum</a></li>
<li><a href="/privacy" className="hover:underline">Datenschutzerklärung</a></li>
</ul>
</div>
<div className="md:text-right">
<p className="text-gray-400">&copy; {new Date().getFullYear()} MKV Kleinholz OHG. Alle Rechte vorbehalten.</p>
</div>
</div>
</footer>
);
}
+42
View File
@@ -0,0 +1,42 @@
"use client"
import Link from 'next/link';
import { useState } from 'react';
const Navbar: React.FC = () => {
const [isOpen, setIsOpen] = useState(false);
return (
<nav className="bg-gray-800 text-white">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="flex justify-between h-16 items-center">
<div className="flex-shrink-0">
<Link href="/" className="text-[var(--color-primary)] text-xl font-bold">MKV Kleinholz</Link>
</div>
<div className="hidden md:flex space-x-4">
<Link href="/" className="hover:text-gray-300">Home</Link>
<Link href="/about" className="hover:text-gray-300">Über uns</Link>
<Link href="/contact" className="hover:text-gray-300">Kontakt</Link>
</div>
<div className="md:hidden">
<button
onClick={() => setIsOpen(!isOpen)}
className="text-white focus:outline-none"
>
</button>
</div>
</div>
</div>
{isOpen && (
<div className="md:hidden px-4 pb-4 space-y-2">
<Link href="/" className="block hover:text-gray-300">Home</Link>
<Link href="/about" className="block hover:text-gray-300">Über uns</Link>
<Link href="/contact" className="block hover:text-gray-300">Kontakt</Link>
</div>
)}
</nav>
);
};
export default Navbar;