12 Commits

Author SHA1 Message Date
54bf9730ba feat: update project assets and components with new images and improve image handling 2025-11-19 14:31:28 +01:00
2cae2e86ed Merge pull request 'feat(events): update event details and add new events for Karaoke and Pub Quiz' (#3) from feat/events-december-25 into main
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Reviewed-on: #3
2025-11-19 14:12:50 +01:00
636c7fc03a feat(events): update event details and add new events for Karaoke and Pub Quiz 2025-11-19 14:11:44 +01:00
5fdea37a90 Merge pull request 'Neue Events für Dezember 25' (#2) from feat/events-december-25 into main
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Reviewed-on: #2
2025-11-18 23:09:49 +01:00
11932d51ec feat(events): add new events for Adventskalender, Weihnachtsferien, and Neujahrs-Apero with corresponding images 2025-11-18 20:14:53 +01:00
803c7907f1 fix(HoverCard): add type assertion for event target in click handler 2025-11-18 20:05:17 +01:00
3d4bbf77bc feat(events): add new event schlager karaoke 2025-11-18 20:05:01 +01:00
71a586280e refactor(images): add new folders to categorize events, gallery, whiskey 2025-11-18 19:12:56 +01:00
1f4cea0c35 fix(hero): add correct id in Hero to fix scroll button 2025-11-18 18:42:21 +01:00
193f3ff0bb Merge remote-tracking branch 'origin/main'
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2025-11-10 15:12:26 +01:00
292747d197 Remove outdated event entries from index.astro 2025-11-10 15:12:12 +01:00
18f7ea5da5 Remove outdated event entries from index.astro
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline is running
2025-11-10 11:09:16 +01:00
43 changed files with 632 additions and 658 deletions

1
.gitignore vendored
View File

@ -16,7 +16,6 @@ pnpm-debug.log*
# environment variables # environment variables
.env .env
.env.production .env.production
.env.local
# macOS-specific files # macOS-specific files
.DS_Store .DS_Store

View File

@ -1,29 +1,22 @@
FROM node:20-alpine AS build FROM node:20-alpine AS build
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm install RUN npm ci
COPY . . COPY . .
# Ensure CSS variables are present
RUN mkdir -p public/styles
RUN cp -r styles/* public/styles/ || true
RUN npm run build RUN npm run build
FROM node:20-alpine AS production FROM node:20-alpine AS production
ENV NODE_ENV=production
WORKDIR /app WORKDIR /app
RUN npm install -g serve
# Copy built app and minimal runtime files COPY --from=build /app/dist ./dist
COPY --from=build /app/dist /app/dist
COPY --from=build /app/package*.json /app/
RUN npm pkg delete devDependencies || true
EXPOSE 3000 EXPOSE 3000
CMD ["serve", "-s", "dist", "-l", "3000"]
# Run Astro server entry (node adapter standalone)
CMD ["node", "dist/server/entry.mjs"]
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget -qO- http://localhost:3000/ || exit 1 CMD wget -qO- http://localhost:3000/ || exit 1

View File

@ -1,55 +1,47 @@
# Gallus Pub Website # Astro Starter Kit: Minimal
This is the Gallus Pub website built with Astro. It includes an admin area at `/admin` for editing content (events, gallery, texts). Changes are committed back to the Git repository via the Gitea API which triggers your Woodpecker + Fly.io deployment pipeline.
## Local development
To run the site locally with OAuth login (Gitea):
1. Copy the example env file and fill values:
```bash
cp .env.example .env.local
```
- Create a Gitea OAuth application with Redirect URI: `http://localhost:4321/api/auth/callback`.
- Set `OAUTH_CLIENT_ID` and `OAUTH_CLIENT_SECRET` from Gitea.
- Set `GITEA_OWNER`, `GITEA_REPO`, and a `GITEA_TOKEN` (PAT) with write access to the repo.
- Generate random secrets for sessions/CSRF (e.g. `openssl rand -hex 32`).
2. Install dependencies:
```bash
npm install
```
3. Start dev server using your local env file:
```bash
npm run dev:local
```
The site runs at http://localhost:4321. Visit http://localhost:4321/admin to log in via Gitea OAuth.
Notes:
- If OAuth variables are missing or malformed, the auth endpoints return a clear 500 with guidance instead of crashing.
- Production secrets are configured on Fly.io; `.env.local` is ignored by Git.
## Project structure
```sh
npm create astro@latest -- --template minimal
``` ```
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/minimal)
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/minimal)
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/minimal/devcontainer.json)
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
## 🚀 Project Structure
Inside of your Astro project, you'll see the following folders and files:
```text
/ /
├── public/ # static assets ├── public/
├── src/ ├── src/
── content/ # editable JSON content (events, gallery) ── pages/
│ ├── pages/ # Astro pages, includes /admin and API routes │ └── index.astro
│ ├── components/ # UI components
│ └── utils/ # session helpers
├── .env.example # template for local env
├── fly.toml # Fly.io config
├── Dockerfile
└── package.json └── package.json
``` ```
## Commands Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
- `npm install` install deps There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
- `npm run dev` dev server without loading .env.local (expects env to be present in the shell)
- `npm run dev:local` dev server loading `.env.local` via dotenv-cli Any static assets, like images, can be placed in the `public/` directory.
- `npm run build` production build (SSR via @astrojs/node)
- `npm run preview` preview the production build ## 🧞 Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `npm run astro -- --help` | Get help using the Astro CLI |
## 👀 Want to learn more?
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).

View File

@ -1,9 +1,5 @@
// @ts-check // @ts-check
import { defineConfig } from 'astro/config'; import { defineConfig } from 'astro/config';
import node from '@astrojs/node';
// https://astro.build/config // https://astro.build/config
export default defineConfig({ export default defineConfig({});
output: 'server',
adapter: node({ mode: 'standalone' })
});

911
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,19 +1,14 @@
{ {
"name": "gallus-pub", "name": "Gallus Pub Site",
"type": "module", "type": "module",
"version": "0.0.1", "version": "0.0.1",
"scripts": { "scripts": {
"dev": "astro dev", "dev": "astro dev",
"dev:local": "dotenv -e .env.local -- astro dev",
"build": "astro build", "build": "astro build",
"preview": "astro preview", "preview": "astro preview",
"astro": "astro" "astro": "astro"
}, },
"dependencies": { "dependencies": {
"astro": "^5.12.8", "astro": "^5.12.0"
"@astrojs/node": "^9.0.0"
},
"devDependencies": {
"dotenv-cli": "^7.4.1"
} }
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

View File

Before

Width:  |  Height:  |  Size: 706 KiB

After

Width:  |  Height:  |  Size: 706 KiB

View File

Before

Width:  |  Height:  |  Size: 122 KiB

After

Width:  |  Height:  |  Size: 122 KiB

View File

Before

Width:  |  Height:  |  Size: 250 KiB

After

Width:  |  Height:  |  Size: 250 KiB

View File

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

View File

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

View File

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

View File

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 55 KiB

View File

Before

Width:  |  Height:  |  Size: 160 KiB

After

Width:  |  Height:  |  Size: 160 KiB

View File

Before

Width:  |  Height:  |  Size: 800 KiB

After

Width:  |  Height:  |  Size: 800 KiB

View File

Before

Width:  |  Height:  |  Size: 747 KiB

After

Width:  |  Height:  |  Size: 747 KiB

View File

Before

Width:  |  Height:  |  Size: 398 KiB

After

Width:  |  Height:  |  Size: 398 KiB

View File

Before

Width:  |  Height:  |  Size: 604 KiB

After

Width:  |  Height:  |  Size: 604 KiB

View File

Before

Width:  |  Height:  |  Size: 580 KiB

After

Width:  |  Height:  |  Size: 580 KiB

View File

Before

Width:  |  Height:  |  Size: 117 KiB

After

Width:  |  Height:  |  Size: 117 KiB

View File

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 128 KiB

View File

Before

Width:  |  Height:  |  Size: 116 KiB

After

Width:  |  Height:  |  Size: 116 KiB

View File

Before

Width:  |  Height:  |  Size: 567 KiB

After

Width:  |  Height:  |  Size: 567 KiB

View File

Before

Width:  |  Height:  |  Size: 184 KiB

After

Width:  |  Height:  |  Size: 184 KiB

View File

Before

Width:  |  Height:  |  Size: 179 KiB

After

Width:  |  Height:  |  Size: 179 KiB

View File

Before

Width:  |  Height:  |  Size: 196 KiB

After

Width:  |  Height:  |  Size: 196 KiB

View File

@ -1,5 +1,10 @@
--- ---
import { Image } from "astro:assets";
import "../styles/components/Drinks.css" import "../styles/components/Drinks.css"
import MonthlyHit from "../assets/images/MonthlyHit.png";
import Whiskey1 from "../assets/images/whiskey/Whiskey1.png";
import Whiskey2 from "../assets/images/whiskey/Whiskey2.png";
import Whiskey3 from "../assets/images/whiskey/Whiskey3.png";
const { id } = Astro.props; const { id } = Astro.props;
--- ---
@ -17,7 +22,7 @@ const { id } = Astro.props;
<div class="mate-vodka"> <div class="mate-vodka">
<div class="circle" title="Mate Vodka"> <div class="circle" title="Mate Vodka">
<img src="/images/MonthlyHit.png" alt="Monats Hit" class="circle-image" /> <Image src={MonthlyHit} alt="Monats Hit" class="circle-image" />
<span class="circle-label"></span> <span class="circle-label"></span>
</div> </div>
<div>Mate Vodka</div> <div>Mate Vodka</div>
@ -29,15 +34,15 @@ const { id } = Astro.props;
<div class="circle-row"> <div class="circle-row">
<div class="circle whiskey-circle" title="Whiskey 1"> <div class="circle whiskey-circle" title="Whiskey 1">
<img src="/images/Whiskey1.png" alt="Whiskey 1" class="circle-image" /> <Image src={Whiskey1} alt="Whiskey 1" class="circle-image" />
<span class="circle-label"></span> <span class="circle-label"></span>
</div> </div>
<div class="circle whiskey-circle" title="Whiskey 2"> <div class="circle whiskey-circle" title="Whiskey 2">
<img src="/images/Whiskey2.png" alt="Whiskey 2" class="circle-image" /> <Image src={Whiskey2} alt="Whiskey 2" class="circle-image" />
<span class="circle-label"></span> <span class="circle-label"></span>
</div> </div>
<div class="circle whiskey-circle" title="Whiskey 3"> <div class="circle whiskey-circle" title="Whiskey 3">
<img src="/images/Whiskey3.png" alt="Whiskey 3" class="circle-image" /> <Image src={Whiskey3} alt="Whiskey 3" class="circle-image" />
<span class="circle-label"></span> <span class="circle-label"></span>
</div> </div>
</div> </div>

View File

@ -2,9 +2,10 @@
// src/components/EventsGrid.astro // src/components/EventsGrid.astro
import HoverCard from "./HoverCard.astro"; import HoverCard from "./HoverCard.astro";
import type { ImageMetadata } from "astro";
interface Event { interface Event {
image: string; image: ImageMetadata;
title: string; title: string;
date: string; date: string;
description: string; description: string;

View File

@ -1,11 +1,13 @@
--- ---
// src/components/Footer.astro // src/components/Footer.astro
import "/styles/components/Footer.css" import "../styles/components/Footer.css"
const currentYear = new Date().getFullYear(); const currentYear = new Date().getFullYear();
--- ---
<footer class="footer"> <footer class="footer" id="footer">
<div class="footer-content"> <div class="footer-content">
<div class="footer-sections"> <div class="footer-sections">
<div class="footer-section"> <div class="footer-section">
<h3>Öffnungszeiten</h3> <h3>Öffnungszeiten</h3>
@ -20,7 +22,7 @@ const currentYear = new Date().getFullYear();
<p>Gallus Pub</p> <p>Gallus Pub</p>
<p>Metzgergasse 13</p> <p>Metzgergasse 13</p>
<p>9000 St. Gallen</p> <p>9000 St. Gallen</p>
<p>Email:</p> <p><a href="tel:0772322770">077 232 27 70</a></p>
<p><a href="mailto:info@gallus-pub.ch">info@gallus-pub.ch</a></p> <p><a href="mailto:info@gallus-pub.ch">info@gallus-pub.ch</a></p>
</div> </div>
@ -28,11 +30,9 @@ const currentYear = new Date().getFullYear();
<h3>Raumreservationen</h3> <h3>Raumreservationen</h3>
<p>Du planst einen Event?</p> <p>Du planst einen Event?</p>
<p>Der "St.Gallerruum" im 2.OG</p> <p>Der "St.Gallerruum" im 2.OG</p>
<p>Kann gemietet werden.</p> <p>kann gemietet werden.</p>
<p>Reservierungen via Whatsapp</p> <p>Reservierungen via Whatsapp</p>
<p><a href="tel:0772322770">077 232 27 70</a></p>
</div> </div>
</div> </div>
<div class="copyright"> <div class="copyright">
&copy; {currentYear} Gallus Pub. Alle Rechte vorbehalten. &copy; {currentYear} Gallus Pub. Alle Rechte vorbehalten.

View File

@ -1,5 +1,7 @@
--- ---
// src/components/Header.astro // src/components/Header.astro
import { Image } from "astro:assets";
import Logo from "../assets/images/Logo.png";
const { url } = Astro; const { url } = Astro;
import "../styles/components/Header.css"; import "../styles/components/Header.css";
--- ---
@ -9,7 +11,7 @@ import "../styles/components/Header.css";
<div class="desktop-layout"> <div class="desktop-layout">
<div class="logo-container"> <div class="logo-container">
<a href="/"> <a href="/">
<img src="/images/Logo.png" alt="Logo" class="logo" /> <Image src={Logo} alt="Logo" class="logo" />
</a> </a>
</div> </div>
@ -31,7 +33,7 @@ import "../styles/components/Header.css";
<!-- Centered Logo --> <!-- Centered Logo -->
<div class="mobile-logo-container"> <div class="mobile-logo-container">
<a href="/"> <a href="/">
<img src="/images/Logo.png" alt="Logo" class="logo" /> <Image src={Logo} alt="Logo" class="logo" />
</a> </a>
</div> </div>
@ -65,16 +67,16 @@ import "../styles/components/Header.css";
const mobileMenuLinks = document.querySelectorAll('.mobile-menu a'); const mobileMenuLinks = document.querySelectorAll('.mobile-menu a');
// Toggle menu when burger icon is clicked // Toggle menu when burger icon is clicked
burgerIcon.addEventListener('click', () => { burgerIcon?.addEventListener('click', () => {
burgerIcon.classList.toggle('active'); burgerIcon.classList.toggle('active');
mobileMenu.classList.toggle('active'); mobileMenu?.classList.toggle('active');
}); });
// Close menu when a navigation link is clicked // Close menu when a navigation link is clicked
mobileMenuLinks.forEach(link => { mobileMenuLinks.forEach(link => {
link.addEventListener('click', () => { link.addEventListener('click', () => {
burgerIcon.classList.remove('active'); burgerIcon?.classList.remove('active');
mobileMenu.classList.remove('active'); mobileMenu?.classList.remove('active');
}); });
}); });
}); });

View File

@ -15,7 +15,7 @@ const { id } = Astro.props;
<p>Im Herzen von St.Gallen</p> <p>Im Herzen von St.Gallen</p>
<a href="#" class="button">Aktuelles ↓</a> <a href="#welcome" class="button">Aktuelles ↓</a>
</div> </div>
</div> </div>

View File

@ -1,11 +1,18 @@
--- ---
import { Image } from "astro:assets";
import type { ImageMetadata } from "astro";
import "../styles/components/HoverCard.css"; import "../styles/components/HoverCard.css";
const {title, description, image = "", date} = Astro.props; const {title, description, image, date} = Astro.props as {
title: string;
description: string;
image: ImageMetadata;
date: string;
};
--- ---
<article class="hover-card"> <article class="hover-card">
<div class="image-container"> <div class="image-container">
<img class="card-image" src={image} alt={title} /> <Image class="card-image" src={image} alt={title} />
</div> </div>
<div class="hover-text"> <div class="hover-text">
@ -39,7 +46,7 @@ const {title, description, image = "", date} = Astro.props;
// Close card when clicking outside (mobile only) // Close card when clicking outside (mobile only)
document.addEventListener('click', (e) => { document.addEventListener('click', (e) => {
if (window.innerWidth <= 768 && !card.contains(e.target)) { if (window.innerWidth <= 768 && !card.contains(e.target as Node)) {
card.classList.remove('active'); card.classList.remove('active');
} }
}); });

View File

@ -1,13 +1,15 @@
--- ---
// src/components/ImageCarousel.astro // src/components/ImageCarousel.astro
import { Image } from "astro:assets";
import type { ImageMetadata } from "astro";
import "../styles/components/ImageCarousel.css"; import "../styles/components/ImageCarousel.css";
interface Image { interface ImageData {
src: string; src: ImageMetadata;
alt: string; alt: string;
} }
const { images = [], id } = Astro.props as { images: Image[], id?: string }; const { images = [], id } = Astro.props as { images: ImageData[], id?: string };
--- ---
<section id={id} class="image-carousel-container"> <section id={id} class="image-carousel-container">
@ -21,7 +23,7 @@ const { images = [], id } = Astro.props as { images: Image[], id?: string };
<div class="carousel-track"> <div class="carousel-track">
{images.map((image, index) => ( {images.map((image, index) => (
<div class="carousel-slide" data-index={index}> <div class="carousel-slide" data-index={index}>
<img src={image.src} alt={image.alt} class="carousel-image" /> <Image src={image.src} alt={image.alt} class="carousel-image" />
</div> </div>
))} ))}
</div> </div>

View File

@ -1,6 +1,8 @@
--- ---
// src/components/Welcome.astro // src/components/Welcome.astro
import { Image } from "astro:assets";
import "../styles/components/Welcome.css" import "../styles/components/Welcome.css"
import WelcomeImg from "../assets/images/Welcome.png";
const { id } = Astro.props; const { id } = Astro.props;
--- ---
@ -52,7 +54,7 @@ const { id } = Astro.props;
<div class="welcome-image"> <div class="welcome-image">
<img src="/images/Welcome.png" alt="Welcome background image" /> <Image src={WelcomeImg} alt="Welcome background image" />
</div> </div>
</section> </section>

View File

@ -1,17 +1,98 @@
--- ---
// src/pages/index.astro
import Layout from "../components/Layout.astro"; import Layout from "../components/Layout.astro";
import Hero from "../components/Hero.astro"; import Hero from "../components/Hero.astro";
import Welcome from "../components/Welcome.astro"; import Welcome from "../components/Welcome.astro";
import EventsGrid from "../components/EventsGrid.astro"; import EventsGrid from "../components/EventsGrid.astro";
import Drinks from "../components/Drinks.astro"; import Drinks from "../components/Drinks.astro";
import ImageCarousel from "../components/ImageCarousel.astro"; import ImageCarousel from "../components/ImageCarousel.astro";
import Contact from "../components/Contact.astro";
import About from "../components/About.astro";
// Inhalte aus Dateien laden (editierbar über Admin) // Import event images
import events from "../content/events.json"; import eventKaraoke from "../assets/images/events/event_karaoke.jpg";
import images from "../content/gallery.json"; import eventPubQuiz from "../assets/images/events/event_pub-quiz.jpg";
import eventSchlager from "../assets/images/events/event_schlager-karaoke.jpeg";
import eventAdvent from "../assets/images/events/event_advents-kalender.jpeg";
import eventFerien from "../assets/images/events/event_ferien.jpeg";
import eventNeujahr from "../assets/images/events/event_neujahrs-apero.jpeg";
// Import gallery images
import Gallery1 from "../assets/images/gallery/Gallery1.png";
import Gallery2 from "../assets/images/gallery/Gallery2.png";
import Gallery3 from "../assets/images/gallery/Gallery3.png";
import Gallery4 from "../assets/images/gallery/Gallery4.png";
import Gallery5 from "../assets/images/gallery/Gallery5.png";
import Gallery6 from "../assets/images/gallery/Gallery6.png";
import Gallery7 from "../assets/images/gallery/Gallery7.png";
import Gallery8 from "../assets/images/gallery/Gallery8.png";
import Gallery9 from "../assets/images/gallery/Gallery9.png";
const events = [
{
image: eventKaraoke,
title: "Karaoke",
date: "Mittwoch - Samstag",
description: `
Bei uns gibt es Karaoke Mi-Sa!! <br>
Seid ihr eine Gruppe und lieber unter euch? ..unseren 2.Stock kannst du auch mieten ;) <br>
Reserviere am besten gleich per Whatsapp <a href="tel:+41772322770">077 232 27 70</a>
`,
},
{
image: eventPubQuiz,
title: "Pub Quiz",
date: "Jeden Freitag",
description: `
Jeden Freitag findet unser <b>Pub Quiz</b> statt. Gespielt wird tischweise in 3-4 Runden. <br>
Jede Woche gibt es ein anderes Thema. Es geht um Ruhm und Ehre und zusätzlich werden die Sieger der Herzen durch das Publikum gekürt! <3 <br>
Auch Einzelpersonen sind herzlich willkommen! <br>
*zum mitmachen minimum 1 Getränk konsumieren oder 5CHF
`,
},
{
image: eventSchlager,
title: "Schlager Hüttenzauber Karaoke",
date: "27. November - 19:00 Uhr",
description: `
Ab 19:00 Uhr Eintritt ist Frei! Reservieren unter <a href="tel:+41772322770">077 232 27 70</a>
`,
},
{
image: eventAdvent,
title: "Adventskalender",
date: "03. Dezember - 20. Dezember 2025",
description: `
Jeden Tag neue Überraschungen! Check unsere Social Media Stories!
`,
},
{
image: eventFerien,
title: "Weihnachtsferien",
date: "21. Dezember 2025 - 01. Januar 2026",
description: `
Wir sind ab 02.01.2026 wieder wie gewohnt für euch da! 🍀. <br> Für Anfragen WA <a href="tel:+41772322770">077 232 27 70</a> Antwort innerhalb 48h
`,
},
{
image: eventNeujahr,
title: "Neujahrs-Apero",
date: "02. Januar 2026 - 18:00-20:00 Uhr",
description: `
`,
},
];
const images = [
{ src: Gallery7, alt: "Siebtes Bild" },
{ src: Gallery8, alt: "Achtes Bild" },
{ src: Gallery9, alt: "Neuntes Bild" },
{ src: Gallery6, alt: "Sechstes Bild" },
{ src: Gallery1, alt: "Erstes Bild" },
{ src: Gallery2, alt: "Zweites Bild" },
{ src: Gallery3, alt: "Drittes Bild" },
{ src: Gallery4, alt: "Viertes Bild" },
{ src: Gallery5, alt: "Fünftes Bild" },
];
--- ---
<Layout> <Layout>

View File

@ -1,5 +1,5 @@
.Drinks { .Drinks {
font-family: var(--font-family-primary), serif; font-family: var(--font-family-primary);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
@ -15,7 +15,7 @@
.title { .title {
font-size: var(--font-size-large); font-size: var(--font-size-large);
margin-bottom: 1.5rem; margin-bottom: 0.5rem;
font-weight: bold; font-weight: bold;
color: var(--color-text); color: var(--color-text);
text-transform: uppercase; text-transform: uppercase;
@ -25,6 +25,7 @@
.card-link { .card-link {
border: 2px solid var(--color-accent-beige); border: 2px solid var(--color-accent-beige);
padding: 0.75rem 1.5rem; padding: 0.75rem 1.5rem;
margin-top: 2.5rem;
margin-bottom: 2.5rem; margin-bottom: 2.5rem;
color: var(--color-text); color: var(--color-text);
background-color: var(--color-background); background-color: var(--color-background);
@ -68,7 +69,6 @@
align-items: center; align-items: center;
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
padding: 1rem; padding: 1rem;
background-color: rgba(0, 0, 0, 0.2);
border-radius: var(--border-radius); border-radius: var(--border-radius);
width: 80%; width: 80%;
max-width: 300px; max-width: 300px;
@ -81,8 +81,8 @@
} }
.circle { .circle {
height: 9em; height: 35vh;
width: 9em; width: 35vh;
border: 2px solid var(--color-accent-beige); border: 2px solid var(--color-accent-beige);
border-radius: 50%; border-radius: 50%;
margin: 0.5rem; margin: 0.5rem;
@ -94,6 +94,7 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
cursor: pointer; cursor: pointer;
overflow: hidden;
} }
.circle:hover { .circle:hover {
@ -109,12 +110,25 @@
text-align: center; text-align: center;
transition: opacity var(--transition-standard); transition: opacity var(--transition-standard);
position: absolute; position: absolute;
z-index: 2;
} }
.circle:hover .circle-label { .circle:hover .circle-label {
opacity: 1; opacity: 1;
} }
.circle-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
border-radius: 50%;
z-index: 1;
}
.circle-row { .circle-row {
display: flex; display: flex;
justify-content: center; justify-content: center;
@ -149,10 +163,6 @@
width: 90%; width: 90%;
} }
.circle {
height: 5em;
width: 5em;
}
.circle-label { .circle-label {
font-size: 0.7rem; font-size: 0.7rem;

View File

@ -1,7 +1,7 @@
.hover-card { .hover-card {
position: relative; position: relative;
width: 400px; width: 25rem;
height: 400px; height: 25rem;
border-radius: var(--border-radius); border-radius: var(--border-radius);
background-color: var(--color-accent-green); background-color: var(--color-accent-green);
box-shadow: var(--box-shadow); box-shadow: var(--box-shadow);
@ -12,8 +12,28 @@
flex-direction: column; flex-direction: column;
} }
.hover-card:hover { /* Hover effects only for devices that support hover */
transform: translateY(-5px); @media (hover: hover) and (pointer: fine) {
.hover-card:hover {
transform: translateY(-5px);
}
.hover-card:hover .hover-text {
opacity: 1;
}
.hover-card:hover .card-image {
opacity: 0.1;
}
}
.card-title {
padding: 15px 15px 5px 15px;
margin: 0;
color: var(--color-accent-beige);
font-size: var(--font-size-medium);
text-align: center;
order: -2;
} }
.card_date { .card_date {
@ -84,11 +104,12 @@
scrollbar-color: var(--color-accent-beige) rgba(0, 0, 0, 0.1); scrollbar-color: var(--color-accent-beige) rgba(0, 0, 0, 0.1);
} }
.hover-card:hover .hover-text { /* Active state for mobile tap functionality */
.hover-card.active .hover-text {
opacity: 1; opacity: 1;
} }
.hover-card:hover .card-image { .hover-card.active .card-image {
opacity: 0.1; opacity: 0.1;
} }
@ -101,5 +122,34 @@
.hover-card { .hover-card {
width: 100%; width: 100%;
max-width: 350px; max-width: 350px;
/* Maintain square aspect ratio */
aspect-ratio: 1 / 1;
height: auto;
/* Add cursor pointer to indicate it's clickable */
cursor: pointer;
}
/* Add visual feedback for tap */
.hover-card:active {
transform: scale(0.98);
}
.hover-card::after {
position: absolute;
bottom: 10px;
right: 10px;
background-color: rgba(0, 0, 0, 0.7);
color: var(--color-accent-beige);
font-size: 0.7rem;
padding: 4px 8px;
border-radius: 12px;
opacity: 0.8;
pointer-events: none;
z-index: 10;
}
/* Hide the hint when card is active */
.hover-card.active::after {
display: none;
} }
} }