mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-02-03 13:47:53 +01:00
Working
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<nuxt-link :to="`/blog/${slug}`">
|
<nuxt-link :to="`/blog/${slug}`" rel="noreferrer noopener">
|
||||||
<div class="rounded-lg shadow-xl h-116 w-full lg:w-100 text-left bg-gray-100 dark:bg-gray-800 transform hover:scale-103 duration-300 mb-8 lg:mb-0">
|
<div class="rounded-lg shadow-xl h-116 w-full lg:w-100 text-left bg-gray-100 dark:bg-gray-800 transform hover:scale-103 duration-300 mb-8 lg:mb-0">
|
||||||
<div class="h-2/5 post rounded-t-lg"
|
<div class="h-2/5 post rounded-t-lg"
|
||||||
:style="{ backgroundImage: `url(${getBackgroundCover})` }">
|
:style="{ backgroundImage: `url(${getBackgroundCover})` }">
|
||||||
@@ -69,7 +69,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
setup(props: PostHomeProps) {
|
setup(props: PostHomeProps) {
|
||||||
const getBackgroundCover = computed(() => require(`@/assets/images/posts/${props.cover}`))
|
const getBackgroundCover = computed(() => require(`~/assets/images/posts/${props.cover}`))
|
||||||
|
|
||||||
const { i18n } = useContext()
|
const { i18n } = useContext()
|
||||||
const formatDate = computed(() => {
|
const formatDate = computed(() => {
|
||||||
|
|||||||
@@ -19,6 +19,3 @@ export default Vue.extend({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
</style>
|
|
||||||
|
|||||||
@@ -33,7 +33,9 @@ import {Project} from "../../@types/types";
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "index",
|
name: "index",
|
||||||
head: {},
|
head: {
|
||||||
|
title: `Projects - Arthur Danjou`
|
||||||
|
},
|
||||||
setup() {
|
setup() {
|
||||||
const { $content, i18n } = useContext()
|
const { $content, i18n } = useContext()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user