Skip to content

Commit

Permalink
Improve title
Browse files Browse the repository at this point in the history
  • Loading branch information
danaugrs committed Sep 24, 2023
1 parent e141e3a commit f7c5cf5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 4 additions & 2 deletions islands/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { ThemeToggle } from "../components/ThemeToggle.tsx";
import { Graph as LambdaGraph } from "./Graph.tsx";
import { Head, IS_BROWSER } from "$fresh/runtime.ts";

const title = "λ-Calculi Expression Visualizer";

const prettifyExpr = (expr: string) => expr.replaceAll("\\", "λ");
const cleanExpr = (expr: string) =>
expr
Expand Down Expand Up @@ -116,7 +118,7 @@ export default function App() {
return (
<>
<Head>
<title>λ-Calculi Expression Visualizer</title>
<title>{title}</title>
</Head>
<div
id="main"
Expand All @@ -129,7 +131,7 @@ export default function App() {
}}
>
<div class="flex flex-row justify-between w-full space-x-1">
<p class="mb-2 text-xl">λ-Calculi Expression Visualizer</p>
<p class="mb-2 text-xl">{title}</p>
<div class="flex flex-row align-center space-x-1">
<a
class="h-8 w-8 flex items-center justify-center rounded border-1"
Expand Down
3 changes: 1 addition & 2 deletions routes/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ export default function App({ Component }: AppProps) {
<head>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>lambda-vis</title>
</head>
<body>
<Component />
</body>
</html>
);
}
}

0 comments on commit f7c5cf5

Please sign in to comment.