Skip to content

Commit d96efde

Browse files
committed
Cards component.
1 parent c509fbf commit d96efde

4 files changed

Lines changed: 127 additions & 1 deletion

File tree

index.styl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
// Components
2323
@import 'lib/alerts/index';
2424
@import 'lib/buttons/index';
25+
@import 'lib/cards/index';
2526
@import 'lib/breadcrumb/index';
2627
@import 'lib/codemirror/index';
2728
@import 'lib/spinner/index';

landing/templates/components.jade

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,13 @@
101101
p We use this for showing where is the user inside the application.
102102
p Use the <code>.has-homepage</code> modifier to show the home icon before the first element.
103103
+playground({name: "breadcrumb"})
104-
include ../../lib/breadcrumb/demo
104+
include ../../lib/breadcrumb/demo
105+
106+
section
107+
h2#cards Cards
108+
p Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quibusdam, sit?
109+
+playground({name: "cards"})
110+
include ../../lib/cards/demo
105111

106112
section
107113
h2#code-picker Code picker

lib/cards/demo.jade

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
.col-xs-12.col-md-4
2+
article.card
3+
i.card-icon.icon-budicon-499.orange
4+
h2.card-title Getting started
5+
p.card-description Learn how to connect Auth0 to any social provider
6+
.card-links
7+
a.card-link(href="") Applications
8+
a.card-link(href="") Multifactor Authentication
9+
a.card-link(href="") Single Sign On
10+
a.card-more(href="") More
11+
12+
.col-xs-12.col-md-4
13+
article.card
14+
i.card-icon.icon-budicon-342.green
15+
h2.card-title SDKS
16+
p.card-description Learn about all those difficult items that you heard but were
17+
.card-links
18+
a.card-link(href="") Ionic
19+
a.card-link(href="") AngularJs
20+
a.card-link(href="") NodeJs
21+
a.card-more(href="") More
22+
23+
.col-xs-12.col-md-4
24+
article.card
25+
i.card-icon.icon-budicon-546.blue
26+
h2.card-title APIs
27+
p.card-description Learn how to integrate Auth0 with other tools and SaaS
28+
.card-links
29+
a.card-link(href="") Connect Auth0 to your DB
30+
a.card-link(href="") Auth0 & AWS API Gateway
31+
a.card-link(href="") Multi tenants ads with Azure
32+
a.card-more(href="") More

lib/cards/index.styl

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
.card
2+
clearfix()
3+
background-color white
4+
text-align center
5+
padding 0 45px
6+
box-shadow 0 1px 4px 0 #DDD
7+
8+
+breakpoint("desktop", "max")
9+
margin-bottom 30px
10+
11+
.theme-dark &
12+
box-shadow 0 1px 4px 0 black
13+
14+
.card-icon
15+
font-size 18px
16+
display inline-block
17+
margin-top 24px
18+
19+
&.red
20+
color: $color-red
21+
&.blue-light
22+
color: $color-blue-light
23+
&.blue
24+
color: $color-blue
25+
&.yellow
26+
color: $color-yellow
27+
&.orange
28+
color: $color-orange
29+
&.oil
30+
color: $color-oil
31+
&.green
32+
color: $color-green
33+
&.gray
34+
color: $color-gray
35+
&.pink
36+
color: $color-pink
37+
38+
.card-title
39+
font-size 18px
40+
color $color-text-black
41+
margin-top 15px
42+
margin-bottom 24px
43+
44+
.card-description
45+
font-size 12px
46+
color $color-text-light
47+
line-height 1.5em
48+
height 4.5em
49+
margin 0
50+
margin 10px 0 6px 0
51+
52+
.card-links
53+
text-align left
54+
margin-bottom 18px
55+
56+
.card-link
57+
display block
58+
font-size 12px
59+
color $color-text
60+
padding 10px 0
61+
border-bottom 1px solid #DDD
62+
63+
.card-more
64+
float right
65+
margin-bottom 18px
66+
67+
&:after
68+
content ''
69+
display inline-block
70+
width 0
71+
height 0
72+
margin-left 10px
73+
border-top 4px solid transparent
74+
border-right 4px solid transparent
75+
border-bottom 4px solid transparent
76+
border-left 8px solid $link-color
77+
78+
.theme-dark &
79+
border-left-color lighten($link-color, 30%)
80+
81+
&:hover,
82+
&:focus
83+
&:after
84+
border-left-color $link-hover-color
85+
86+
.theme-dark &
87+
border-left-color lighten($link-hover-color, 30%)

0 commit comments

Comments
 (0)