Skip to content

Commit

Permalink
-> hyperwave
Browse files Browse the repository at this point in the history
  • Loading branch information
tireymorris committed May 1, 2024
1 parent 45c4020 commit bdc6c5a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flapjack 🥞
# hyperwave 🌊

flapjack is a server-side framework for building web applications.
hyperwave is a server-side framework for building web applications.

- fast: Bun and Hono for best-in-class performance
- lightweight: ~20kb payload. Demo loads in a couple seconds even while throttled to 2G.
Expand Down Expand Up @@ -28,7 +28,7 @@ This is the endpoint serving our initial landing page:
```typescript
app.get("/", ({ html }) =>
html(
<Layout title="flapjack 🥞">
<Layout title="hyperwave 🌊">
<section class="flex flex-col gap-8">
<div>
<button
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "flapjack",
"name": "hyperwave",
"version": "1.1.0",
"scripts": {
"build": "bun css && bun build --compile ./src/server.tsx",
Expand Down
5 changes: 2 additions & 3 deletions src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function Layout({ title, children, currentPath }: Props) {
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="flapjack" />
<meta name="description" content="hyperwave" />
<title>{title}</title>
<link
rel="icon"
Expand All @@ -33,9 +33,8 @@ export default function Layout({ title, children, currentPath }: Props) {
<a
href="/"
class="no-underline text-brown-800"
_="on click call alert('flapjack!')"
>
<h1>🥞 flapjack</h1>
<h1>🌊 hyperwave</h1>
</a>
<div class="relative hidden md:block">
<Input class="w-80 bg-white" placeholder="Search ..." />
Expand Down
2 changes: 1 addition & 1 deletion src/components/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function Nav({ currentPath }: { currentPath: string }) {
<Button class="items-start! justify-start! my-4 w-5/6 pl-5 ">
<span class="fixed pl-0.5 text-cream-200">+</span>
<span class="relative left-10 m-0 p-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100 md:opacity-100">
CAKE
Wave
</span>
</Button>
{routes.map((route) => (
Expand Down
4 changes: 2 additions & 2 deletions src/server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ app.use("*", logger());
app.get("/", (c) => c.redirect("/dashboard"));
app.get("/settings", async ({ html }) =>
html(
<Layout title="flapjack | settings" currentPath="/settings">
<Layout title="hyperwave | settings" currentPath="/settings">
Settings go here
</Layout>,
),
);
app.get("/dashboard", async ({ html }) =>
html(
<Layout title="flapjack | dashboard" currentPath="/dashboard">
<Layout title="hyperwave | dashboard" currentPath="/dashboard">
<Button class="w-40" hx-get="/editUser">
Get User Info
</Button>
Expand Down

0 comments on commit bdc6c5a

Please sign in to comment.