Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2 from hlassiege/nuxt3
Browse files Browse the repository at this point in the history
Nuxt3
  • Loading branch information
hlassiege committed Nov 10, 2022
2 parents 97168cf + f4302e4 commit 2b90be9
Show file tree
Hide file tree
Showing 349 changed files with 16,894 additions and 34,860 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Expand Up @@ -3,7 +3,7 @@ root = true

[*]
indent_style = space
indent_size = 2
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Expand Up @@ -68,6 +68,12 @@ typings/
# nuxt.js build output
.nuxt

node_modules
*.log*
.nitro
.output


# Nuxt generate
dist

Expand Down
40 changes: 5 additions & 35 deletions README.md
@@ -1,39 +1,9 @@
# NuxtJs Tailwind Blog
# TODO List

Inspired from [timlrx](https://github.com/timlrx/tailwind-nextjs-starter-blog) nextJs Blog
- repair tailwind integration that seems to be broken since nuxt3 and nuxt content v2
=> the tailwind config is not loaded anymore, so, the animation is not working anymore on the home page

This is a nuxtjs, Tailwind CSS blogging template. Its supported Markdown for blog
![Drag Racing](thumbnail.png)
- check syntax highlighting

# Examples/Demo
- repair related articles

- [Demo blog - This repo](https://nuxt-tailwind-blog.netlify.app)

## Build Setup

```bash
# install dependencies
$ npm install

# serve with hot reload at localhost:3000
$ npm run dev

```

For detailed explanation on how things work, check out the [documentation](https://nuxtjs.org).

<a href="https://www.buymeacoffee.com/mdrathik" target="_blank"
><img
src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png"
alt="Buy Me A Coffee"
style="height: 60px !important; width: 217px !important"
/></a>

## Spacial Thanks to :

i made the design inspired from them.
[ansango](https://github.com/ansango/resume) , [einargudni](https://www.einargudni.com/projects) , [leohuynh](https://www.leohuynh.dev)

# Licence

This project can be modified, edited and whatever you want to do. But i wish that you would love to contribute
58 changes: 0 additions & 58 deletions components/AuthorCard.vue

This file was deleted.

78 changes: 50 additions & 28 deletions components/BlogCard.vue
@@ -1,7 +1,7 @@
<template>
<div v-if="isFiltered" class="mb-4 bg-white border border-gray-200 min-h-[400px] border-b-2 border-b-slate-400
hover:drop-shadow-xl hover:border-gray-300 transition-all hover:-translate-y-1">
<nuxt-link class="overflow-hidden " :to="postLink">
<NuxtLink class="overflow-hidden " :to="postLink">
<img
v-if="img"
class="object-cover w-full h-52"
Expand All @@ -14,15 +14,15 @@
src="/images/post-anonymous.jpg"
alt=""
/>
</nuxt-link>
</NuxtLink>
<div class="p-3">
<div class="text-xs text-slate-400 left-2">
{{ formatDate(postDate)}}
</div>
<h5 class="text-lg font-bold ">
<nuxt-link class="overflow-hidden " :to="postLink">
<NuxtLink class="overflow-hidden " :to="postLink">
{{ postTitle }}
</nuxt-link>
</NuxtLink>
</h5>

<p class="mt-2 text-[12px] my-3 flex flex-wrap -m-1 ">
Expand All @@ -34,32 +34,54 @@

</div>
</template>
<script>
export default {
name: 'BlogCard',
props: ["title", "description", "date", "slug", "path", "img", "tags", "currentTag"],
emits: ['changeCurrentTag'],
data() {
return {
postTitle: this.title,
postDescription: this.description,
postSlug: this.slug,
postDate: this.date,
postLink: this.path.replace("articles/", ""),
};
},
computed: {
isFiltered() {
return !this.currentTag || (this.tags && this.tags.includes(this.currentTag));
<script setup lang="ts">
const props = defineProps({
title: {
type: String,
required: true,
},
},
methods: {
formatDate(date) {
return new Date(date).toLocaleDateString("fr", {
description: {
type: String,
required: true,
},
date: {
type: String,
required: false,
},
path: {
type: String,
required: true,
},
img: {
type: String,
required: false,
},
tags: {
type: Array,
required: false,
},
currentTag: {
type: String,
required: false,
},
});
const emit = defineEmits(['changeCurrentTag']);
function formatDate(date) {
return new Date(date).toLocaleDateString("fr", {
weekday: 'short', year: 'numeric', month: 'short',
day: 'numeric'
});
},
},
})
}
const isFiltered = computed(() => {
return !props.currentTag || (props.tags && props.tags.includes(props.currentTag));
});
const postTitle = ref(props.title);
const postDate = ref(props.date);
const postLink = ref(props.path.replace("articles/", ""));
</script>

8 changes: 4 additions & 4 deletions components/BlogCardHorizontal.vue
@@ -1,17 +1,17 @@
<template>
<div class="card-lateral mb-4 bg-white border border-gray-200 border-b-2 border-b-slate-400
hover:drop-shadow-xl hover:border-gray-300 transition-all hover:-translate-y-1 flex flex-row">
<nuxt-link class="w-1/4" :to="postLink">
<NuxtLink class="w-1/4" :to="postLink">
<img class="object-cover w-56 h-56" :src="'/images/' + img" :alt="postTitle"/>
</nuxt-link>
</NuxtLink>
<div class="p-3 w-3/4 my-auto">
<div class="text-xs text-slate-400 left-2">
{{ formatDate(postDate) }}
</div>
<h5 class="text-lg font-bold ">
<nuxt-link class="overflow-hidden " :to="postLink">
<NuxtLink class="overflow-hidden " :to="postLink">
{{ postTitle }}
</nuxt-link>
</NuxtLink>
</h5>

<p class="mt-2 text-[12px] my-3 flex flex-wrap -m-1 ">
Expand Down
76 changes: 0 additions & 76 deletions components/Expertise.vue

This file was deleted.

2 changes: 1 addition & 1 deletion components/HeroSection.vue
Expand Up @@ -11,7 +11,7 @@
</section>
</template>
<script>
import heroThree from "@/plugins/hero-three";
import heroThree from "@/sources/hero-three";
export default {
name: 'HeroSection',
Expand Down
2 changes: 1 addition & 1 deletion components/TheHeader.vue
Expand Up @@ -132,7 +132,7 @@ export default {
text-decoration: none;
@apply block text-base font-medium px-3 ;
&.nuxt-link-exact-active {
&.NuxtLink-exact-active {
&::after {
left: 0;
Expand Down

0 comments on commit 2b90be9

Please sign in to comment.