Skip to content

Commit be9811a

Browse files
committed
Add Homepage console emblem
1 parent 82d5fba commit be9811a

5 files changed

Lines changed: 38 additions & 1 deletion

File tree

client/stylesheets/application.sass

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
@import 'structures/checklist'
4242
@import 'structures/console'
4343
@import 'structures/course'
44+
@import 'structures/emblem'
4445
@import 'structures/errorHero'
4546
@import 'structures/footer'
4647
@import 'structures/header'

client/stylesheets/foundation/_config.sass

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ $b-borderStyle: solid
147147
$b-borderWidth: 2px
148148
$b-borderWidth-s: 1px
149149
$b-borderWidth-l: 4px
150+
$b-borderWidth-xl: 8px
150151
$b-border: $b-borderWidth $b-borderStyle $c-border
151152
$b-border-s: $b-borderWidth-s $b-borderStyle $c-border
152153
$b-border-l: $b-borderWidth-l $b-borderStyle $c-border
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// *************************************
2+
//
3+
// Emblem
4+
// -> Fixed badge
5+
//
6+
// -------------------------------------
7+
// Template (Haml)
8+
// -------------------------------------
9+
//
10+
// .emblem
11+
// .emblem-item
12+
//
13+
// *************************************
14+
15+
.emblem
16+
position: relative
17+
padding-top: $b-space-l + 1 // FIXME: Magic number!
18+
19+
// -------------------------------------
20+
// Scaffolding
21+
// -------------------------------------
22+
23+
// ----- Item ----- //
24+
25+
.emblem-item
26+
border-radius: 50%
27+
border: $b-borderWidth-xl $b-borderStyle $c-text-invert
28+
left: 50%
29+
position: absolute
30+
top: -$b-space-l
31+
transform: translateX(-50%)
32+

public/images/img-console.svg

Lines changed: 1 addition & 0 deletions
Loading

views/partials/_hero_console.jade

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
.card.inlineConsole-card.pal--m.tac
1+
.card.inlineConsole-card.emblem.pal--m.tac
2+
img.emblem-item(src='/images/img-console.svg')
3+
24
h3.h.h--2.h--light Ready to try JavaScript?
35

46
p.tfh.tss

0 commit comments

Comments
 (0)