Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Oct 18, 2024
1 parent 10df8c7 commit 28ed3c1
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 13 deletions.
8 changes: 4 additions & 4 deletions app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ onMounted(() => {
<NuxtLoadingIndicator />

<AppBanner
id="nuxt-cert-date"
to="https://certificates.dev/nuxt?utm_source=nuxt&utm_medium=website&utm_campaign=affiliate&friend=NUXT"
id="nuxt-ui-pro"
to="https://ui.nuxt.com/pro?utm_source=nuxt&utm_medium=website&utm_campaign=banner"
>
<div class="flex items-center gap-1">
<UIcon
name="i-ph-circle-wavy-check-duotone"
name="i-ph-layout-duotone"
class="w-5 h-5 flex-shrink-0 pointer-events-none hidden sm:inline-block"
/>
<span><span class="hidden lg:inline">Official</span> Nuxt certification (mid-level) is out!</span>
<span>Create beautiful & responsive Nuxt apps with Nuxt UI Pro</span>
<UButton
label="Learn more"
color="white"
Expand Down
11 changes: 6 additions & 5 deletions content/5.video-courses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ description: 'Watch video courses from the community to learn Vue 3 and Nuxt 3.'
navigation.icon: i-ph-graduation-cap
align: center
courses:
- name: 'Mastering Nuxt'
slug: 'mastering-nuxt'
description: 'The complete guide to developing and deploying fast, production-ready Nuxt 3 apps.'
url: 'https://masteringnuxt.com/nuxt3'
badge: Premium
sponsor: true
- name: 'Nuxt 3 Fundamentals'
slug: 'vc-nuxt-3-fundamentals'
description: 'Learn Nuxt 3 fundamentals with VueSchool.'
Expand All @@ -30,11 +36,6 @@ courses:
screenshotOptions:
delay: 1
removeElements: ['tp-yt-iron-overlay-backdrop', 'tp-yt-paper-dialog']
- name: 'Mastering Nuxt'
slug: 'mastering-nuxt'
description: 'The complete guide to developing and deploying fast, production-ready Nuxt 3 apps.'
url: 'https://masteringnuxt.com/nuxt3'
badge: Premium
- name: 'Real World Nuxt 3'
slug: 'vm-real-world-nuxt'
description: 'This is a hands-on course for learning how to build web apps using Nuxt.'
Expand Down
25 changes: 21 additions & 4 deletions pages/video-courses.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,23 @@ defineOgImageComponent('Docs')
<NuxtImg
:src="`/assets/video-courses/${course.slug}.png`"
:alt="course.name"
width="58"
height="32"
:width="course.sponsor ? 96 : 58"

Check failure on line 34 in pages/video-courses.vue

View workflow job for this annotation

GitHub Actions / typecheck

Property 'sponsor' does not exist on type 'VideoCourse'.
:height="course.sponsor ? 64 : 32"

Check failure on line 35 in pages/video-courses.vue

View workflow job for this annotation

GitHub Actions / typecheck

Property 'sponsor' does not exist on type 'VideoCourse'.
format="webp"
:modifiers="{ pos: 'top' }"
:loading="index > 3 ? 'lazy' : undefined"
class="rounded border dark:border-gray-800 object-cover mr-2 hidden lg:block"
/>
<h3 class="text-base font-medium text-gray-700 dark:text-gray-200 flex-grow lg:flex-grow-0">
<h3
class="font-medium text-gray-700 dark:text-gray-200 flex-grow lg:flex-grow-0"
:class="course.sponsor ? 'text-xl' : 'text-base'"

Check failure on line 43 in pages/video-courses.vue

View workflow job for this annotation

GitHub Actions / typecheck

Property 'sponsor' does not exist on type 'VideoCourse'.
>
{{ course.name }}
</h3>
<p class="text-sm dark:text-gray-400 text-gray-500 hidden lg:block flex-grow">
<p
class="dark:text-gray-400 text-gray-500 hidden lg:block flex-grow"
:class="course.sponsor ? 'text-base' : 'text-sm'"

Check failure on line 49 in pages/video-courses.vue

View workflow job for this annotation

GitHub Actions / typecheck

Property 'sponsor' does not exist on type 'VideoCourse'.
>
{{ course.description }}
</p>
<UBadge
Expand All @@ -60,6 +66,17 @@ defineOgImageComponent('Docs')
class="rounded-full"
/>
<UButton
v-if="course.sponsor"

Check failure on line 69 in pages/video-courses.vue

View workflow job for this annotation

GitHub Actions / typecheck

Property 'sponsor' does not exist on type 'VideoCourse'.
:to="course.url"
target="_blank"
trailing-icon="i-ph-arrow-right"
size="2xs"
color="green"
>
Discover course
</UButton>
<UButton
v-else
:to="course.url"
target="_blank"
trailing-icon="i-ph-arrow-right"
Expand Down

0 comments on commit 28ed3c1

Please sign in to comment.