From 1a20721cbb28c17334450e05c6ea3c04af51a6ef Mon Sep 17 00:00:00 2001 From: Esa Kataja Date: Sun, 4 May 2025 16:34:23 +0300 Subject: [PATCH] Add artist review page and components with basic layout and styling --- assets/css/main.css | 19 ++++- components/ArtistListItem.vue | 19 +++++ components/Header.vue | 12 ++++ components/ReviewSlider.vue | 29 ++++++++ layouts/default.vue | 12 +++- layouts/login.vue | 6 ++ pages/index.vue | 10 ++- pages/login.vue | 6 ++ pages/profile.vue | 4 ++ pages/review/[id].vue | 123 +++++++++++++++++++++++++++++++++ server/api/artist.get.ts | 15 ++++ server/api/participants.get.ts | 30 ++++++++ 12 files changed, 281 insertions(+), 4 deletions(-) create mode 100644 components/ArtistListItem.vue create mode 100644 components/Header.vue create mode 100644 components/ReviewSlider.vue create mode 100644 layouts/login.vue create mode 100644 pages/profile.vue create mode 100644 pages/review/[id].vue create mode 100644 server/api/artist.get.ts create mode 100644 server/api/participants.get.ts diff --git a/assets/css/main.css b/assets/css/main.css index a461c50..4c7aaa1 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -1 +1,18 @@ -@import "tailwindcss"; \ No newline at end of file +@import "tailwindcss"; + +.btn-primary { + @apply bg-blue-600 text-white px-4 py-2 rounded; +} + +.btn-secondary { + @apply bg-green-600 text-white px-4 py-2 rounded; +} + +.btn-danger { + @apply bg-red-600 text-white px-4 py-2 rounded; +} + +.btn-disabled { + @apply bg-gray-400 text-white px-4 py-2 rounded; +} + \ No newline at end of file diff --git a/components/ArtistListItem.vue b/components/ArtistListItem.vue new file mode 100644 index 0000000..b9086c4 --- /dev/null +++ b/components/ArtistListItem.vue @@ -0,0 +1,19 @@ + + + \ No newline at end of file diff --git a/components/Header.vue b/components/Header.vue new file mode 100644 index 0000000..cb46f81 --- /dev/null +++ b/components/Header.vue @@ -0,0 +1,12 @@ + + \ No newline at end of file diff --git a/components/ReviewSlider.vue b/components/ReviewSlider.vue new file mode 100644 index 0000000..ac7a31b --- /dev/null +++ b/components/ReviewSlider.vue @@ -0,0 +1,29 @@ + + + + + \ No newline at end of file diff --git a/layouts/default.vue b/layouts/default.vue index 4190604..68aed70 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -1,5 +1,13 @@ \ No newline at end of file + + + \ No newline at end of file diff --git a/layouts/login.vue b/layouts/login.vue new file mode 100644 index 0000000..5dab23b --- /dev/null +++ b/layouts/login.vue @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/pages/index.vue b/pages/index.vue index d0bf71c..eb99a53 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,5 +1,13 @@ + + \ No newline at end of file diff --git a/pages/login.vue b/pages/login.vue index e2018aa..97eefd1 100644 --- a/pages/login.vue +++ b/pages/login.vue @@ -1,3 +1,9 @@ + +