Inital commit
This commit is contained in:
29
includes/footer.php
Normal file
29
includes/footer.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<footer class="footer" id="kontakt">
|
||||
<div class="container footer-grid">
|
||||
<div>
|
||||
<h4>HexaHost</h4>
|
||||
<p>Zuverlässiges Hosting aus Deutschland.</p>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Produkte</h4>
|
||||
<ul>
|
||||
<li><a href="#">VPS</a></li>
|
||||
<li><a href="#">VPC</a></li>
|
||||
<li><a href="#">Webhosting</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Kontakt</h4>
|
||||
<ul>
|
||||
<li><a href="mailto:info@example.de">info@example.de</a></li>
|
||||
<li><a href="#">Impressum</a></li>
|
||||
<li><a href="#">Datenschutz</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="../assets/js/main.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
13
includes/functions.php
Normal file
13
includes/functions.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
function includeHeader(string $pageTitle, string $pageDescription, string $currentPage = 'home'): void
|
||||
{
|
||||
include __DIR__ . '/header.php';
|
||||
}
|
||||
|
||||
function includeFooter(): void
|
||||
{
|
||||
include __DIR__ . '/footer.php';
|
||||
}
|
||||
|
||||
28
includes/header.php
Normal file
28
includes/header.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title><?php echo htmlspecialchars($pageTitle, ENT_QUOTES, 'UTF-8'); ?></title>
|
||||
<meta name="description" content="<?php echo htmlspecialchars($pageDescription, ENT_QUOTES, 'UTF-8'); ?>">
|
||||
<meta name="theme-color" content="#0d0821">
|
||||
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Russo+One&family=Source+Sans+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="../assets/css/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<header class="header">
|
||||
<nav class="nav">
|
||||
<div class="container nav-container">
|
||||
<a href="./index.php" class="brand">HexaHost</a>
|
||||
<ul class="nav-menu">
|
||||
<li><a class="nav-link <?php echo $currentPage === 'home' ? 'active' : ''; ?>" href="./index.php">Home</a></li>
|
||||
<li><a class="nav-link" href="#leistungen">Leistungen</a></li>
|
||||
<li><a class="nav-link" href="#kontakt">Kontakt</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
Reference in New Issue
Block a user