-
- Postnummer App
- - - -Anmeldelser
- - - - \ No newline at end of file diff --git a/frontend/src/main.ts b/frontend/src/main.ts index 7e61020..bbcd96e 100644 --- a/frontend/src/main.ts +++ b/frontend/src/main.ts @@ -188,6 +188,47 @@ function setupSearchBar(zipCodeElement: HTMLParagraphElement) { }); } +function pageRedirects() { + const reviewRedirect = document.getElementById("reviews-redirect")! + const mapRedirect = document.getElementById("map-redirect")! + const mainElement = document.getElementById("main")! + + + reviewRedirect.addEventListener("click", () => { + mainElement.innerHTML = `Anmeldelser
+ ` + const dropdown = document.getElementById("dropdown")!; + dropdown.classList.remove("enabled"); + + }); + + mapRedirect.addEventListener("click", () => { + mainElement.innerHTML = + ` + + + +
+
`
+ const [mousePositionElement, coordsElement, zipCodeElement] = [
+ "#mouse-position",
+ "#coords",
+ "#zip-code",
+ ].map((id) => document.querySelectorPostnummer ikke fundet
+ + +Anmeldelser
+ ` + +}); + +export function addReview(location: string, title: string, content: string, stars: number) { const id = Math.random() * 1000000 reviewContainer.innerHTML += `
@@ -11,4 +19,3 @@ function addReview(location: string, title: string, content: string, stars: numb
`
}
-addReview("Odense", "meget fint pitstop af motorvejen", "en lille sidevej fra motorvejen hvor det bliver serveret god brunsviger, meget fint sted :)", 5)
diff --git a/frontend/style.css b/frontend/style.css
index 279e43b..03573b3 100644
--- a/frontend/style.css
+++ b/frontend/style.css
@@ -89,20 +89,22 @@ body {
transform: scaleY(1);
}
-#dropdown a {
+#dropdown button {
+ border: none;
background-color: var(--brand);
color: var(--light);
padding: 1rem 1rem;
font-weight: bold;
text-decoration: none;
outline: none;
+ cursor: pointer;
}
-#dropdown a:hover, #dropdown a:focus {
+#dropdown button:hover, #dropdown button:focus {
background-color: var(--brand-300);
}
-#dropdown a:last-child {
+#dropdown button:last-child {
border-radius: 0 0 0 5px;
}