mirror of
https://github.com/Snigdha-OS/Snigdha-OS.github.io.git
synced 2025-09-06 04:35:18 +02:00
80 lines
2.0 KiB
Vue
80 lines
2.0 KiB
Vue
<template>
|
|
<div id="project" :key="key" class="lg:mx-5">
|
|
|
|
<span class="flex text-sm my-3">
|
|
<h3 v-if="index == null" class="text-purplefy font-fira_bold mr-3">Project {{ key + 1 }}</h3>
|
|
<h3 v-else class="text-purplefy font-fira_bold mr-3">Project {{ index + 1 }}</h3>
|
|
<h4 class="font-fira_retina text-menu-text"> // {{ project.title }}</h4>
|
|
</span>
|
|
|
|
<div id="project-card" class="flex flex-col">
|
|
<div id="window">
|
|
<div class="absolute flex right-3 top-3">
|
|
<img v-for="tech in project.tech" :key="tech" :src="'/icons/techs/filled/' + tech + '.svg'" alt="" class="w-6 h-6 mx-1 hover:opacity-75">
|
|
</div>
|
|
<img id="showcase" :src="project.img" alt="" class="">
|
|
</div>
|
|
|
|
<div class="pb-8 pt-6 px-6 border-top">
|
|
<p class="text-menu-text font-fira_retina text-sm mb-5">
|
|
{{ project.description }}
|
|
</p>
|
|
<a id="view-button" :href="project.url" target="_blank" class="text-white font-fira_retina py-2 px-4 w-fit text-xs rounded-lg">
|
|
view-project
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
const { project, key, index } = defineProps(['project', 'key', 'index'])
|
|
</script>
|
|
|
|
<style scoped>
|
|
#project {
|
|
min-width: 400px;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
#project-card {
|
|
border: 1px solid #1E2D3D;
|
|
background-color: #011221;
|
|
border-radius: 15px;
|
|
max-width: 400px;
|
|
}
|
|
|
|
#window {
|
|
max-height: 120px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#showcase {
|
|
border-top-right-radius: 15px;
|
|
border-top-left-radius: 15px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
#project {
|
|
min-width: 100%;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
#project {
|
|
width: 100%;
|
|
min-width: 100%;
|
|
padding-inline: 5px;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 1350px) {
|
|
#project {
|
|
width: 100%;
|
|
min-width: 100%;
|
|
padding-inline: 20px;
|
|
}
|
|
}
|
|
|
|
</style> |