Add www examples

Closes #10
This commit is contained in:
Sasha Koshka 2024-12-11 03:35:28 -05:00
parent b41540e091
commit 9aa1695d53
8 changed files with 147 additions and 0 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 84 KiB

View File

@ -0,0 +1,10 @@
---
Title: Test Page
Extends: theme.step
---
![STEP logo](icon.svg)
If you can see this, it means that `stepd` is working!
This page should be located at `/srv/www-step`. You can place your site in that
directory, and configure it using the step.meta file.

View File

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<title>{{.Child.Title}}</title>
<style>
body {
background-color: #161815;
color: #e2c558;
font-family: monospace;
margin: 2em;
}
body > * {
max-width: 40em;
margin: auto;
}
</style>
</head>
<body>
<main>
<h1>{{.Child.Title}}</h1>
{{.Child.Body | markdownHTML}}
</main>
</body>
</html>

7
examples/www/error.step Normal file
View File

@ -0,0 +1,7 @@
---
Title: Error
Extends: theme.step
---
{{.Data.Status}}: {{statusText .Data.Status}}
{{.Data.Message}}

14
examples/www/index.step Normal file
View File

@ -0,0 +1,14 @@
---
Title: Home
Extends: theme.step
---
Maxime iusto delectus fuga nam fugiat et mollitia qui. Assumenda nemo voluptatem velit. Debitis et id a laborum. Dolor enim ipsum non temporibus fugit. Enim optio voluptas sunt. Quos omnis delectus repudiandae accusamus accusamus perspiciatis eum quasi.
Est alias odit et facilis dolores consequatur odit. Sed et pariatur ut omnis omnis. Doloribus suscipit vel incidunt eum beatae dolor officiis libero.
Repellat sit autem voluptatem ad nobis provident. Magnam cumque veritatis dicta exercitationem quidem ut ut placeat. Est ut harum repellat laudantium et fugiat. Blanditiis similique nobis sed dolorum earum enim. Et consectetur eligendi error consequatur.
Aliquam impedit voluptatem id saepe vel. Nisi et labore minima voluptatum doloribus porro. Eius saepe placeat autem. Qui dolores dolor facilis et autem. Et voluptate molestiae ut est repellat.
Ea sint qui autem temporibus repudiandae est voluptate. Vel in quaerat ut. Voluptatem consequatur tempore tempora assumenda voluptas. Delectus magnam incidunt sunt. Esse ut et iusto nemo.

2
examples/www/step.meta Normal file
View File

@ -0,0 +1,2 @@
http.serve-directories: true
http.error-document: error.step

4
examples/www/style.css Normal file
View File

@ -0,0 +1,4 @@
body {
max-width: 40em;
margin: auto;
}

15
examples/www/theme.step Normal file
View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<title>{{.Child.Title}}</title>
<link rel="stylesheet" href="/style.css">
</head>
<body>
<main>
<h1>{{.Child.Title}}</h1>
{{.Child.Body | markdownHTML}}
</main>
</body>
</html>