websӘFacebook ite

This commit is contained in:
Reid 2025-04-29 17:56:59 -07:00
parent f233d9e64f
commit 76543fd220
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
20 changed files with 1051 additions and 96 deletions

1
views/index.handlebars Normal file
View file

@ -0,0 +1 @@
{{> search}}

View file

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/styles/normalize.css">
<link rel="stylesheet" href="/styles/main.css">
<link rel="icon" href="/favicon.png" type="image/png">
<title>amdl - {{title}}</title>
</head>
<body>
{{> header}}
<main>
{{{body}}}
</main>
{{> footer}}
</body>
</html>

View file

@ -0,0 +1,5 @@
<footer>
<a href="https://git.reidlab.pink/reidlab/amdl" target="_blank">source [<code>{{hash}}{{#if dirty}}-dirty{{/if}}</code>]</a>
&middot;
<a href="https://reidlab.pink/socials" target="_blank">need to contact me?</a>
</footer>

View file

@ -0,0 +1,3 @@
<header>
<a href="/"><h1>amdl</h1></a>
</header>

View file

@ -0,0 +1,11 @@
<div class="result">
<div class="result-info">
<img src="{{cover}}" loading="lazy" decoding="async"/>
<div class="result-text">
<h2>{{name}}</h2>
<span class="light">{{#each artists as |artist|}}
{{artist}}{{#unless @last}},{{/unless}}
{{/each}}</span>
</div>
</div>
</div>

View file

@ -0,0 +1,3 @@
<form action="/" method="get">
<input type="search" name="q" placeholder="search for something" value="{{query}}">
</form>

4
views/search.handlebars Normal file
View file

@ -0,0 +1,4 @@
{{> search query=query}}
{{#each results as |result|}}
{{> result name=result.name}}
{{/each}}