Skip to content

Commit

Permalink
resources page; some tokenisation
Browse files Browse the repository at this point in the history
  • Loading branch information
bdrtsky authored and Tahul committed Jun 16, 2021
1 parent ea4b3d6 commit 868f393
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 25 deletions.
24 changes: 4 additions & 20 deletions nuxtjs.org/components/ContentCardTemplate.vue
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
<template>
<NuxtLink
tag="article"
:to="slug"
class="flex flex-col cursor-pointer shadow rounded-lg overflow-hidden dark:bg-secondary-darkest"
>
<div class="aspect-w-16 aspect-h-9 bg-gray-100 dark:bg-secondary-darker mb-4">
<NuxtLink tag="article" :to="slug" class="cursor-pointer shadow rounded-lg overflow-hidden">
<div class="aspect-w-16 aspect-h-9 bg-gray-100 dark:bg-gray-800 mb-4">
<NuxtImg :src="image" width="864" height="378" :alt="title" />
</div>
<div v-if="tags.length" class="px-4 mb-1">
<span v-for="(tag, i) in tags" :key="tag" class="text-gray-400 dark:text-cloud font-medium text-sm">
<span>{{ tag }}</span>
<span v-if="(i === 0 && tags.length > 1) || i !== tags.length - 1"> – </span>
</span>
</div>
<h1 class="font-bold text-body-xl mb-2 px-4">
<NuxtLink :to="slug">{{ title }}</NuxtLink>
</h1>
<p class="pb-8 px-4 text-gray-500 dark:text-cloud-lighter">{{ description }}</p>
<h1 class="font-bold text-body-xl mb-2 px-4">{{ title }}</h1>
<p class="pb-8 px-4">{{ description }}</p>
<slot name="footer" />
</NuxtLink>
</template>
Expand All @@ -41,10 +29,6 @@ export default defineComponent({
slug: {
type: String,
default: ''
},
tags: {
type: Array,
default: () => []
}
}
})
Expand Down
4 changes: 3 additions & 1 deletion nuxtjs.org/components/HomeCommunity.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
</template>

<template #title>
<SectionTitle class="text-center font-serif">Testimonials</SectionTitle>
<SectionTitle class="text-center font-serif"
>Developers <span class="text-primary italic">Love </span>it</SectionTitle
>
</template>

<template #paragraph>
Expand Down
2 changes: 1 addition & 1 deletion nuxtjs.org/components/MFooterSocialLinks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<ul class="flex items-center space-x-4 xl:space-x-5">
<li v-for="(social, key) in socials" :key="key">
<ALink :href="social.href">
<Component :is="social.icon" class="h-6 w-6 text-gray-400 dark:text-cloud-lighter hover:text-primary" />
<Component :is="social.icon" class="h-6 w-6 text-gray-400 dark:text-secondary-surface hover:text-primary" />
</ALink>
</li>
</ul>
Expand Down
6 changes: 3 additions & 3 deletions nuxtjs.org/content/resources.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
template: page
layout:
fluid: false
---

::simple-page-hero

title: NuxtJS Resources
description: "Discover a panel of resources made by our partners. By using thoses affiliate resources links, you are helping us to maintain and develop the Open Source Framework."
---
::

::resources-list

resources:
modules:
title: Modules
Expand All @@ -28,4 +28,4 @@ resources:
image: https://source.unsplash.com/user/agk42/1280x720
slug: video-courses
---
::
::

0 comments on commit 868f393

Please sign in to comment.