diff --git a/.dockerignore b/.dockerignore index 1cc831e..58af004 100644 --- a/.dockerignore +++ b/.dockerignore @@ -15,8 +15,6 @@ dist/ *.ntvs* *.njsproj *.sln - .DS_Store Thumbs.db - README.md \ No newline at end of file diff --git a/src/app/app.component.css b/src/app/app.component.css index a461c50..a695024 100644 --- a/src/app/app.component.css +++ b/src/app/app.component.css @@ -1 +1,5 @@ -@import "tailwindcss"; \ No newline at end of file +@import "tailwindcss"; + +:root{ + +} \ No newline at end of file diff --git a/src/app/app.component.html b/src/app/app.component.html index 36093e1..0680b43 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,336 +1 @@ - - - - - - - - - - - -
-
-
- -

Hello, {{ title }}

-

Congratulations! Your app is running. 🎉

-
- -
-
- @for (item of [ - { title: 'Explore the Docs', link: 'https://angular.dev' }, - { title: 'Learn with Tutorials', link: 'https://angular.dev/tutorials' }, - { title: 'CLI Docs', link: 'https://angular.dev/tools/cli' }, - { title: 'Angular Language Service', link: 'https://angular.dev/tools/language-service' }, - { title: 'Angular DevTools', link: 'https://angular.dev/tools/devtools' }, - ]; track item.title) { - - {{ item.title }} - - - - - } -
- -
-
-
- - - - - - - - - - - + diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index dc39edb..5b64810 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -1,3 +1,29 @@ +// src/app/app.routes.ts import { Routes } from '@angular/router'; +import { LandingpageComponent } from './features/landingpage/landingpage.component'; +import { NotFoundComponent } from './core/components/not-found/not-found.component'; -export const routes: Routes = []; +export const routes: Routes = [ + // REGEL 1: Für alle "normalen" Seiten, nutze das MainLayout + { + path: '', + children: [ + { path: '', component: LandingpageComponent }, // ... zeige das Landing-Bild darin + // { path: 'shop', loadChildren: ... }, // ... zeige das Shop-Bild darin + // { path: 'cart', loadChildren: ... } // ... zeige das Warenkorb-Bild darin + ], + }, + + // // REGEL 2: Für alle Authentifizierungs-Seiten, nutze das AuthLayout + // { + // path: 'auth', + // component: AuthLayoutComponent, // <- Hänge den "Auth"-Rahmen an die Wand + // children: [ + // // Annahme: auth.routes.ts definiert /login, /register etc. + // { path: '', loadChildren: () => import('./features/auth/auth.routes').then(r => r.AUTH_ROUTES) } + // ] + // }, + + // REGEL 3: Die 404-Seite hat kein spezielles Layout + { path: '**', component: NotFoundComponent }, +]; diff --git a/src/app/core/components/access-denied/access-denied.component.css b/src/app/core/components/access-denied/access-denied.component.css new file mode 100644 index 0000000..e69de29 diff --git a/src/app/core/components/access-denied/access-denied.component.html b/src/app/core/components/access-denied/access-denied.component.html new file mode 100644 index 0000000..691a997 --- /dev/null +++ b/src/app/core/components/access-denied/access-denied.component.html @@ -0,0 +1 @@ +

access-denied works!

diff --git a/src/app/core/components/access-denied/access-denied.component.ts b/src/app/core/components/access-denied/access-denied.component.ts new file mode 100644 index 0000000..12d13ca --- /dev/null +++ b/src/app/core/components/access-denied/access-denied.component.ts @@ -0,0 +1,11 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-access-denied', + imports: [], + templateUrl: './access-denied.component.html', + styleUrl: './access-denied.component.css' +}) +export class AccessDeniedComponent { + +} diff --git a/src/app/core/components/cookie-consent/cookie-consent.component.css b/src/app/core/components/cookie-consent/cookie-consent.component.css new file mode 100644 index 0000000..e69de29 diff --git a/src/app/core/components/cookie-consent/cookie-consent.component.html b/src/app/core/components/cookie-consent/cookie-consent.component.html new file mode 100644 index 0000000..496ce51 --- /dev/null +++ b/src/app/core/components/cookie-consent/cookie-consent.component.html @@ -0,0 +1 @@ +

cookie-consent works!

