Skip to content

Commit 0a535e2

Browse files
JoeJoe
Joe
authored and
Joe
committed
adding subscribe icon card
1 parent cf1ce25 commit 0a535e2

File tree

4 files changed

+102
-7
lines changed

4 files changed

+102
-7
lines changed

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
rel="stylesheet"
1212
/>
1313
<link
14-
href="https://fonts.googleapis.com/css?family=Poppins&display=swap"
14+
href="https://fonts.googleapis.com/css?family=Alata&display=swap"
1515
rel="stylesheet"
1616
/>
1717
</head>

src/App.vue

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
<template>
22
<Content>
33
<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">
55
<BlogCard />
66
<CoolPieChartCard />
77
<IconProgressCard />
88
<AreaChartCard />
99
<CarouselCard />
1010
<LineChartCard />
1111
<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">
1415
<div class="row">
1516
<div class="col-md-4">
1617
<BlogCard />
@@ -26,7 +27,7 @@
2627
<ProfileImageCard />
2728
</div>
2829
</div>
29-
</div>
30+
</div> -->
3031
</div>
3132
</Content>
3233
</template>
@@ -40,6 +41,7 @@ import AreaChartCard from "./components/cards/AreaChartCard";
4041
import CarouselCard from "./components/cards/CarouselCard";
4142
import LineChartCard from "./components/cards/LineChartCard";
4243
import ProfileImageCard from "./components/cards/ProfileImageCard";
44+
import SubscribeIconCard from "./components/cards/SubscribeIconCard";
4345
4446
require("./assets/css/bootstrap.css");
4547
require("./assets/css/tonicons.css");
@@ -55,15 +57,16 @@ export default {
5557
AreaChartCard,
5658
CarouselCard,
5759
LineChartCard,
58-
ProfileImageCard
60+
ProfileImageCard,
61+
SubscribeIconCard
5962
}
6063
};
6164
</script>
6265

6366
<style>
6467
body {
6568
background: #f3f3f3;
66-
font-family: "Poppins", Helvetica, Arial, sans-serif;
69+
font-family: "Alata", Helvetica, Arial, sans-serif;
6770
-webkit-font-smoothing: antialiased;
6871
-moz-osx-font-smoothing: grayscale;
6972
}
@@ -72,4 +75,8 @@ body {
7275
box-sizing: border-box;
7376
line-height: 1;
7477
}
78+
79+
button {
80+
font-family: "Alata", Helvetica, Arial, sans-serif;
81+
}
7582
</style>

src/components/cards/ProfileImageCard.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const Card = styled.div`
3232
background: #f3f3f3;
3333
box-shadow: 8px 8px 10px #e0e0e0, -2px -2px 15px #ffffff;
3434
overflow: hidden;
35+
margin-bottom: 10rem;
3536
`;
3637
3738
const BackgroundColor = styled.div`
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
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>

0 commit comments

Comments
 (0)