diff --git a/components/Tv/TVNavigation.vue b/components/Tv/TVNavigation.vue index deb308f..5e34646 100644 --- a/components/Tv/TVNavigation.vue +++ b/components/Tv/TVNavigation.vue @@ -8,7 +8,6 @@
  • Website
  • Docs
  • Book a Demo
  • -
  • Live
  • page.permalink)); permalinks.push(...resources.map((resource) => `/${resource.type.slug}/${resource.slug}`)); permalinks.push(...team.map((member) => `/team/${member.slug}`)); permalinks.push(...shows.map((show) => `/tv/${show.slug}`)); permalinks.push(...episodes.map((ep) => `/tv/${ep.season.show.slug}/${ep.slug}`)); - permalinks.push(...events.map((ev) => `/tv/live/${ev.slug}`)); // Add RSS feed to prerender permalinks.push('/rss.xml'); diff --git a/pages/tv/index.vue b/pages/tv/index.vue index 54e1016..6c511f9 100644 --- a/pages/tv/index.vue +++ b/pages/tv/index.vue @@ -21,6 +21,10 @@ const { data: categories } = await useAsyncData('tv-categories', () => { ); }); +const { data: live } = await useAsyncData('live-home', () => { + return $directusTv.request($readSingleton('live', { fields: ['title', 'live_link_on_home'] })); +}); + const heroButtons = [ { type: 'primary', @@ -63,6 +67,11 @@ useSeoMeta({ :buttons="heroButtons" /> + + + Now Live: {{ live.title }} + +
    @@ -79,7 +88,27 @@ useSeoMeta({ flex-direction: column; gap: 2rem; } - +.live { + --red: #e35169; + background: var(--red); + border: 1px solid #922637; + color: white; + padding: 1rem; + margin-top: 4rem; + border-radius: var(--rounded-lg); + text-decoration: none; + display: flex; + gap: 0.5rem; + svg { + height: 1.25rem; + margin-top: 2px; + fill: white; + } + .arrow-forward { + --foreground: white; + margin-left: auto; + } +} @media (width > 60rem) { .categories { gap: 4rem; diff --git a/pages/tv/live.vue b/pages/tv/live.vue new file mode 100644 index 0000000..69380d5 --- /dev/null +++ b/pages/tv/live.vue @@ -0,0 +1,221 @@ + + + + + diff --git a/pages/tv/live/[event].vue b/pages/tv/live/[event].vue deleted file mode 100644 index 0cfa00a..0000000 --- a/pages/tv/live/[event].vue +++ /dev/null @@ -1,183 +0,0 @@ - - - - - diff --git a/pages/tv/live/index.vue b/pages/tv/live/index.vue deleted file mode 100644 index f4f72c5..0000000 --- a/pages/tv/live/index.vue +++ /dev/null @@ -1,75 +0,0 @@ - - - - -