From 1780a67e1f0a03a671c5f42582adfd5973fac927 Mon Sep 17 00:00:00 2001 From: Mikkel Date: Thu, 9 Feb 2023 13:55:25 +0100 Subject: [PATCH] move reviews into global files --- frontend/anmeldelser/style.css | 4 ---- frontend/index.html | 2 +- frontend/{anmeldelser/index.html => reviews.html} | 0 frontend/src/review.ts | 4 +--- frontend/style.css | 5 +++++ 5 files changed, 7 insertions(+), 8 deletions(-) delete mode 100644 frontend/anmeldelser/style.css rename frontend/{anmeldelser/index.html => reviews.html} (100%) diff --git a/frontend/anmeldelser/style.css b/frontend/anmeldelser/style.css deleted file mode 100644 index 5a3acd5..0000000 --- a/frontend/anmeldelser/style.css +++ /dev/null @@ -1,4 +0,0 @@ -#anmeldelser { - display: flex; - justify-content: center; -} \ No newline at end of file diff --git a/frontend/index.html b/frontend/index.html index e14b206..5c2b694 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -33,7 +33,7 @@

Postnummer ikke fundet

- anmeldelser + Anmeldelser

diff --git a/frontend/anmeldelser/index.html b/frontend/reviews.html similarity index 100% rename from frontend/anmeldelser/index.html rename to frontend/reviews.html diff --git a/frontend/src/review.ts b/frontend/src/review.ts index eba1a4e..3a23393 100644 --- a/frontend/src/review.ts +++ b/frontend/src/review.ts @@ -1,6 +1,4 @@ -const reviewContainer = document.getElementById("review-container")! - - +const reviewContainer = document.getElementById("reviews-container")! function addReview(location: string, title: string, content: string, stars: number, ) { const id = Math.random() * 1000000 diff --git a/frontend/style.css b/frontend/style.css index f90ba39..279e43b 100644 --- a/frontend/style.css +++ b/frontend/style.css @@ -219,3 +219,8 @@ code { } } +#reviews-title { + display: flex; + justify-content: center; +} +