initial commit
This commit is contained in:
commit
2807918e2c
27 changed files with 9772 additions and 0 deletions
56
components/ProjectCard.vue
Normal file
56
components/ProjectCard.vue
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<script setup>
|
||||
const props = defineProps({
|
||||
src: String,
|
||||
href: String,
|
||||
heading: String,
|
||||
description: String
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<a class="image-container" :href="props.href">
|
||||
<img class="image" :src="props.src" :alt="props.heading" style="width:100%;">
|
||||
<div class="content">
|
||||
<h2>{{props.heading}}</h2>
|
||||
<p>{{props.description}}</p>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
</template>
|
||||
|
||||
<style>
|
||||
.image-container{
|
||||
position: relative;
|
||||
text-align: center;
|
||||
margin: 10px;
|
||||
border-radius: 5px;
|
||||
overflow: hidden;
|
||||
color: white;
|
||||
|
||||
}
|
||||
|
||||
.content{
|
||||
position: absolute;
|
||||
bottom: 8px;
|
||||
left: 16px;
|
||||
text-align: left ;
|
||||
}
|
||||
|
||||
.image{
|
||||
filter: brightness(100%) blur(0px);
|
||||
/* filter: blur(2px); */
|
||||
}
|
||||
.content{
|
||||
visibility:hidden;
|
||||
}
|
||||
|
||||
.image-container:hover{
|
||||
.image{
|
||||
filter: brightness(40%) blur(2px);
|
||||
}
|
||||
.content{
|
||||
visibility:visible;
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue