Skip to content

Commit

Permalink
feat: add titles to the head
Browse files Browse the repository at this point in the history
  • Loading branch information
xnought committed Feb 9, 2024
1 parent 248a68e commit a84f854
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/png" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Svelte + TS</title>
<title>Venome</title>
</head>
<body>
<div id="app"></div>
Expand Down
Binary file added frontend/public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion frontend/public/vite.svg

This file was deleted.

4 changes: 4 additions & 0 deletions frontend/src/routes/Edit.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
species !== ogSpecies;
</script>

<svelte:head>
<title>Venome Edit {entry ? entry.name : ""}</title>
</svelte:head>

<section class="p-5">
{#if entry}
<div class="w-500 flex flex-col gap-5">
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/routes/Error.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
/* Put stuff here */
</script>

<svelte:head>
<title>Venome Error</title>
</svelte:head>

<div>Error this url doesn't exist</div>

<style>
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/routes/Home.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
/* Put stuff here */
</script>

<svelte:head>
<title>Venome Home</title>
</svelte:head>

<div>home</div>

<style>
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/routes/Login.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
}
</script>

<svelte:head>
<title>Login</title>
</svelte:head>

<form on:submit={submitForm} class="flex gap-5 flex-col p-5">
<div>
<Label for="email">Email</Label>
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/routes/Protein.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
});
</script>

<svelte:head>
<title>Venome Protein {entry ? entry.name : ""}</title>
</svelte:head>

<section class="flex gap-10 p-5">
{#if entry}
<div id="left-side">
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/Search.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</script>

<svelte:head>
<title>Search</title>
<title>Venome Search</title>
</svelte:head>

<section>
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/routes/Upload.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
$: file = files ? files[0] : undefined; // we're just concerned with one file
</script>

<svelte:head>
<title>Venome Upload</title>
</svelte:head>

<section class="p-5">
<div class="w-500 flex flex-col gap-5">
<div>
Expand Down

0 comments on commit a84f854

Please sign in to comment.