generated from openpeeps/pistachio
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: George Lemon <[email protected]>
- Loading branch information
1 parent
8813b98
commit f7eb583
Showing
3 changed files
with
28 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,20 @@ html | |
meta name="viewport" content="width=device-width, initial-scale=1" | ||
title: "Tim Engine is Awesome" | ||
link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" | ||
link rel="preconnect" href="https://fonts.googleapis.com" | ||
link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="" | ||
link href="https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap" rel="stylesheet" | ||
style: " | ||
body { | ||
background-color: #212121; | ||
color: whitesmoke | ||
} | ||
|
||
body, h1, h2, h3, h4, h5, h6, | ||
.h1, .h2, .h3, .h4, .h5, .h6{ | ||
font-family: 'Inter', sans-serif; | ||
} | ||
|
||
.btn-primary { | ||
--bs-btn-color: #fff; | ||
--bs-btn-bg: #ea4444; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,28 @@ | ||
section > div.container > div.row.vh-100.align-items-center > div#content-zone.col-lg-7.mx-auto | ||
section.pt-5 > div.container > div.row > div#content-zone.col-lg-7.mx-auto | ||
div.text-center > img src="https://raw.githubusercontent.com/openpeeps/tim/main/.github/timengine.png" alt="Tim Engine" width="200px" | ||
h1.display-4.fw-bold: | ||
"This is Tim 👋 A super fast template engine for cool kids!" | ||
p.mb-4.h4.fw-normal.px-4 style="line-height: 1.8em": | ||
"Build sleek, dynamic websites and apps in a breeze with Tim Engine's intuitive | ||
syntax and powerful features. It's the template engine that keeps up with your creativity." | ||
div.text-center | ||
div.my-3 | ||
"Build sleek, dynamic websites and apps in a breeze with Tim Engine's intuitive syntax and powerful features. It's the template engine that keeps up with your creativity." | ||
div.row > div.col-12.text-center | ||
div.my-3#clickable | ||
@include "btn" | ||
div | ||
p.mb-0: "Made by Humans from OpenPeeps" | ||
p: "© " & $app.year & " Open Source | LGPLv3 License" | ||
div.text-center | ||
p.mb-0: "© " & $app.year & " — Made by Humans from OpenPeeps" | ||
p: "Open Source | LGPL-3.0 license" | ||
|
||
@client target="#content-zone" | ||
@client target="#clickable" | ||
// transpile tim code to javascript for client-side rendering | ||
div.mt-3 > a.text-secondary.text-decoration-none href="https://hetzner.cloud/?ref=Hm0mYGM9NxZ4" | ||
small | ||
span: "👉 Create a VPS using our link and 👇 " | ||
br | ||
span: "Get €20 in cloud credits from Hetzner" | ||
@end | ||
|
||
@js | ||
const watchout = new WebSocket('ws://127.0.0.1:6502/ws'); | ||
var lastTimeModified = localStorage.getItem('watchout') || 0 | ||
watchout.addEventListener('message', () => location.reload()) | ||
{ | ||
const watchout = new WebSocket('ws://127.0.0.1:6502/ws'); | ||
watchout.addEventListener('message', () => location.reload()); | ||
} | ||
@end |