News Überschrift und Erstellen Button zentriert
This commit is contained in:
parent
b89714a6e7
commit
07eba7762c
@ -382,6 +382,24 @@ a {
|
||||
.nav-links .links {
|
||||
margin: 0 12px;
|
||||
}
|
||||
.content-container {
|
||||
width: 90vw;
|
||||
max-width: 1200px;
|
||||
margin: 24px auto;
|
||||
padding: 16px 8px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.news-header {
|
||||
text-align: center;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.news-header h2 {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.news-header .admin-btn {
|
||||
margin: 0 auto;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
|
@ -1,10 +1,12 @@
|
||||
<?php if (!empty($news)): ?>
|
||||
<div class="inhalt">
|
||||
<div class="content-container">
|
||||
<h2>Alle Infos</h2>
|
||||
<?php if (isset($_SESSION['is_admin']) && $_SESSION['is_admin']): ?>
|
||||
<a href="?controller=News&do=createNewsForm" class="admin-btn">News erstellen</a>
|
||||
<?php endif; ?>
|
||||
<div class="news-header">
|
||||
<h2>Alle Infos</h2>
|
||||
<?php if (isset($_SESSION['is_admin']) && $_SESSION['is_admin']): ?>
|
||||
<a href="?controller=News&do=createNewsForm" class="admin-btn">News erstellen</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="news-cards">
|
||||
<?php foreach ($news as $item): ?>
|
||||
<div class="card">
|
||||
|
Loading…
x
Reference in New Issue
Block a user