mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-01-14 20:19:35 +01:00
Implement Works images
This commit is contained in:
BIN
assets/img/skills/AdonisJs.png
Normal file
BIN
assets/img/skills/AdonisJs.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
BIN
assets/img/works/Erisium.png
Normal file
BIN
assets/img/works/Erisium.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
BIN
assets/img/works/Website.png
Normal file
BIN
assets/img/works/Website.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<nuxt-link :to="link">
|
||||
<div
|
||||
class="group home-link h-full duration-500 cursor-pointer flex flex-row justify-between py-3 w-full md:w-96 items-center"
|
||||
class="home-link h-full duration-500 cursor-pointer flex flex-row justify-between py-3 w-full md:w-96 items-center"
|
||||
:class="getColor"
|
||||
>
|
||||
<div class="ml-4">
|
||||
@@ -9,7 +9,7 @@
|
||||
{{ $t(title) }}
|
||||
<slot />
|
||||
</h1>
|
||||
<p class="group-hover:dark:text-white w-5/6 text-gray-900 dark:text-dark-100 text-justify duration-300">{{ $t(description) }}</p>
|
||||
<p class="w-5/6 text-gray-900 dark:text-dark-100 text-justify duration-300">{{ $t(description) }}</p>
|
||||
</div>
|
||||
<div class="mr-10 arrow duration-300">
|
||||
<svg class="inline icon" height="25" width="25" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
@@ -60,6 +60,9 @@ export default {
|
||||
|
||||
<style scoped lang="scss">
|
||||
.home-link:hover {
|
||||
p {
|
||||
@apply dark:etxt-white
|
||||
}
|
||||
.arrow {
|
||||
transform: translateX(15px);
|
||||
}
|
||||
|
||||
@@ -29,6 +29,8 @@ export default {
|
||||
computed: {
|
||||
getColor() {
|
||||
switch (this.color) {
|
||||
case 'red':
|
||||
return 'hover:bg-red-400'
|
||||
case 'orange':
|
||||
return 'hover:bg-orange-400'
|
||||
case 'purple':
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
:class="getColor">
|
||||
<div class="w-full h-full flex flex-col justify-center items-center">
|
||||
<div class="text-center">
|
||||
<img alt="Project Img" class="rounded-md" width="150" :src="'http://localhost:5555/files/' + cover">
|
||||
<img alt="Project Img" class="rounded-md" width="150" :src="require(`@/assets/img/skills/${cover}.png`)">
|
||||
</div>
|
||||
<div class="text-center">
|
||||
<h1 class="md:text-2xl text-lg font-bold">{{ title }}</h1>
|
||||
|
||||
@@ -39,7 +39,13 @@
|
||||
"title": "VueJs",
|
||||
"color": "emerald",
|
||||
"cover": "VueJs",
|
||||
"slug": "VueJs"
|
||||
"slug": "vueJs"
|
||||
},
|
||||
{
|
||||
"title": "AdonisJs",
|
||||
"color": "black",
|
||||
"cover": "AdonisJs",
|
||||
"slug": "adonisjs"
|
||||
},
|
||||
{
|
||||
"title": "Html",
|
||||
|
||||
Reference in New Issue
Block a user