File tree 6 files changed +89
-72
lines changed
6 files changed +89
-72
lines changed Original file line number Diff line number Diff line change 7
7
</v-layout >
8
8
<v-layout
9
9
row
10
- wrap >
10
+ wrap
11
+ justify-space-around
12
+ >
11
13
<v-flex
12
14
v-for =" (community, index) in communities"
13
15
:key =" index"
26
28
</template >
27
29
28
30
<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" ;
31
33
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" ])
44
43
}
44
+ };
45
45
</script >
46
46
47
47
<style lang="stylus" scoped>
48
- .home-communities
49
- & __title
50
- color #00 3e a5
51
- margin 0 auto
52
- font-size 40px
53
- margin-bottom 40px
48
+ .home-communities {
49
+ & __title {
50
+ color : #00 3e a5 ;
51
+ margin : 0 auto ;
52
+ font-size : 40px ;
53
+ margin-bottom : 40px ;
54
+ }
55
+ }
54
56
</style >
55
57
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ export default {
31
31
32
32
<style lang="stylus" scoped>
33
33
.feature-card
34
+ height 95%
34
35
background-color rgba (#f f f , 0.75 )
35
36
margin 10px 20px
36
37
padding 25px
Original file line number Diff line number Diff line change 6
6
<h2 class =" home-features__title" >Open Source Weekends</h2 >
7
7
</v-layout >
8
8
<v-layout
9
- fill-height
10
9
row
11
- wrap >
10
+ wrap
11
+ justify-space-around
12
+ >
12
13
<v-flex
13
14
v-for =" (feature, index) in features"
14
15
:key =" index"
15
- fill-height
16
16
sm12
17
17
md4
18
- class =" text-xs-center" >
18
+ class =" home-features__wrapper text-xs-center" >
19
19
<home-features-card
20
20
:title =" feature.title"
21
21
:icon =" feature.icon"
@@ -49,4 +49,8 @@ import features from '../../db/features.json'
49
49
font-size 40px
50
50
margin-bottom 40px
51
51
52
+ & __wrapper {
53
+ height auto
54
+ }
55
+
52
56
</style >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" guilds-card" >
3
- <v-card >
3
+ <v-card class = " guilds-card__wrapper " >
4
4
<v-img
5
5
:src =" img"
6
6
aspect-ratio =" 2.75"
14
14
</div >
15
15
</v-card-title >
16
16
17
- <v-card-actions >
17
+ <v-card-actions v-if = " github " >
18
18
<v-btn
19
- v-if =" github"
20
19
:href =" github"
21
20
title =" github"
22
21
target =" _blank"
@@ -57,12 +56,16 @@ export default {
57
56
58
57
<style lang="stylus" scoped>
59
58
.guilds-card
59
+ height 95%
60
60
background-color rgba (#f f f , 0.75 )
61
61
margin 10px 20px
62
62
border-radius 3px
63
63
overflow hidden
64
64
box-shadow 0 15px 40px rgba (#0 0 0 , .15 )
65
65
66
+ & __wrapper
67
+ height 100%
68
+
66
69
& __img
67
70
min-height 200px
68
71
Original file line number Diff line number Diff line change 25
25
v-for =" (guild, index) in getGuilds"
26
26
:key =" index"
27
27
sm12
28
- md4 >
28
+ md4
29
+ class =" home-guilds__wrapper" >
29
30
<home-guilds-card
30
31
:title =" guild.name"
31
32
:description =" guild.description"
32
33
:img =" guild.avatar"
33
- :github =" guild.github"
34
- class =" home-guilds__card" />
34
+ :github =" guild.github" />
35
35
</v-flex >
36
36
</v-layout >
37
37
</v-container >
38
38
</template >
39
39
40
40
41
41
<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" ;
44
44
45
+ export default {
46
+ components: {
47
+ HomeGuildsCard
48
+ },
49
+ data () {
50
+ return {};
51
+ },
52
+ computed: {
53
+ ... mapGetters ([" allGuilds" ]),
45
54
46
- export default {
47
- components: {
48
- HomeGuildsCard
49
- },
50
- data () {
51
- return {
55
+ getGuilds () {
56
+ let guilds = [];
52
57
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]);
53
63
}
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
+ }
70
66
}
71
-
67
+ };
72
68
</script >
73
69
74
70
<style lang="stylus" scoped>
75
- .home-guilds
76
- & __title-row
77
- padding-left 20px
78
- margin-bottom 40px
79
- color #f7 f7 f7
71
+ .home-guilds {
72
+ & __title-row {
73
+ padding-left : 20px ;
74
+ margin-bottom : 40px ;
75
+ color : #f7 f7 f7 ;
76
+ }
80
77
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
+ }
85
83
86
- & __icon
87
- font-size 72px
84
+ & __icon {
85
+ font-size : 72px ;
86
+ }
88
87
89
- & __title-wrapper
90
- padding 0 15px
88
+ & __title-wrapper {
89
+ padding : 0 15px ;
90
+ }
91
91
92
- & __title
93
- font-size 40px
92
+ & __title {
93
+ font-size : 40px ;
94
+ }
94
95
96
+ & __wrapper {
97
+ height : auto ;
98
+ }
99
+ }
95
100
</style >
Original file line number Diff line number Diff line change 6
6
</div >
7
7
<v-layout
8
8
row
9
- wrap >
9
+ wrap
10
+ justify-space-around
11
+ >
10
12
<v-flex
11
13
v-for =" (sponsor, index) in sponsors"
12
14
:key =" index"
You can’t perform that action at this time.
0 commit comments