-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSlacker Card.html
More file actions
106 lines (102 loc) · 2.63 KB
/
Slacker Card.html
File metadata and controls
106 lines (102 loc) · 2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<!-- saved from url=(0078)https://udacity.github.io/fend/lessons/L3/problem-set/07-slack-card/index.html -->
<html lang="en" data-lt-installed="true"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Slacker Card</title>
<link href="./Slacker Card_files/css" rel="stylesheet" type="text/css">
<meta name="udacity-grader" content="tests.json">
<style>
* {
box-sizing: border-box;
}
body {
font-family: 'Open Sans', sans-serif;
color: #222;
}
.card {
height: 475px;
width: 325px;
box-shadow: 0px 5px 15px 0px rgba(153,153,153,0.5);
border-radius: 4px;
}
.top {
height: 55%;
border-radius: 4px 4px 0px 0px;
border: 1px solid #ddd;
padding: 0px 16px;
}
.name {
padding-top: calc(475px * 0.40);
margin: 0px;
}
.status {
display: inline-block;
width: 10px;
height: 10px;
margin-left: 4px;
border-radius: 5px;
background-color: #60D156;
}
.title {
margin-top: 8px;
}
.middle {
height: 5%;
border-left: 1px solid #ddd;
border-right: 1px solid #ddd;
padding: 0px 16px;
}
.time {
color: #444;
font-size: 0.8em;
padding-top: 0.2em;
}
.bottom {
height: 40%;
border-radius: 0px 0px 4px 4px;
border: 1px solid #ddd;
padding: 8px 16px;
}
.profile-action {
display: block;
width: 100%;
height: 32px;
font-size: 1em;
text-align: left;
cursor: pointer;
border-radius: 4px;
border: 0px;
background-color: white;
font-family: 'Open Sans', sans-serif;
}
.profile-action:hover {
background-color: #00A5D2;
color: white;
font-family: 'Open Sans', sans-serif;
}
</style>
</head>
<body>
<section>
<div class="card">
<div class="top">
<h3 class="name"> CJ Student <span class="status"></span></h3>
<p class="title">Learner Extraordinaire</p>
</div>
<div class="middle">
<div class="time">12:34 PM local time</div>
</div>
<div class="bottom">
<button class="profile-action">View preferences</button>
<button class="profile-action">Open account settings</button>
<button class="profile-action">Edit your profile</button>
<button class="profile-action">View your files</button>
<button class="profile-action">Set yourself away</button>
</div>
</div>
</section>
<section>
<p>
<em>Note: the buttons have class <code>profile-action</code></em>
</p>
</section>
</body></html>