website/components/Project.vue

63 lines
984 B
Vue
Raw Normal View History

2023-04-16 20:12:24 +03:00
<template>
<main @click="redirect()">
<i class='bx bx-code-alt'></i>
<div>
<h1>{{ name }}</h1>
<h2>{{ desc }}</h2>
</div>
</main>
</template>
<script>
export default {
props: ["name", "desc", "url"],
methods: {
redirect(e) {
location.href=this.url
2023-04-16 20:12:24 +03:00
}
},
}
</script>
<style scoped>
main {
color: var(--white);
background: var(--dark-two);
display: flex;
flex-direction: row;
align-items: center;
gap: 20px;
padding: 40px;
cursor: pointer;
transition: .4s;
2023-06-11 00:22:06 +03:00
height: 100px;
2023-06-18 19:31:37 +03:00
width: 450px;
2023-04-16 20:12:24 +03:00
}
main:hover{
box-shadow: var(--def-shadow);
}
i{
font-size: 65px;
animation-name: colorAnimation;
animation-duration: 10s;
animation-iteration-count: infinite;
}
h1{
font-size: 35px;
margin-bottom: 10px;
}
h2{
font-size: 25px;
}
2023-06-18 19:31:37 +03:00
@media only screen and (max-width: 1416px) {
2023-04-16 20:12:24 +03:00
main{
2023-06-11 00:22:06 +03:00
width: 80%;
2023-04-16 20:12:24 +03:00
}
}
2023-06-11 00:22:06 +03:00
</style>