File tree 4 files changed +102
-7
lines changed 4 files changed +102
-7
lines changed Original file line number Diff line number Diff line change 11
11
rel ="stylesheet "
12
12
/>
13
13
< link
14
- href ="https://fonts.googleapis.com/css?family=Poppins &display=swap "
14
+ href ="https://fonts.googleapis.com/css?family=Alata &display=swap "
15
15
rel ="stylesheet "
16
16
/>
17
17
</ head >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<Content >
3
3
<div class =" row" >
4
- <!-- < div class="col-md-6 offset-md-3">
4
+ <div class =" col-sm-6 offset-sm-3 col-md-6 offset-md-3" >
5
5
<BlogCard />
6
6
<CoolPieChartCard />
7
7
<IconProgressCard />
8
8
<AreaChartCard />
9
9
<CarouselCard />
10
10
<LineChartCard />
11
11
<ProfileImageCard />
12
- </div> -->
13
- <div class =" col-md-10 offset-md-1" >
12
+ <SubscribeIconCard />
13
+ </div >
14
+ <!-- <div class="col-md-10 offset-md-1">
14
15
<div class="row">
15
16
<div class="col-md-4">
16
17
<BlogCard />
26
27
<ProfileImageCard />
27
28
</div>
28
29
</div>
29
- </div >
30
+ </div> -->
30
31
</div >
31
32
</Content >
32
33
</template >
@@ -40,6 +41,7 @@ import AreaChartCard from "./components/cards/AreaChartCard";
40
41
import CarouselCard from " ./components/cards/CarouselCard" ;
41
42
import LineChartCard from " ./components/cards/LineChartCard" ;
42
43
import ProfileImageCard from " ./components/cards/ProfileImageCard" ;
44
+ import SubscribeIconCard from " ./components/cards/SubscribeIconCard" ;
43
45
44
46
require (" ./assets/css/bootstrap.css" );
45
47
require (" ./assets/css/tonicons.css" );
@@ -55,15 +57,16 @@ export default {
55
57
AreaChartCard,
56
58
CarouselCard,
57
59
LineChartCard,
58
- ProfileImageCard
60
+ ProfileImageCard,
61
+ SubscribeIconCard
59
62
}
60
63
};
61
64
</script >
62
65
63
66
<style >
64
67
body {
65
68
background : #f3f3f3 ;
66
- font-family : " Poppins " , Helvetica , Arial , sans-serif ;
69
+ font-family : " Alata " , Helvetica , Arial , sans-serif ;
67
70
-webkit-font-smoothing : antialiased ;
68
71
-moz-osx-font-smoothing : grayscale ;
69
72
}
72
75
box-sizing : border-box ;
73
76
line-height : 1 ;
74
77
}
78
+
79
+ button {
80
+ font-family : " Alata" , Helvetica , Arial , sans-serif ;
81
+ }
75
82
</style >
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ const Card = styled.div`
32
32
background: #f3f3f3;
33
33
box-shadow: 8px 8px 10px #e0e0e0, -2px -2px 15px #ffffff;
34
34
overflow: hidden;
35
+ margin-bottom: 10rem;
35
36
` ;
36
37
37
38
const BackgroundColor = styled .div `
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <Card >
3
+ <Pricetag >
4
+ £25/month
5
+ </Pricetag >
6
+ <Icon class =" ti-Line-Heart" />
7
+ <Value >3,642 Likes</Value >
8
+ <DateRange >This week</DateRange >
9
+ <Description >
10
+ Now kickstart with your next design. Subscribe today and save $20/month
11
+ </Description >
12
+ <CoolButton >Subscribe</CoolButton >
13
+ </Card >
14
+ </template >
15
+
16
+ <script >
17
+ import styled from " vue-styled-components" ;
18
+
19
+ const Card = styled .div `
20
+ position: relative;
21
+ overflow: hidden;
22
+ width: 100%;
23
+ padding: 1.5rem;
24
+ border-radius: 0.5rem;
25
+ background: linear-gradient(to right, #4c429a 0%, #9956ce 100%);
26
+ box-shadow: 8px 8px 10px #e0e0e0, -2px -2px 15px #ffffff;
27
+ color: #ffffff;
28
+ margin-bottom: 10rem;
29
+ ` ;
30
+
31
+ const Pricetag = styled .div `
32
+ position: absolute;
33
+ top: 0;
34
+ right: 0;
35
+ font-size: 0.75rem;
36
+ line-height: 2;
37
+ text-align: center;
38
+ border-bottom-left-radius: 0.75rem;
39
+ background: #c322e0;
40
+ padding: 0 0.5rem;
41
+ ` ;
42
+
43
+ const Icon = styled .span `
44
+ font-size: 2.5rem;
45
+ ` ;
46
+
47
+ const Value = styled .div `
48
+ padding-top: 1rem;
49
+ font-size: 2rem;
50
+ font-weight: bold;
51
+ margin-bottom: 1rem;
52
+ ` ;
53
+
54
+ const DateRange = styled .div `
55
+ font-size: 0.875rem;
56
+ margin-bottom: 1rem;
57
+ ` ;
58
+
59
+ const Description = styled .div `
60
+ font-size: 0.825rem;
61
+ line-height: 1.5;
62
+ color: rgba(255, 255, 255, 0.75);
63
+ margin-bottom: 1.25rem;
64
+ ` ;
65
+
66
+ const CoolButton = styled .button `
67
+ height: 2.5rem;
68
+ padding: 0 1rem;
69
+ font-size: 0.875rem;
70
+ border: 0;
71
+ border-radius: 0.375rem;
72
+ background: #c322e0;
73
+ color: #ffffff;
74
+ ` ;
75
+
76
+ export default {
77
+ components: {
78
+ Card,
79
+ Pricetag,
80
+ Icon,
81
+ Value,
82
+ DateRange,
83
+ Description,
84
+ CoolButton
85
+ }
86
+ };
87
+ </script >
You can’t perform that action at this time.
0 commit comments