initial release
This commit is contained in:
145
index.php
Normal file
145
index.php
Normal file
@@ -0,0 +1,145 @@
|
||||
<?php require_once 'config.php'; ?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>PH Freiburg Bibliothek - Formulare</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="stylesheet" href="<?php echo STATIC_PATH; ?>/styles.css">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@7.4.47/css/materialdesignicons.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<header class="site-header">
|
||||
<div class="container header-inner">
|
||||
<div class="header-left">
|
||||
<img class="logo" src="https://www.ph-freiburg.de/_assets/cc3dd7db45300ecc1f3aeed85bda5532/Images/logo-big-blue.svg" alt="PH Freiburg Logo" />
|
||||
<div class="brand">
|
||||
<div class="brand-title">Bibliothek der Pädagogischen Hochschule Freiburg</div>
|
||||
<div class="brand-sub">Hochschulbibliothek · Semesterapparatsformulare</div>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" id="theme-toggle" class="theme-toggle" aria-label="Switch to dark mode" title="Switch to dark mode">
|
||||
<span class="mdi mdi-theme-light-dark" aria-hidden="true"></span>
|
||||
</button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="container">
|
||||
<section class="landing-hero">
|
||||
<h1>Willkommen</h1>
|
||||
<p class="hero-subtitle">Bitte wählen Sie den gewünschten Service:</p>
|
||||
</section>
|
||||
|
||||
<div class="service-grid">
|
||||
<a href="semesterapparat.php" class="service-card">
|
||||
<div class="service-icon">
|
||||
<span class="mdi mdi-book-open-page-variant"></span>
|
||||
</div>
|
||||
<h2>Semesterapparat</h2>
|
||||
<p>Antrag für die Einrichtung eines Semesterapparats</p>
|
||||
<div class="service-arrow">
|
||||
<span class="mdi mdi-arrow-right"></span>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<a href="elsa.php" class="service-card">
|
||||
<div class="service-icon">
|
||||
<span class="mdi mdi-library-shelves"></span>
|
||||
</div>
|
||||
<h2>Elektronischer Semesterapparat (ELSA)</h2>
|
||||
<p>Antrag für die Einrichtung eines elektronischen Semesterapparats</p>
|
||||
<div class="service-arrow">
|
||||
<span class="mdi mdi-arrow-right"></span>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<section class="info-section">
|
||||
<div class="card">
|
||||
<h3>Hinweise</h3>
|
||||
<p>
|
||||
Weitere Informationen zu den Semesterapparaten und elektronischen Angeboten finden Sie auf den Seiten der Hochschulbibliothek.
|
||||
</p>
|
||||
<div class="info-links">
|
||||
<a href="https://www.ph-freiburg.de/bibliothek.html" target="_blank" rel="noopener noreferrer">
|
||||
<span class="mdi mdi-open-in-new"></span> Zur Bibliothek
|
||||
</a>
|
||||
<a href="https://www.ph-freiburg.de/bibliothek/lernen/semesterapparate.html" target="_blank" rel="noopener noreferrer">
|
||||
<span class="mdi mdi-open-in-new"></span> Zu den Semesterapparaten
|
||||
</a>
|
||||
<a href="license.php" target="_blank" rel="noopener noreferrer">
|
||||
<span class="mdi mdi-file-document-outline"></span> Lizenzinformationen
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<div id="success-toast" class="toast <?php echo (defined('DEBUG_SHOW_TOAST') && DEBUG_SHOW_TOAST) || (isset($_GET['success']) && $_GET['success'] === 'true') ? '' : 'hidden'; ?>">
|
||||
<div class="toast-icon">
|
||||
<span class="mdi mdi-check-circle"></span>
|
||||
</div>
|
||||
<div class="toast-content">
|
||||
<div class="toast-title">Erfolgreich gesendet</div>
|
||||
<div class="toast-message">Mail wurde geschickt, Sie erhalten demnächst mehr Informationen</div>
|
||||
</div>
|
||||
<button class="toast-close" onclick="hideSuccessToast()" aria-label="Close">
|
||||
<span class="mdi mdi-close"></span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
(function() {
|
||||
const STORAGE_KEY = 'theme';
|
||||
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||||
const saved = localStorage.getItem(STORAGE_KEY);
|
||||
|
||||
function setTheme(theme) {
|
||||
document.documentElement.setAttribute('data-theme', theme);
|
||||
localStorage.setItem(STORAGE_KEY, theme);
|
||||
const btn = document.getElementById('theme-toggle');
|
||||
if (btn) {
|
||||
const label = theme === 'dark' ? 'Switch to light mode' : 'Switch to dark mode';
|
||||
btn.setAttribute('aria-label', label);
|
||||
btn.title = label;
|
||||
}
|
||||
}
|
||||
|
||||
setTheme(saved || (prefersDark ? 'dark' : 'light'));
|
||||
|
||||
const btn = document.getElementById('theme-toggle');
|
||||
if (btn) {
|
||||
btn.addEventListener('click', () => {
|
||||
const current = document.documentElement.getAttribute('data-theme') === 'dark' ? 'dark' : 'light';
|
||||
setTheme(current === 'dark' ? 'light' : 'dark');
|
||||
});
|
||||
}
|
||||
})();
|
||||
|
||||
function hideSuccessToast() {
|
||||
const toast = document.getElementById('success-toast');
|
||||
toast.classList.remove('show');
|
||||
setTimeout(() => {
|
||||
toast.classList.add('hidden');
|
||||
}, 300);
|
||||
}
|
||||
|
||||
// Show toast and auto-hide
|
||||
(function() {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const debugMode = <?php echo (defined('DEBUG_SHOW_TOAST') && DEBUG_SHOW_TOAST) ? 'true' : 'false'; ?>;
|
||||
|
||||
if (debugMode || urlParams.get('success') === 'true') {
|
||||
const toast = document.getElementById('success-toast');
|
||||
setTimeout(() => toast.classList.add('show'), 10);
|
||||
setTimeout(hideSuccessToast, 20000);
|
||||
|
||||
// Clean URL (only if not in debug mode)
|
||||
if (!debugMode) {
|
||||
const cleanUrl = window.location.pathname;
|
||||
window.history.replaceState({}, document.title, cleanUrl);
|
||||
}
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user