popskip/components/ProjectCard.vue

52 lines
998 B
Vue
Raw Normal View History

2019-11-15 10:40:56 +00:00
<template>
<div class="card project-card">
2019-12-04 08:47:59 +00:00
<div class="card-image">
2019-12-04 16:20:29 +00:00
<img :src="require('~/assets/projects/'+codename+'/1.png')"></img>
2019-11-15 10:40:56 +00:00
</div>
2019-12-04 08:47:59 +00:00
<div class="card-content">
<div class="card-title">
2019-12-04 16:20:29 +00:00
<h1><nuxt-link :to="'/projects/'+codename">{{name}}</nuxt-link></h1>
2019-12-04 08:47:59 +00:00
</div>
<div class="card-content my-4">
<p>{{description}}</p>
</div>
<div class="card-footer">
</div>
2019-11-15 10:40:56 +00:00
</div>
</div>
</template>
<script>
export default {
2019-12-04 16:20:29 +00:00
props: [ 'name', 'description', 'codename', 'noimage' ],
2019-11-15 10:40:56 +00:00
}
</script>
<style>
.project-card {
2019-12-04 16:20:29 +00:00
@apply w-full flex flex-col;
min-height: 12rem;
2019-11-15 10:40:56 +00:00
}
@screen md {
.project-card {
2019-12-04 08:47:59 +00:00
@apply flex-row;
2019-11-15 10:40:56 +00:00
}
}
2019-12-04 16:20:29 +00:00
.card-image {
@apply w-full px-2 py-2;
}
@screen md {
.card-image {
@apply w-1/4;
}
}
.card-content {
@apply w-full px-2;
}
@screen md {
.card-content {
@apply w-3/4;
}
}
2019-11-15 10:40:56 +00:00
</style>