summaryrefslogtreecommitdiff
path: root/src/templates
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/base.hbs10
-rw-r--r--src/templates/favicon.svg5
-rw-r--r--src/templates/index.hbs5
-rw-r--r--src/templates/mod.rs2
4 files changed, 17 insertions, 5 deletions
diff --git a/src/templates/base.hbs b/src/templates/base.hbs
index 410a5b2..34f435b 100644
--- a/src/templates/base.hbs
+++ b/src/templates/base.hbs
@@ -42,10 +42,12 @@
flex-direction: column;
background-color: var(--balboa);
padding: 0.5em;
+ color: white;
}
aside button {
font-size: 1em;
+ padding: 0.5em 0.5em;
display: block;
background: none;
border: 0 none;
@@ -61,11 +63,11 @@
padding: 0.5em;
}
- #hidden:target aside {
+ #hidemenu:target aside {
display: none;
}
- #hidden:target a.openMenu {
+ #hidemenu:target a.openMenu {
display: block;
}
@@ -73,7 +75,7 @@
display: none;
}
- #hidden:target a.closeMenu {
+ #hidemenu:target a.closeMenu {
display: none;
}
@@ -148,7 +150,7 @@
</style>
</head>
-<body id="hidden">
+<body id="hidemenu">
<nav>
<a href="/">Index</a>
<a href="#">Parts</a>
diff --git a/src/templates/favicon.svg b/src/templates/favicon.svg
new file mode 100644
index 0000000..4ad400c
--- /dev/null
+++ b/src/templates/favicon.svg
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24">
+ <path fill="#195970" d="M17.5 14.33C18.29 14.33 19.13 14.41 20 14.57V16.07C19.38 15.91 18.54 15.83 17.5 15.83C15.6 15.83 14.11 16.16 13 16.82V15.13C14.17 14.6 15.67 14.33 17.5 14.33M13 12.46C14.29 11.93 15.79 11.67 17.5 11.67C18.29 11.67 19.13 11.74 20 11.9V13.4C19.38 13.24 18.54 13.16 17.5 13.16C15.6 13.16 14.11 13.5 13 14.15M17.5 10.5C15.6 10.5 14.11 10.82 13 11.5V9.84C14.23 9.28 15.73 9 17.5 9C18.29 9 19.13 9.08 20 9.23V10.78C19.26 10.59 18.41 10.5 17.5 10.5M21 18.5V7C19.96 6.67 18.79 6.5 17.5 6.5C15.45 6.5 13.62 7 12 8V19.5C13.62 18.5 15.45 18 17.5 18C18.69 18 19.86 18.16 21 18.5M17.5 4.5C19.85 4.5 21.69 5 23 6V20.56C23 20.68 22.95 20.8 22.84 20.91C22.73 21 22.61 21.08 22.5 21.08C22.39 21.08 22.31 21.06 22.25 21.03C20.97 20.34 19.38 20 17.5 20C15.45 20 13.62 20.5 12 21.5C10.66 20.5 8.83 20 6.5 20C4.84 20 3.25 20.36 1.75 21.07C1.72 21.08 1.68 21.08 1.63 21.1C1.59 21.11 1.55 21.12 1.5 21.12C1.39 21.12 1.27 21.08 1.16 21C1.05 20.89 1 20.78 1 20.65V6C2.34 5 4.18 4.5 6.5 4.5C8.83 4.5 10.66 5 12 6C13.34 5 15.17 4.5 17.5 4.5Z" />
+</svg>
diff --git a/src/templates/index.hbs b/src/templates/index.hbs
index d9b3728..4c07db4 100644
--- a/src/templates/index.hbs
+++ b/src/templates/index.hbs
@@ -1,12 +1,13 @@
{{#> base}}
{{#*inline "main"}}
<aside>
- <a class="closeMenu" href="#hidden">
+ <a class="closeMenu" href="#hidemenu">
<svg style="width: 24px; height: 24px" viewBox="0 0 24 24">
<path fill="#ffffff"
d="M21,15.61L19.59,17L14.58,12L19.59,7L21,8.39L17.44,12L21,15.61M3,6H16V8H3V6M3,13V11H13V13H3M3,18V16H16V18H3Z" />
</svg>
</a>
+
{{#each makes}}
<form action="/">
{{#if (eq this ../selected_make)}}
@@ -43,6 +44,8 @@
</svg>
</a>
+ <h2>Catalog</h2>
+
<section>
<form>
{{#if selected_make}}
diff --git a/src/templates/mod.rs b/src/templates/mod.rs
index 8b8f156..99e3bf3 100644
--- a/src/templates/mod.rs
+++ b/src/templates/mod.rs
@@ -15,3 +15,5 @@ lazy_static! {
handlebars
};
}
+
+pub static FAVICON: &str = include_str!("favicon.svg");