Skip to content

Commit

Permalink
Merge pull request #9 from Yaty/dev
Browse files Browse the repository at this point in the history
v1.0.2
  • Loading branch information
Yaty authored Sep 22, 2017
2 parents c777987 + db9c96c commit 408cbd8
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 14 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "A Vue.js project",
"author": "Hugo Da Roit <[email protected]>",
"private": true,
"private": false,
"scripts": {
"dev": "node build/dev-server.js",
"start": "node build/dev-server.js",
Expand All @@ -19,7 +19,7 @@
"vue": "^2.3.3",
"vue-i18n": "^7.2.0",
"vue-lazyload": "^1.1.3",
"vue-scrollto": "^2.7.7"
"vue-scrollto": "^2.7.8"
},
"devDependencies": {
"@kazupon/vue-i18n-loader": "^0.2.1",
Expand Down
17 changes: 5 additions & 12 deletions src/components/Opensource.vue
Original file line number Diff line number Diff line change
@@ -1,26 +1,19 @@
<template>
<container id="opensource">
<h2 class="title">{{ $t('opensource') }}</h2>
<div class="columns is-centered">
<div class="column is-narrow">
<a class="image is-128x128" aria-label="Buefy" rel="noopener" href="https://github.com/rafaelpimpa/buefy" target="_blank">
<img aria-label="Buefy" v-lazy="buefy"/>
</a>
</div>
<div class="columns is-centered is-8 is-variable">
<image-column label="Buefy" link="https://github.com/rafaelpimpa/buefy" img="/static/img/buefy.png"></image-column>
<image-column label="Vue" link="https://github.com/vuejs/vue" img="/static/img/vue.svg"></image-column>
</div>
</container>
</template>

<script>
import Container from './layout/Container.vue'
import ImageColumn from './layout/ImageColumn.vue'
export default {
name: 'opensource',
components: { Container },
data () {
return {
buefy: '/static/img/buefy.png'
}
}
components: { Container, ImageColumn }
}
</script>
30 changes: 30 additions & 0 deletions src/components/layout/ImageColumn.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<template>
<div class="column is-narrow">
<a :aria-label="label" rel="noopener" :href="link" target="_blank">
<img :aria-label="label" v-lazy="img"/>
</a>
</div>
</template>

<script>
export default {
name: 'imagecolumn',
props: ['img', 'label', 'link']
}
</script>

<style scoped>
a {
display: block;
width: 128px;
height: 128px;
}
img {
-webkit-transform: translate(0%, 50%);
-moz-transform: translate(0%, 50%);
-ms-transform: translate(0%, 50%);
-o-transform: translate(0%, 50%);
transform: translate(0%, 50%);
}
</style>
1 change: 1 addition & 0 deletions static/img/vue.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 408cbd8

Please sign in to comment.