From 87f5b01ea58048fa206d34c9e9564d34f13df518 Mon Sep 17 00:00:00 2001 From: Ben Brown <9870007+brownben@users.noreply.github.com> Date: Fri, 1 Mar 2024 18:40:56 +0000 Subject: [PATCH] new buttony link style (with icons) --- frontend/assets/main.css | 6 --- frontend/components/ButtonSmall.vue | 31 ++++++++++++ frontend/components/Event.vue | 57 ++++++++++++----------- frontend/components/LeagueClass.vue | 35 +++++++------- frontend/components/LeagueGroup.vue | 23 ++++----- frontend/components/Result.vue | 21 +++------ frontend/components/Table/Competitors.vue | 7 +-- frontend/pages/leagues/[name]/index.vue | 40 +++++++--------- 8 files changed, 113 insertions(+), 107 deletions(-) create mode 100644 frontend/components/ButtonSmall.vue diff --git a/frontend/assets/main.css b/frontend/assets/main.css index 338312b8..7a7347a9 100644 --- a/frontend/assets/main.css +++ b/frontend/assets/main.css @@ -45,12 +45,6 @@ button { background: var(--main-100, #fae8ff); } -@media print { - @page { - size: A3; - } -} - .theme-purple { --main-50: #fdf4ff; --main-100: #fae8ff; diff --git a/frontend/components/ButtonSmall.vue b/frontend/components/ButtonSmall.vue new file mode 100644 index 00000000..0db611c2 --- /dev/null +++ b/frontend/components/ButtonSmall.vue @@ -0,0 +1,31 @@ + + diff --git a/frontend/components/Event.vue b/frontend/components/Event.vue index dd439410..00abe82d 100644 --- a/frontend/components/Event.vue +++ b/frontend/components/Event.vue @@ -6,6 +6,9 @@ import { GlobeEuropeAfricaIcon as GlobeIcon, PuzzlePieceIcon, TagIcon, + CloudArrowUpIcon, + TrashIcon, + PencilSquareIcon, } from '@heroicons/vue/24/outline' import { displayDate } from '~/utils/date' import type { Event } from '~/api-types' @@ -23,6 +26,9 @@ const resultsLinks = computed(() => (link) => props.event.results_links[link], ), ) +const uploadLink = `/upload/file?event_id=${encodeURIComponent( + props.event.id, +)}&upload_key=${encodeURIComponent(props.event.upload_key ?? '')}` const deleteEvent = async () => { if ( @@ -44,6 +50,7 @@ const deleteEvent = async () => {

{{ event.name }}

+
{{ displayDate(event.date) }} @@ -65,25 +72,26 @@ const deleteEvent = async () => {
+

{{ event.more_information }}

+
- + Results - - + {{ result_type }} - +
+ diff --git a/frontend/components/LeagueClass.vue b/frontend/components/LeagueClass.vue index 3434a408..d42dd9e0 100644 --- a/frontend/components/LeagueClass.vue +++ b/frontend/components/LeagueClass.vue @@ -1,4 +1,9 @@