Add initial setup for Gallus_Pub_v1 with Astro
This commit includes a README detailing the Astro starter kit setup and an autogenerated package-lock.json. The setup uses the minimal Astro template, with dependencies like Astro 5.11.0 installed to kickstart the project.
This commit is contained in:
17
Gallus_Pub_v1/src/components/Footer.astro
Normal file
17
Gallus_Pub_v1/src/components/Footer.astro
Normal file
@ -0,0 +1,17 @@
|
||||
---
|
||||
|
||||
---
|
||||
<!-- components/Footer.astro -->
|
||||
<footer>
|
||||
<p>© 2024 Meine Webseite. Alle Rechte vorbehalten.</p>
|
||||
</footer>
|
||||
|
||||
<style>
|
||||
footer {
|
||||
background-color: #333;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
padding: 1rem;
|
||||
margin-top: auto;
|
||||
}
|
||||
</style>
|
||||
71
Gallus_Pub_v1/src/components/Header.astro
Normal file
71
Gallus_Pub_v1/src/components/Header.astro
Normal file
@ -0,0 +1,71 @@
|
||||
<!-- components/Header.astro -->
|
||||
<header>
|
||||
<div class="header-container">
|
||||
<div class="logo-container">
|
||||
<a href="/">
|
||||
<img src="/images/Logo.png" alt="Logo" class="logo">
|
||||
</a>
|
||||
</div>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="/">Startseite</a></li>
|
||||
<li><a href="/contact">Kontakt</a></li>
|
||||
<li><a href="/about">About</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<style>
|
||||
header {
|
||||
background-color: #3C2A26;
|
||||
color: #ffffff;
|
||||
padding: 1rem;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 100;
|
||||
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.header-container {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
nav ul {
|
||||
display: flex;
|
||||
list-style: none;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
nav a {
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
nav a:hover {
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
.logo-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.logo {
|
||||
height: 40px;
|
||||
width: auto;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.logo:hover {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
</style>
|
||||
32
Gallus_Pub_v1/src/pages/index.astro
Normal file
32
Gallus_Pub_v1/src/pages/index.astro
Normal file
@ -0,0 +1,32 @@
|
||||
---
|
||||
import Header from '../components/Header.astro';
|
||||
import Footer from '../components/Footer.astro';
|
||||
import '../../styles/index.css'
|
||||
---
|
||||
|
||||
<html lang="de">
|
||||
<body>
|
||||
<Header />
|
||||
|
||||
<main>
|
||||
<h1>Willkommen auf meiner Webseite</h1>
|
||||
<p>Dies ist der Hauptinhalt der Seite.</p>
|
||||
|
||||
<div class="content-container">
|
||||
<h2>Abschnitt mit besserem Kontrast</h2>
|
||||
<p>Dieser Text ist durch den halbtransparenten Hintergrund besser lesbar.</p>
|
||||
</div>
|
||||
|
||||
<div style="height: 100vh; margin: 2rem 0;">
|
||||
<h2>Abschnitt 1</h2>
|
||||
<p>Inhalt zum Scrollen...</p>
|
||||
</div>
|
||||
|
||||
<div class="content-container">
|
||||
<h2>Abschnitt 2</h2>
|
||||
<p>Mehr Inhalt zum Scrollen...</p>
|
||||
</div>
|
||||
</main>
|
||||
<Footer />
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user