thp-web/static/index.html

98 lines
3.8 KiB
HTML
Raw Normal View History

2023-06-25 12:59:18 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>THP: Typed Hypertext Processor</title>
<!-- Tailwind output -->
<link href="/css/out.css" rel="stylesheet">
<link rel="stylesheet" href="/css/xcode-colors.css">
2023-06-25 12:59:18 +00:00
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
2023-07-01 01:00:17 +00:00
<link href="https://fonts.googleapis.com/css2?family=Fira+Sans+Condensed:wght@400;500;600;700;800;900&family=Fugaz+One&family=Inconsolata&family=Inter&display=swap" rel="stylesheet">
2023-09-15 03:15:35 +00:00
<link href="https://fonts.googleapis.com/css2?family=Fira+Code&family=Josefin+Sans:ital,wght@0,400;1,700&display=swap" rel="stylesheet">
2023-06-25 12:59:18 +00:00
</head>
<body class="bg-c-bg text-c-text">
2023-10-02 01:41:38 +00:00
<nav class="sticky top-0 h-16 border-b border-gray-400 bg-[rgba(18,18,18,0.5)] backdrop-blur-md z-20">
<div class="max-w-[70rem] mx-auto h-full w-full flex items-center">
<button class="font-display font-bold italic text-4xl">
<span
class="text-[#F5A9B8]"
>t</span><span>h</span><span class="text-[#5BCEFA]">p</span>
</button>
</div>
</nav>
2023-07-01 01:55:29 +00:00
2023-09-15 03:15:35 +00:00
<div
2023-10-02 01:41:38 +00:00
class="max-w-[70rem] mx-auto py-16 grid grid-cols-2 gap-4"
2023-09-15 03:15:35 +00:00
>
<div>
2023-10-02 01:41:38 +00:00
<h1
class="font-display font-bold italic text-[6rem] leading-tight"
>
2023-09-15 03:15:35 +00:00
Typed
<br>
Hypertext
<br>
Processor
</h1>
<p class="font-display text-3xl pt-4">
Syntax, stdlib and types for PHP
</p>
2023-06-25 12:59:18 +00:00
</div>
2023-09-15 03:15:35 +00:00
<div
2023-10-02 01:41:38 +00:00
class="bg-[var(--code-theme-bg-color)] p-8 rounded-lg relative"
2023-06-25 12:59:18 +00:00
>
2023-10-02 01:41:38 +00:00
<span class="absolute inline-block h-[40rem] w-[40rem] -z-10 top-1/2 left-1/2 rounded-full
transform -translate-x-1/2 -translate-y-1/2"
style="background-image: conic-gradient(from 180deg at 50% 50%,#5BCEFA 0deg,#a853ba 180deg,#F5A9B8 1turn);
filter: blur(75px); opacity: 0.75;"
>
</span>
2023-09-15 03:15:35 +00:00
<svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg>
<br>
2023-10-02 01:41:38 +00:00
<pre style="padding: 0 !important;">
<code class="language-thp">
val person_id = POST::get("person_id") ?: die
match Person::find_by_id(person_id)
| Ok(person)
{
JSON::encode(person)
}
| Err(e)
{
JSON::encode(Obj {"error": e})
}
</code>
</pre>
2023-06-25 12:59:18 +00:00
</div>
</div>
2023-09-15 03:15:35 +00:00
<div
class="max-w-[70rem] mx-auto text-center"
>
<a
class="inline-block font-display text-2xl border-4 border-[#F5A9B8] py-3 px-8 mx-6 rounded"
href="/learn/"
>
Learn
</a>
<a
class="inline-block font-display text-2xl border-4 border-[#5BCEFA] py-3 px-8 mx-6 rounded"
href="/install/"
>
Install
</a>
</div>
2023-10-02 01:41:38 +00:00
<script src="/js/prism.min.js"></script>
<script src="/js/prism.thp.js"></script>
2023-06-25 12:59:18 +00:00
</body>
</html>