Refactor styles and imports for consistency and maintainability:
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
- **CSS restructuring**: Moved `styles` folder into `src` for better organization. - **Updated imports**: Adjusted component CSS imports to reflect new paths. - **Component tweaks**: - Increased HoverCard width from `350px` to `400px` for better visual balance. - Adjusted Footer layout: reorganized copyright and added email link. - Modified Drinks circle dimensions (from `6em` to `9em`) for improved design. - **Footer styles**: Changed copyright section's layout with top spacing and border adjustments.
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
import Layout from "../components/Layout.astro";
|
import Layout from "../components/Layout.astro";
|
||||||
import "../../styles/components/ContactForm.css";
|
import "../styles/components/ContactForm.css";
|
||||||
---
|
---
|
||||||
|
|
||||||
<Layout>
|
<Layout>
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
import "../../styles/components/Drinks.css"
|
import "../styles/components/Drinks.css"
|
||||||
|
|
||||||
const { id } = Astro.props;
|
const { id } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|||||||
@ -13,7 +13,7 @@ const { events = [], id }: { events?: Event[]; id?: string } = Astro.props as {
|
|||||||
events?: Event[];
|
events?: Event[];
|
||||||
id?: string;
|
id?: string;
|
||||||
};
|
};
|
||||||
import "../../styles/components/EventsGrid.css";
|
import "../styles/components/EventsGrid.css";
|
||||||
---
|
---
|
||||||
|
|
||||||
<h2 class="section-title">Events</h2>
|
<h2 class="section-title">Events</h2>
|
||||||
|
|||||||
@ -1,14 +1,12 @@
|
|||||||
---
|
---
|
||||||
// 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">
|
||||||
<div class="footer-content">
|
<div class="footer-content">
|
||||||
<div class="copyright">
|
|
||||||
© {currentYear} Gallus Pub. Alle Rechte vorbehalten.
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="footer-sections">
|
<div class="footer-sections">
|
||||||
<div class="footer-section">
|
<div class="footer-section">
|
||||||
@ -24,8 +22,8 @@ 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>Reservierungen via Whatsapp</p>
|
|
||||||
<p><a href="tel:0772322770">077 232 27 70</a></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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="footer-section">
|
<div class="footer-section">
|
||||||
@ -33,12 +31,12 @@ const currentYear = new Date().getFullYear();
|
|||||||
<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>
|
||||||
<br/>
|
<p>Reservierungen via Whatsapp</p>
|
||||||
<p>Gerne öffnen wir auf Anfrage</p>
|
|
||||||
<p>auch ausserhalb unserer</p>
|
|
||||||
<p>Betriebszeiten.</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="copyright">
|
||||||
|
© {currentYear} Gallus Pub. Alle Rechte vorbehalten.
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
// src/components/Header.astro
|
// src/components/Header.astro
|
||||||
const { url } = Astro;
|
const { url } = Astro;
|
||||||
import "../../styles/components/Header.css";
|
import "../styles/components/Header.css";
|
||||||
---
|
---
|
||||||
|
|
||||||
<header class="header">
|
<header class="header">
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
// src/components/Hero.astro
|
// src/components/Hero.astro
|
||||||
import "../../styles/components/Hero.css"
|
import "../styles/components/Hero.css"
|
||||||
|
|
||||||
const { id } = Astro.props;
|
const { id } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
// src/components/HoverCard.astro
|
// src/components/HoverCard.astro
|
||||||
import "../../styles/components/HoverCard.css";
|
import "../styles/components/HoverCard.css";
|
||||||
const { title, description, image = "", date } = Astro.props;
|
const {title, description, image = ""} = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
<article class="hover-card">
|
<article class="hover-card">
|
||||||
@ -9,9 +9,6 @@ const { title, description, image = "", date } = Astro.props;
|
|||||||
<img class="card-image" src={image} alt={title} />
|
<img class="card-image" src={image} alt={title} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h3 class="card-title" set:html={title} />
|
|
||||||
<h4 class="card_date">{date}</h4>
|
|
||||||
|
|
||||||
<div class="hover-text">
|
<div class="hover-text">
|
||||||
<p set:html={description} />
|
<p set:html={description} />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
// src/components/ImageCarousel.astro
|
// src/components/ImageCarousel.astro
|
||||||
import "../../styles/components/ImageCarousel.css";
|
import "../styles/components/ImageCarousel.css";
|
||||||
|
|
||||||
interface Image {
|
interface Image {
|
||||||
src: string;
|
src: string;
|
||||||
|
|||||||
@ -2,9 +2,9 @@
|
|||||||
// src/components/Layout.astro
|
// src/components/Layout.astro
|
||||||
import Header from "./Header.astro";
|
import Header from "./Header.astro";
|
||||||
import Footer from "./Footer.astro";
|
import Footer from "./Footer.astro";
|
||||||
import "../../styles/components/Layout.css"
|
import "../styles/components/Layout.css"
|
||||||
import "../../styles/variables.css"
|
import "../styles/variables.css"
|
||||||
import "../../styles/index.css"
|
import "../styles/index.css"
|
||||||
---
|
---
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
// src/components/Welcome.astro
|
// src/components/Welcome.astro
|
||||||
import "../../styles/components/Welcome.css"
|
import "../styles/components/Welcome.css"
|
||||||
|
|
||||||
const { id } = Astro.props;
|
const { id } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|||||||
@ -81,8 +81,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.circle {
|
.circle {
|
||||||
height: 6em;
|
height: 9em;
|
||||||
width: 6em;
|
width: 9em;
|
||||||
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;
|
||||||
@ -13,9 +13,9 @@
|
|||||||
|
|
||||||
.copyright {
|
.copyright {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-bottom: 2rem;
|
margin-top: 2rem;
|
||||||
padding-bottom: 1rem;
|
padding-top: 1rem;
|
||||||
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-sections {
|
.footer-sections {
|
||||||
@ -1,6 +1,6 @@
|
|||||||
.hover-card {
|
.hover-card {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 350px;
|
width: 400px;
|
||||||
height: 400px;
|
height: 400px;
|
||||||
border-radius: var(--border-radius);
|
border-radius: var(--border-radius);
|
||||||
background-color: var(--color-accent-green);
|
background-color: var(--color-accent-green);
|
||||||
Reference in New Issue
Block a user