-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* add .idea to gitignore * our projects component * assets and template * css to scss trouble * scss trouble update * working scss * corrected newlines * aesthetic stuff * move code to single component * last fixes * after yarn fix * linting
- Loading branch information
1 parent
0b0e214
commit e9ecf19
Showing
6 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<template> | ||
<v-container> | ||
<v-layout row wrap> | ||
<v-flex id="items" v-for="project in projects" xs12 md6 lg4 xl3> | ||
<v-item-group> | ||
<v-hover> | ||
<v-card slot-scope="{ hover }"> | ||
<v-img | ||
:src="project.image" | ||
aspect-ratio="1.9" | ||
></v-img> | ||
<v-expand-transition> | ||
<div v-if="hover" id="card--reveal"> | ||
<v-img | ||
id="hoverd-img" | ||
:src="hoveredImg" | ||
></v-img> | ||
</div> | ||
</v-expand-transition> | ||
</v-card> | ||
</v-hover> | ||
</v-item-group> | ||
</v-flex> | ||
</v-layout> | ||
</v-container> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data() { | ||
return { | ||
hoveredImg: require('@/assets/images/Antu_dialog-icon-preview.svg'), | ||
projects: [ | ||
{ | ||
name: 'Volontulo', | ||
image: require('@/assets/images/volontulo.png') | ||
}, | ||
{ | ||
name: 'Wysadź ulicę', | ||
image: require('@/assets/images/wysadz_ulice.png') | ||
}, | ||
{ | ||
name: 'Bank Empatii', | ||
image: require('@/assets/images/bank_empatii.png') | ||
}, | ||
{ | ||
name: 'Alinka', | ||
image: '' | ||
}, | ||
{ | ||
name: 'Polska Akcja Humanitarna', | ||
image: '' | ||
} | ||
] | ||
}; | ||
} | ||
}; | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
@import './../main.scss'; | ||
#items { | ||
padding: 10px; | ||
} | ||
#card--reveal { | ||
background: $blue; | ||
bottom: 0; | ||
color: $white; | ||
display: flex; | ||
justify-content: center; | ||
opacity: 0.9; | ||
position: absolute; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
#hoverd-img { | ||
max-width: 50%; | ||
} | ||
</style> |