Skip to content

Commit

Permalink
fix: better layout and refresh link
Browse files Browse the repository at this point in the history
  • Loading branch information
sznowicki committed Jan 3, 2024
1 parent 34e629a commit 7b11fd4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
8 changes: 7 additions & 1 deletion dist/static/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,13 @@ body.inspire {
.inspire-entry {
margin: 2rem 0;
width: var(--width-max-content);
box-shadow: -.5rem 0 0 1px var(--color-background), calc(-.5rem - 3px) 0 0 0
box-shadow: -.5rem 0 0 1px var(--color-background), calc(-.5rem - 3px) 0 0 0;

& a {
word-break: break-word;
hyphens: auto;
hyphenate-character: "↵";
}
}

.jump-nav {
Expand Down
2 changes: 1 addition & 1 deletion functions/inspire/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import template from './template.html';
import { getDefaultViewData } from '../../lib/view.js';
import {emitPageView} from '../../lib/plausible.js';
import {renderHtml} from '../../lib/sso-render.js';
import {getRandomBlog} from "../../lib/search.js";
import {getRandomBlog} from '../../lib/search.js';

export const onRequestGet = async (context) => {
emitPageView(context);
Expand Down
3 changes: 2 additions & 1 deletion functions/inspire/template.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{{{ before }}}
<main>
<h1><a href="/">Kukei.eu <br/><span>get inspired</span></a></h1>
<p>Every page load shows one random blog link. <br/> Have fun! Be inspired!</p>
<p>Every page load shows one random blog link. <br/> Have fun!</p>
<p><a href="/inspire">Be inspired!</a></p>
<div class="inspire-entry">
{{#entries}}
<h4>{{ title }}</h4>
Expand Down

0 comments on commit 7b11fd4

Please sign in to comment.