members and admins now showing

This commit is contained in:
Chris 2023-10-27 12:39:11 +02:00
parent bb51933dd1
commit 69a4a47b54
2 changed files with 70 additions and 6 deletions

View File

@ -1,3 +1,55 @@
main > .container {
padding: 60px 15px 0;
}
main>.container {
padding: 60px 15px 0;
}
.tooltipp {
position: relative;
/* making the .tooltipp span a container for the tooltipp text */
border-bottom: 1px dashed #000;
/* little indicater to indicate it's hoverable */
}
.tooltipp:before {
content: attr(data-text);
/* here's the magic */
position: absolute;
/* vertically center */
top: 50%;
transform: translateY(-50%);
/* move to right */
left: 100%;
margin-left: 15px;
/* and add a small left margin */
/* basic styles */
width: 200px;
padding: 10px;
border-radius: 10px;
background: #000;
color: #fff;
text-align: center;
display: none;
/* hide by default */
opacity: 0;
transition: .3s opacity;
}
.tooltipp:hover:before {
display: block;
opacity: 1;
}
.tooltipp:after {
opacity: 0;
transition: .3s;
}
.tooltipp:hover:after {
opacity: 1;
}

View File

@ -41,13 +41,25 @@
</div>
<div class="card p-2">
<?php if($admins && count($admins)>0): ?> <h6>Admins</h6> <?php endif; ?>
<?php foreach($admins as $admin) : ?>
<img src="https://pictshare.net/identicon/<?= $admin['email']?>" height="50" width="50" class="rounded-circle" alt="<?= escape($admin['name']); ?>" data-bs-toggle="tooltip" data-bs-placement="top" title="<?= escape($admin['firstname'].' '.$admin['lastname']); ?>">
<img src="https://pictshare.net/identicon/<?= $admin['email']?>" height="50" width="50" class="rounded-circle" alt="<?= escape($admin['name']); ?>" title="<?= escape($admin['firstname'].' '.$admin['lastname']); ?>">
<?php endforeach; ?>
<?php if($members && count($members)>0): ?> <hr/> <h6>Mitglieder</h6> <?php endif; ?>
<?php foreach($members as $member) : ?>
<img src="https://pictshare.net/identicon/<?= $member['email']?>" height="50" width="50" class="rounded-circle" alt="<?= escape($member['name']); ?>" title="<?= escape($member['firstname'].' '.$member['lastname']); ?>">
<?php endforeach; ?>
</div>
</div>
<div class="col-8" id="sitemain">
<pre><?= escape($tdata['text']); ?></pre>
<div class="col-6" id="sitemain">
<div class="card p-2">
<h4>Beschreibungstext</h4>
<p class="card-text">
<pre><?= escape($tdata['text']); ?></pre>
</p>
</div>
</div>
</div>