mirror of
https://github.com/nullishamy/ferri.git
synced 2025-06-28 00:54:17 +00:00
fix: misc cleanup
This commit is contained in:
parent
90be7d570e
commit
fafaf243c5
13 changed files with 640 additions and 750 deletions
19
ferri-server/templates/_layout.html
Normal file
19
ferri-server/templates/_layout.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<base href="https://ferri.amy.mov/admin/">
|
||||
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>{% block title %}{% endblock %}</title>
|
||||
|
||||
{%~ block styles ~%} {% endblock ~%}
|
||||
|
||||
<link href="https://cdn.jsdelivr.net/npm/tailwindcss-preflight@1.0.1/preflight.min.css" rel="stylesheet" />
|
||||
<script src="https://unpkg.com/htmx.org@2.0.4"></script>
|
||||
</head>
|
||||
<body>
|
||||
{%~ block content %}{% endblock ~%}
|
||||
</body>
|
||||
</html>
|
|
@ -1,19 +1,45 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<base href="https://ferri.amy.mov/admin/">
|
||||
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Ferri Test</title>
|
||||
|
||||
<link rel="stylesheet" href="https://raw.githubusercontent.com/tailwindlabs/tailwindcss/dbc8023a08964f513c20796e170cb91ce891df3f/packages/tailwindcss/preflight.css">
|
||||
<script src="https://unpkg.com/htmx.org@2.0.4"></script>
|
||||
</head>
|
||||
<body>
|
||||
<button hx-post="clicked" hx-swap="outerHTML">
|
||||
Click Me {{ val }}
|
||||
</button>
|
||||
</body>
|
||||
</html>
|
||||
{% extends "_layout.html" %}
|
||||
|
||||
{%- block title -%}
|
||||
Control panel
|
||||
{%- endblock -%}
|
||||
|
||||
{%- block styles -%}
|
||||
<style>
|
||||
main {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
grid-gap: 1rem;
|
||||
padding: 1rem;
|
||||
margin: auto;
|
||||
max-width: 75%;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.grid-section {
|
||||
border: 1px black solid;
|
||||
padding: 0.5rem;
|
||||
border-radius: 0.5rem;
|
||||
}
|
||||
</style>
|
||||
{%- endblock -%}
|
||||
|
||||
{%- block content -%}
|
||||
<main>
|
||||
<div class='grid-section'>
|
||||
<h2>Test</h2>
|
||||
</div>
|
||||
|
||||
<div class='grid-section'>
|
||||
<h2>Test</h2>
|
||||
</div>
|
||||
|
||||
<div class='grid-section'>
|
||||
<h2>Test</h2>
|
||||
</div>
|
||||
|
||||
<div class='grid-section'>
|
||||
<h2>Test</h2>
|
||||
</div>
|
||||
</main>
|
||||
{%- endblock -%}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue