-
Notifications
You must be signed in to change notification settings - Fork 852
/
index.html
182 lines (169 loc) · 7.03 KB
/
index.html
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<link rel="stylesheet" href="css/styles.css" type="text/css" />
</head>
<body>
<div id="page-container">
<div id="dashboard">
<div id="profile-summary">
<div class="content">
<img class='avatar' src='img/alagoon.jpg' />
<p>Your Name Here</p>
</div>
</div>
<div id="tweet-content">
<!-- STEP 2: When the user clicks on the textarea, the textarea should double in size and the character count and Tweet buttons should be revealed. -->
<!-- HINT: jQuery ".on" eventHandler -->
<textarea class="tweet-compose" placeholder="Compose new Tweet..."/></textarea>
<!-- STEP 1: Initially, the Tweet button and the character count button below should be hidden. -->
<!-- HINT: Use CSS -->
<div id="tweet-controls">
<!-- STEP 3: As the user types the character count should decrease. Once it hits 10 character or less the count should turn red -->
<!-- HINT: jQuery keypress events (keypress, keydown, keyup, etc) -->
<div id="char-count">140</div>
<!-- STEP 4: If the user puts in more than 140 characters, the tweet button should be disabled (and re-enabled when there are <= 140 chars) -->
<!-- HINT: javascript length method -->
<button class="button" id="tweet-submit">Tweet</button>
</div>
</div>
</div>
<div id="main">
<h2>Tweets</h2>
<div id="stream">
<!-- STEP 5: When the user successfully inputs characters and clicks the “Tweet” button, a new tweet should be created and added to the tweet stream in the main column, using the user’s fake profile image in the top left and username/fullname. -->
<!-- HINT: jQuery ".prepend" method -->
<div class="tweet">
<div class="content">
<img class="avatar" src="img/damenleeturks.jpg" />
<strong class="fullname">My BFF</strong>
<span class="username">@mybff</span>
<!-- BLACK DIAMOND: Implement the icons for when a tweet is favorited/retweeted in the upper right of the tweet. -->
<!-- HINT: Add to what you created in Step 5 -->
<p class="tweet-text">Today is an amazing day.</p>
<!-- STEP 6: The tweet actions below should only show up when you hover over the tweet. Otherwise, they should be hidden. -->
<!-- HINT: CSS ":hover" pseudo element -->
<div class="tweet-actions">
<ul>
<li><span class="icon action-reply"></span> Reply</li>
<li><span class="icon action-retweet"></span> Retweet</li>
<li><span class="icon action-favorite"></span> Favorite</li>
<li><span class="icon action-more"></span> More</li>
</ul>
</div>
<!-- STEP 7: The Retweets/timestamp/Reply areas below should also be hidden by default. These should only expand if you click on the tweet. Use a jQuery animation to accomplish the reveal, similar to how it’s done on Twitter.com -->
<!-- HINT: jQuery ".on" eventHandler -->
<div class="stats">
<div class="retweets">
<p class="num-retweets">30</p>
<p>RETWEETS</p>
</div>
<div class="favorites">
<p class="num-favorites">6</p>
<p>FAVORITES</p>
</div>
<div class="users-interact">
<div>
<!-- BLACK DIAMOND: Implement the Bootstrap tooltips for when you hover over a user’s avatar image -->
<!-- HINT: Bootstrap has good documentation =) -->
<img src="img/alagoon.jpg" />
<img src="img/vklimenko.jpg" />
</div>
</div>
<!-- BLACK DIAMOND: Make the timestamp below similar to how they look on Twitter (1h, 18m, 1m) and use the jQuery timeago plugin to make them automatic. -->
<!-- HINT: Refer to timeago documentation -->
<div class="time">
1:04 PM - 19 Sep 13
</div>
</div>
<div class="reply">
<img class="avatar" src="img/alagoon.jpg" />
<textarea class="tweet-compose" placeholder="Reply to @mybff"/></textarea>
</div>
</div>
</div><!-- .tweet -->
<div class="tweet">
<div class="content">
<img class="avatar" src="img/funwatercat.jpg" />
<strong class="fullname">The Onion</strong>
<span class="username">@theonion</span>
<p class="tweet-text">“I'm able to speak confidently about a wide range of subjects, so it’s probably hard for most women to follow.” http://onion.com/1aWfKwf </p>
<div class="tweet-actions">
<ul>
<li><span class="icon action-reply"></span> Reply</li>
<li><span class="icon action-retweet"></span> Retweet</li>
<li><span class="icon action-favorite"></span> Favorite</li>
<li><span class="icon action-more"></span> More</li>
</ul>
</div>
<div class="stats">
<div class="retweets">
<p class="num-retweets">30</p>
<p>RETWEETS</p>
</div>
<div class="favorites">
<p class="num-favorites">6</p>
<p>FAVORITES</p>
</div>
<div class="users-interact">
<div>
<img src="img/jennyshen.jpg" />
<img src="img/damenleeturks.jpg" />
</div>
</div>
<div class="time">
1:04 PM - 19 Sep 13
</div>
</div>
<div class="reply">
<img class="avatar" src="img/alagoon.jpg" />
<textarea class="tweet-compose" placeholder="Reply to @theonion"/></textarea>
</div>
</div>
</div><!-- .tweet -->
<div class="tweet">
<div class="content">
<img class="avatar" src="img/jennyshen.jpg" />
<strong class="fullname">Harvard Biz Review</strong>
<span class="username">@HarvardBiz</span>
<p class="tweet-text">It is possible to work with a loved one without ruining the relationship http://s.hbr.org/15FDIri </p>
<div class="tweet-actions">
<ul>
<li><span class="icon action-reply"></span> Reply</li>
<li><span class="icon action-retweet"></span> Retweet</li>
<li><span class="icon action-favorite"></span> Favorite</li>
<li><span class="icon action-more"></span> More</li>
</ul>
</div>
<div class="stats">
<div class="retweets">
<p class="num-retweets">30</p>
<p>RETWEETS</p>
</div>
<div class="favorites">
<p class="num-favorites">6</p>
<p>FAVORITES</p>
</div>
<div class="users-interact">
<div>
<img src="img/vklimenko.jpg" />
<img src="img/funwatercat.jpg" />
</div>
</div>
<div class="time">
1:04 PM - 19 Sep 13
</div>
</div>
<div class="reply">
<img class="avatar" src="img/alagoon.jpg" />
<textarea class="tweet-compose" placeholder="Reply to @HarvardBiz"/></textarea>
</div>
</div>
</div><!-- .tweet -->
</div><!-- #stream -->
</div><!-- #main -->
</div><!-- #page-container -->
</body>
</html>