Skip to content

Commit c5c03fd

Browse files
authored
Merge pull request #87 from Jorgeural/feat/78
Retoques aspecto
2 parents 60bc217 + 5129a57 commit c5c03fd

File tree

6 files changed

+89
-72
lines changed

6 files changed

+89
-72
lines changed

src/components/HomeCommunities/Index.vue

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
</v-layout>
88
<v-layout
99
row
10-
wrap>
10+
wrap
11+
justify-space-around
12+
>
1113
<v-flex
1214
v-for="(community, index) in communities"
1315
:key="index"
@@ -26,30 +28,30 @@
2628
</template>
2729

2830
<script>
29-
import HomeCommunitiesCard from '~/components/HomeCommunities/HomeCommunitiesCard.vue'
30-
import { mapGetters } from 'vuex'
31+
import HomeCommunitiesCard from "~/components/HomeCommunities/HomeCommunitiesCard.vue";
32+
import { mapGetters } from "vuex";
3133
32-
33-
export default {
34-
components: {
35-
HomeCommunitiesCard,
36-
},
37-
data() {
38-
return {
39-
}
40-
},
41-
computed: {
42-
...mapGetters( [ 'communities' ] ),
43-
}
34+
export default {
35+
components: {
36+
HomeCommunitiesCard
37+
},
38+
data() {
39+
return {};
40+
},
41+
computed: {
42+
...mapGetters(["communities"])
4443
}
44+
};
4545
</script>
4646

4747
<style lang="stylus" scoped>
48-
.home-communities
49-
&__title
50-
color #003ea5
51-
margin 0 auto
52-
font-size 40px
53-
margin-bottom 40px
48+
.home-communities {
49+
&__title {
50+
color: #003ea5;
51+
margin: 0 auto;
52+
font-size: 40px;
53+
margin-bottom: 40px;
54+
}
55+
}
5456
</style>
5557

src/components/HomeFeatures/HomeFeaturesCard.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export default {
3131

3232
<style lang="stylus" scoped>
3333
.feature-card
34+
height 95%
3435
background-color rgba(#fff, 0.75)
3536
margin 10px 20px
3637
padding 25px

src/components/HomeFeatures/Index.vue

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
<h2 class="home-features__title">Open Source Weekends</h2>
77
</v-layout>
88
<v-layout
9-
fill-height
109
row
11-
wrap>
10+
wrap
11+
justify-space-around
12+
>
1213
<v-flex
1314
v-for="(feature, index) in features"
1415
:key="index"
15-
fill-height
1616
sm12
1717
md4
18-
class="text-xs-center">
18+
class="home-features__wrapper text-xs-center">
1919
<home-features-card
2020
:title="feature.title"
2121
:icon="feature.icon"
@@ -49,4 +49,8 @@ import features from '../../db/features.json'
4949
font-size 40px
5050
margin-bottom 40px
5151
52+
&__wrapper{
53+
height auto
54+
}
55+
5256
</style>

src/components/HomeGuilds/HomeGuildsCard.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="guilds-card">
3-
<v-card>
3+
<v-card class="guilds-card__wrapper">
44
<v-img
55
:src="img"
66
aspect-ratio="2.75"
@@ -14,9 +14,8 @@
1414
</div>
1515
</v-card-title>
1616

17-
<v-card-actions>
17+
<v-card-actions v-if="github">
1818
<v-btn
19-
v-if="github"
2019
:href="github"
2120
title="github"
2221
target="_blank"
@@ -57,12 +56,16 @@ export default {
5756

5857
<style lang="stylus" scoped>
5958
.guilds-card
59+
height 95%
6060
background-color rgba(#fff, 0.75)
6161
margin 10px 20px
6262
border-radius 3px
6363
overflow hidden
6464
box-shadow 0 15px 40px rgba(#000, .15)
6565
66+
&__wrapper
67+
height 100%
68+
6669
&__img
6770
min-height 200px
6871

src/components/HomeGuilds/Index.vue

Lines changed: 48 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -25,71 +25,76 @@
2525
v-for="(guild, index) in getGuilds"
2626
:key="index"
2727
sm12
28-
md4>
28+
md4
29+
class="home-guilds__wrapper">
2930
<home-guilds-card
3031
:title="guild.name"
3132
:description="guild.description"
3233
:img="guild.avatar"
33-
:github="guild.github"
34-
class="home-guilds__card" />
34+
:github="guild.github"/>
3535
</v-flex>
3636
</v-layout>
3737
</v-container>
3838
</template>
3939

4040

4141
<script>
42-
import HomeGuildsCard from '~/components/HomeGuilds/HomeGuildsCard.vue'
43-
import { mapGetters } from 'vuex'
42+
import HomeGuildsCard from "~/components/HomeGuilds/HomeGuildsCard.vue";
43+
import { mapGetters } from "vuex";
4444
45+
export default {
46+
components: {
47+
HomeGuildsCard
48+
},
49+
data() {
50+
return {};
51+
},
52+
computed: {
53+
...mapGetters(["allGuilds"]),
4554
46-
export default {
47-
components: {
48-
HomeGuildsCard
49-
},
50-
data () {
51-
return {
55+
getGuilds() {
56+
let guilds = [];
5257
58+
for (let x = 0; x <= 2; x++) {
59+
let i = Math.random() * (0 - (this.allGuilds.length - 1));
60+
i = Math.round(i);
61+
i = Math.abs(i);
62+
guilds.push(this.allGuilds[i]);
5363
}
54-
},
55-
computed: {
56-
...mapGetters( [ 'allGuilds' ] ),
57-
58-
getGuilds(){
59-
let guilds= []
60-
61-
for(let x=0; x<= 2;x++){
62-
let i = Math.random() * (0 - (this.allGuilds.length -1))
63-
i = Math.round(i)
64-
i = Math.abs(i)
65-
guilds.push(this.allGuilds[i])
66-
}
67-
return guilds
68-
}
69-
},
64+
return guilds;
65+
}
7066
}
71-
67+
};
7268
</script>
7369

7470
<style lang="stylus" scoped>
75-
.home-guilds
76-
&__title-row
77-
padding-left 20px
78-
margin-bottom 40px
79-
color #f7f7f7
71+
.home-guilds {
72+
&__title-row {
73+
padding-left: 20px;
74+
margin-bottom: 40px;
75+
color: #f7f7f7;
76+
}
8077
81-
&__icon-wrapper
82-
display flex
83-
align-items center
84-
justify-content center
78+
&__icon-wrapper {
79+
display: flex;
80+
align-items: center;
81+
justify-content: center;
82+
}
8583
86-
&__icon
87-
font-size 72px
84+
&__icon {
85+
font-size: 72px;
86+
}
8887
89-
&__title-wrapper
90-
padding 0 15px
88+
&__title-wrapper {
89+
padding: 0 15px;
90+
}
9191
92-
&__title
93-
font-size 40px
92+
&__title {
93+
font-size: 40px;
94+
}
9495
96+
&__wrapper {
97+
height: auto;
98+
}
99+
}
95100
</style>

src/components/HomeSponsors/Index.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
</div>
77
<v-layout
88
row
9-
wrap>
9+
wrap
10+
justify-space-around
11+
>
1012
<v-flex
1113
v-for="(sponsor, index) in sponsors"
1214
:key="index"

0 commit comments

Comments
 (0)