Skip to content

Commit 5d3aa2a

Browse files
committedFeb 16, 2015
Update markup, add bg and a few minor styles
Update markup, add bg and a few minor styles. Signed-off-by: Emanuele Feliziani <feliziani.emanuele@gmail.com>
1 parent def2fbc commit 5d3aa2a

6 files changed

+59
-5
lines changed
 

‎animation.scss

+11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1+
$main: #938F8D;
2+
13
/**************************************************/
24
/*************** animation specific ***************/
35
/**************************************************/
46

7+
.congratulation-container {
8+
color: white;
9+
}
10+
11+
.congratulation-container__undo {
12+
color: $main;
13+
font-size: 12px;
14+
margin-top: 15px;
15+
}

‎index.html

+5-4
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,18 @@
2828
<header>
2929
<a href="http://duplii.com" title="Duplii | We Make Duplication Happen"><img src="http://duplii.com/images/duplii-logo.svg" alt="Duplii | We Make Duplication Happen" class="logo" /></a>
3030
</header>
31-
31+
<div class="bg"></div>
32+
<div class="bg bg-overlay"></div>
3233
<div class="animation-container">
3334
<div class="congratulation-container">
3435
<div class="celebration-container">
3536
<div class="bubble-container bubble-container--left" data-bubble-quantity="8"></div>
3637
<div class="bubble-container bubble-container--right" data-bubble-quantity="8" data-bubble-align="right"></div>
3738
<div class="vertically-center celebration-message">
38-
<h2>Congratulations!</h1>
39-
<h3>Woooo! You scored a sign-up. Keep going strong.</h2>
39+
<h1 class="celebration-title">Congratulations!</h1>
40+
<p class="celebration-body">Woooo! You scored a sign-up. Keep going strong.</p>
4041
<button class="btn btn-orange btn-big modal-button--show-next">Confirm</button>
41-
<a href="#">Ops, sorry. I got it wrong. Undo.</a>
42+
<a href="#" class="congratulation-container__undo">Click here to undo.</a>
4243
</div>
4344
</div>
4445
</div>

‎public/animation.css

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
/**************************************************/
22
/*************** animation specific ***************/
3-
/**************************************************/
3+
/**************************************************/
4+
.congratulation-container {
5+
color: white; }
6+
7+
.congratulation-container__undo {
8+
color: #938F8D;
9+
font-size: 12px;
10+
margin-top: 15px; }

‎public/duplii-funnel-preview.png

321 KB
Loading

‎public/style.css

+17
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,20 @@ a {
2424

2525
.animation-container {
2626
margin: 70px auto 100px; }
27+
28+
/* This simulates our background. It's blurred with css because I wanted to check whether this impacted performance. It looks like it's not a problem. */
29+
.bg {
30+
position: fixed;
31+
top: -30px;
32+
left: -30px;
33+
right: -30px;
34+
bottom: -30px;
35+
background-image: url('duplii-funnel-preview.png');
36+
background-size: cover;
37+
-webkit-filter: blur(7px);
38+
z-index: -2; }
39+
40+
.bg-overlay {
41+
background-image: none;
42+
background-color: rgba(0, 0, 0, 0.8);
43+
z-index: -1; }

‎style.scss

+18
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,21 @@ a {
4141
margin: 70px auto 100px;
4242
}
4343

44+
/* This simulates our background. It's blurred with css because I wanted to check whether this impacted performance. It looks like it's not a problem. */
45+
.bg {
46+
position: fixed;
47+
top: -30px;
48+
left: -30px;
49+
right: -30px;
50+
bottom: -30px;
51+
background-image: url('duplii-funnel-preview.png');
52+
background-size: cover;
53+
-webkit-filter: blur(7px);
54+
z-index: -2;
55+
}
56+
57+
.bg-overlay {
58+
background-image: none;
59+
background-color: rgba(0, 0, 0, .8);
60+
z-index: -1;
61+
}

0 commit comments

Comments
 (0)
Please sign in to comment.