diff options
| author | Syndamia <kamen@syndamia.com> | 2025-01-19 21:35:01 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2025-01-19 21:35:01 +0200 |
| commit | d4aa1cf1a9a4051a8b962f1321e901a8d6a6589b (patch) | |
| tree | 76837ff247be38a9c00444cf26622999dc44516e /views | |
| parent | 2ee3587ed2be19d2f58c9a90415371fdec4a87e2 (diff) | |
| download | nowayforward_human-d4aa1cf1a9a4051a8b962f1321e901a8d6a6589b.tar nowayforward_human-d4aa1cf1a9a4051a8b962f1321e901a8d6a6589b.tar.gz nowayforward_human-d4aa1cf1a9a4051a8b962f1321e901a8d6a6589b.zip | |
feat(views/archive): Better ui for archives
But not final
Diffstat (limited to 'views')
| -rw-r--r-- | views/archive/index.php | 17 | ||||
| -rw-r--r-- | views/styles.css | 34 |
2 files changed, 48 insertions, 3 deletions
diff --git a/views/archive/index.php b/views/archive/index.php index f96c34f..7aba050 100644 --- a/views/archive/index.php +++ b/views/archive/index.php @@ -5,10 +5,21 @@ ?> <?php if ($page !== null): ?> - <iframe src="<?php echo "/archives/{$page->WID}" ?>"></iframe> + <iframe src="<?php echo "/archives/{$page->WID}" ?>" scrolling="no"></iframe> + <h2>Archives by date:</h2> <?php foreach (Database\Webpage::allArchives($page->URL) as $page): ?> - <section> - <?php echo $page->Date ?> + <section class="item"> + <section> + <div> + <img src="<?php echo "/archives/{$page->WID}/favicon.ico" ?>" class="favicon"> + <a href="<?php echo "/archives/{$page->WID}" ?>"><?php echo $page->URL ?></a> + <span class="float-right"><?php echo $page->Date ?></span> + </div> + <div class="details"> + <span>Visits: <?php echo $page->Visits ?></span> + <span class="float-right"><?php echo Database\User::fromDBuid($page->RequesterUID)->Username ?></span> + </div> + </section> </section> <?php endforeach; ?> diff --git a/views/styles.css b/views/styles.css index 776f97b..d4f61cc 100644 --- a/views/styles.css +++ b/views/styles.css @@ -103,6 +103,12 @@ input[type=submit]:hover { flex: 1; } +iframe { + border: 2px solid var(--foreground-color); + height: 20em; + pointer-events: none; +} + /* Main containers */ header, article { max-width: 60rem; @@ -203,3 +209,31 @@ hr.new-section { .card-blank-afterspace { height: var(--card-expand-with); } + +.item { + border: 2px solid teal; + display: flex; + flex-direction: row; + padding: 0.5em; + border-radius: 0.25em; + font-size: 1.08em; + margin-bottom: 1em; +} + +.item > :first-child { + flex: 1; +} + +.item img { + vertical-align: middle; +} + +.item .favicon { + height: 2em; +} + +.item .details { + font-size: 0.9em; + color: gray; + margin: 0.25em; +} |