diff --git a/src/app/core/components/cookie-consent/cookie-consent.component.ts b/src/app/core/components/cookie-consent/cookie-consent.component.ts new file mode 100644 index 0000000..8fad3b5 --- /dev/null +++ b/src/app/core/components/cookie-consent/cookie-consent.component.ts @@ -0,0 +1,11 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-cookie-consent', + imports: [], + templateUrl: './cookie-consent.component.html', + styleUrl: './cookie-consent.component.css' +}) +export class CookieConsentComponent { + +} diff --git a/src/app/core/components/not-found/not-found.component.css b/src/app/core/components/not-found/not-found.component.css new file mode 100644 index 0000000..e69de29 diff --git a/src/app/core/components/not-found/not-found.component.html b/src/app/core/components/not-found/not-found.component.html new file mode 100644 index 0000000..8071020 --- /dev/null +++ b/src/app/core/components/not-found/not-found.component.html @@ -0,0 +1 @@ +

not-found works!

diff --git a/src/app/core/components/not-found/not-found.component.ts b/src/app/core/components/not-found/not-found.component.ts new file mode 100644 index 0000000..8e7b578 --- /dev/null +++ b/src/app/core/components/not-found/not-found.component.ts @@ -0,0 +1,11 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-not-found', + imports: [], + templateUrl: './not-found.component.html', + styleUrl: './not-found.component.css' +}) +export class NotFoundComponent { + +} diff --git a/src/app/core/guards/auth.guard.ts b/src/app/core/guards/auth.guard.ts new file mode 100644 index 0000000..543fa0e --- /dev/null +++ b/src/app/core/guards/auth.guard.ts @@ -0,0 +1,5 @@ +import { CanActivateFn } from '@angular/router'; + +export const authGuard: CanActivateFn = (route, state) => { + return true; +}; diff --git a/src/app/features/landingpage/landingpage.component.css b/src/app/features/landingpage/landingpage.component.css new file mode 100644 index 0000000..7b4e45b --- /dev/null +++ b/src/app/features/landingpage/landingpage.component.css @@ -0,0 +1,195 @@ +/* + * ============================================ + * BASIS- & LAYOUT-STILE + * ============================================ + */ +@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap'); + +:host { + --bg-color: #1a1d24; /* Ein sehr dunkles Blau/Grau */ + --surface-color: #2a2d34; /* Etwas helleres Grau für die Varianten-Karten */ + --text-color: #e0e0e0; + --headline-color: #FFFFFF; + --connector-color: #555; + --font-main: 'Inter', sans-serif; + --container-width: 1100px; +} + +.showcase { + background-color: var(--bg-color); + color: var(--text-color); + font-family: var(--font-main); + overflow-x: hidden; /* Verhindert horizontales Scrollen */ +} + +.container { + max-width: var(--container-width); + margin: 0 auto; + padding: 0 20px; +} + +/* + * ============================================ + * HERO-SEKTION + * ============================================ + */ +.hero-section { + height: 100vh; + display: flex; + align-items: center; + justify-content: center; + text-align: center; + position: relative; + /* WICHTIG: Ersetze dies mit deinem Bild! */ + background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://via.placeholder.com/1920x1080/1a1d24/e0e0e0?text=SATO+HERO+IMAGE'); + background-size: cover; + background-position: center; + color: var(--headline-color); +} + +.hero-content h1 { + font-size: 2.5rem; + font-weight: 700; + line-height: 1.2; + margin: 0; +} + +.hero-content .brand-name { + font-size: 6rem; + font-weight: 700; + margin-top: 1rem; +} + +/* + * ============================================ + * PRODUKT-SEKTION (ALLGEMEIN) + * ============================================ + */ +.product-section { + padding: 80px 0; +} + +/* Der Verbindungslinien-Stil */ +.connector { + width: 1px; + height: 120px; + background-color: var(--connector-color); + margin: 0 auto 80px auto; + position: relative; +} +.connector::after { + content: ''; + display: block; + width: 7px; + height: 7px; + border: 1px solid var(--connector-color); + border-radius: 50%; + position: absolute; + bottom: -15px; + left: 50%; + transform: translateX(-50%); +} + +.product-grid { + display: grid; + gap: 30px; + /* Mobile-First: Einspaltiges Layout wird unten für Desktop überschrieben */ + grid-template-columns: 1fr; +} + +.product-main-image img, +.variant-item img { + width: 100%; + height: 100%; + display: block; + object-fit: cover; +} + +.product-info { + text-align: center; +} + +.product-info h2 { + font-size: 3rem; + font-weight: 700; + color: var(--headline-color); + margin: 0 0 1rem 0; +} + +.product-info p { + font-size: 1rem; + line-height: 1.6; + max-width: 450px; + margin: 0 auto; +} + +.product-variants { + display: grid; + grid-template-columns: repeat(2, 1fr); /* 2 Spalten auf Mobile */ + gap: 20px; +} + +.variant-item { + background-color: var(--surface-color); + padding: 10px; + border-radius: 8px; +} + +/* + * ============================================ + * DESKTOP LAYOUT (ab 992px) + * ============================================ + */ +@media (min-width: 992px) { + .product-grid { + /* Ein 12-Spalten-Grid für maximale Flexibilität */ + grid-template-columns: repeat(12, 1fr); + grid-template-rows: auto auto; /* Zwei Zeilen für die Inhalte */ + align-items: center; + gap: 40px; + } + + .product-info { + text-align: left; + } + + .product-info p { + margin: 0; + } + + .product-variants { + grid-template-columns: repeat(4, 1fr); /* 4 Spalten auf Desktop */ + } + + /* --- Layout A (z.B. Cervantes) --- */ + .layout-a .product-main-image { + grid-column: 1 / span 6; /* Spalten 1-6 */ + grid-row: 1 / span 2; /* Über beide Zeilen */ + } + .layout-a .product-info { + grid-column: 8 / span 5; /* Spalten 8-12 */ + grid-row: 1 / 2; + } + .layout-a .product-variants { + grid-column: 8 / span 5; /* Spalten 8-12 */ + grid-row: 2 / 3; + } + + /* --- Layout B (z.B. Sirius) --- */ + .layout-b .product-main-image { + grid-column: 8 / span 5; /* Spalten 8-12 */ + grid-row: 1 / span 2; + } + .layout-b .product-info { + grid-column: 1 / span 6; /* Spalten 1-6 */ + grid-row: 1 / 2; + text-align: right; + } + .layout-b .product-info p { + margin-left: auto; + } + .layout-b .product-variants { + grid-column: 1 / span 6; /* Spalten 1-6 */ + grid-row: 2 / 3; + } +} \ No newline at end of file diff --git a/src/app/features/landingpage/landingpage.component.html b/src/app/features/landingpage/landingpage.component.html new file mode 100644 index 0000000..9e3ebfb --- /dev/null +++ b/src/app/features/landingpage/landingpage.component.html @@ -0,0 +1,83 @@ +
+ + + + +
+
+

Klicke, um mit einem
kostenlosen Konto alles
aus dieser Idee herauszuholen.

+

SATO

+
+
+ +
+ + + + +
+
+
+
+ Sonnenbrille Cervantes +
+
+

Cervantes

+

Ein Statement für zeitlose Eleganz. Die markante Silhouette verbindet klassisches Design mit modernen Akzenten.

+
+
+
Cervantes Variante 1
+
Cervantes Variante 2
+
Cervantes Variante 3
+
Cervantes Variante 4
+
+
+
+ + + + +
+
+
+
+ Sonnenbrille Sirius +
+
+

Sirius

+

Inspiriert von der Dynamik der Metropole. Sirius besticht durch seine leichte Bauweise und das futuristische Design.

+
+
+
Sirius Variante 1
+
Sirius Variante 2
+
Sirius Variante 3
+
Sirius Variante 4
+
+
+
+ + + + +
+
+
+
+ Sonnenbrille Almach +
+
+

Almach

+

Mutig und unkonventionell. Almach ist für all jene, die sich trauen, aus der Masse herauszustechen.

+
+
+
Almach Variante 1
+
Almach Variante 2
+
Almach Variante 3
+
+
+
+ + + +
+
\ No newline at end of file diff --git a/src/app/features/landingpage/landingpage.component.ts b/src/app/features/landingpage/landingpage.component.ts new file mode 100644 index 0000000..da2b6dd --- /dev/null +++ b/src/app/features/landingpage/landingpage.component.ts @@ -0,0 +1,13 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-landingpage', + imports: [], + templateUrl: './landingpage.component.html', + styleUrl: './landingpage.component.css', +}) +export class LandingpageComponent { + onSubmit() { + console.log('Formular abgeschickt!'); + } +}