Browse Source

Stuff #2

Trying to fix the footer, still needs work
added a few more default images
Added user image to post , on post page.
master
Rick Hays 3 years ago
parent
commit
ae705760c8
No known key found for this signature in database GPG Key ID: F4D11954ECAEF495
  1. 7
      css/gray-matter.css
  2. BIN
      img/graymatter.png
  3. BIN
      img/no-image.jpg
  4. 6
      php/page.php

7
css/gray-matter.css

@ -13,12 +13,12 @@ html {
font-weight: 300;
height: 105%;
margin: 0;
padding: 0;
text-shadow: 0 1px 3px rgb(0 0 0 / 50%);
}
body {
background-color: #333333;
padding-bottom: 2.5em;
}
h1 {
@ -44,6 +44,11 @@ h3, a:link, a:visited {
transition: color 250ms;
}
h6.card-subtitle {
color: #7e7d7e;
font-size: 14px;
}
.home {
margin: 0 0 2.0em 0;
padding: 1.5em 1em 1em 1em;

BIN
img/graymatter.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

BIN
img/no-image.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

6
php/page.php

@ -24,8 +24,10 @@
<?php echo $page->content(); ?>
<h6 class="card-subtitle mb-3 text-muted text-right"><?php echo $page->date(); ?> - <?php echo $L->get('Reading time') . ': ' . $page->readingTime(); ?></h6>
<h6 class="card-subtitle mb-3 text-muted text-right"><?php echo 'Author: ' . $page->username(); ?></h6>
<h6 class="card-subtitle mb-3 text-right"><?php echo $page->date(); ?> - <?php echo $L->get('Reading time') . ': ' . $page->readingTime(); ?></h6>
<h6 class="card-subtitle mb-3 text-right">
<?php echo $page->user('nickname'); ?> &nbsp; <img src="<?php echo ($page->user('profilePicture')?$page->user('profilePicture'):Theme::src('img/no-image.jpg')) ?>" alt="mdo" width="45" height="45" class="rounded-circle">
</h6>
<div class="text-right">
<?php foreach (Theme::socialNetworks() as $key=>$label): ?>

Loading…
Cancel
Save