Skip to content

Commit e35bc9e

Browse files
committed
updated index page with comments
1 parent d23886d commit e35bc9e

File tree

1 file changed

+123
-39
lines changed

1 file changed

+123
-39
lines changed

index.html

+123-39
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,22 @@
22
profile: false
33
title: "Welcome to Code and Coffee, Long Beach"
44
---
5+
6+
<!-- load our fonts -->
57
<link href='https://fonts.googleapis.com/css?family=Raleway:100' rel='stylesheet' type='text/css'>
8+
69
<style>
10+
11+
/**
12+
* HERO styles
13+
* -------------
14+
* These styles govern the hero of the page, which,
15+
* at least at the moment, contains a video, logo,
16+
* title, and description.
17+
*/
18+
719
#hero {
8-
position: absolute;
20+
position: relative;
921
top:0;
1022
left:0;
1123
width:100%;
@@ -17,50 +29,33 @@
1729
box-shadow: 10px 5px 81px -5px rgba(122,115,122,1);
1830
}
1931

20-
#floatinglogo {
21-
display: none;
22-
}
23-
24-
nav.main-nav {
25-
top: 0;
26-
width: 100%;
27-
position:fixed;
28-
background:transparent;
29-
}
30-
#wrapper {
31-
32-
}
33-
32+
/* thin layer of darkened opacity on top of the video */
3433
#hero > .backdrop {
3534
background:rgba(0,0,0,0.5);
36-
position:absolute;
3735
z-index:2;
3836
top:0;
3937
left:0;
4038
width:100%;
4139
height:100%;
40+
position:absolute;
4241
}
4342

44-
#hero > video {
45-
width: 100%;
46-
height: auto;
47-
max-height: 100%;
48-
}
49-
50-
.videoContainer
43+
/* the container surrounding the video (necessary to maintain a full-screen stretch) */
44+
#hero .videoContainer
5145
{
5246
position:absolute;
5347
height:100%;
5448
width:100%;
5549
overflow: hidden;
5650
}
5751

58-
.videoContainer video
59-
{
52+
/* the actual video player */
53+
#hero .videoContainer video {
6054
min-width: 100%;
6155
min-height: 100%;
6256
}
6357

58+
/* the wrapper around our logo, title, and description */
6459
#hero .header-content {
6560
position: absolute;
6661
top: calc(50% - 117px);
@@ -70,38 +65,121 @@
7065
z-index:3;
7166
}
7267

68+
/* logo container */
69+
#hero .hero-logo {
70+
background: transparent;
71+
z-index: 1;
72+
font-size: 8px;
73+
display:inline-block;
74+
}
75+
76+
/* logo */
77+
#hero .hero-logo pre {
78+
background: transparent;
79+
font-size: 2px;
80+
}
81+
82+
/* title */
7383
#hero .header-content h1 {
7484
color:white;
7585
font-size:40px;
7686
font-family: Raleway;
7787
}
7888

89+
/* description */
7990
#hero .header-content p {
8091
color:white;
8192
}
8293

83-
#hero .hero-logo {
84-
background: transparent;
85-
z-index: 1;
86-
font-size: 8px;
87-
display:inline-block;
94+
/**
95+
* Framework mods
96+
* -------------
97+
* These are modifications to the existing framework
98+
* we are using.
99+
*/
100+
101+
/* hide the current logo (replacing it in the hero) */
102+
#floatinglogo {
103+
display: none;
88104
}
89105

90-
#hero .hero-logo pre {
91-
background: transparent;
92-
font-size: 2px;
106+
/* make adjustments to the header */
107+
nav.main-nav {
108+
top: 0;
109+
width: 100%;
110+
position:fixed;
111+
background:transparent;
93112
}
94113

95-
#post-list {
96-
margin-top: calc(100% + 200px);
114+
/* the wrapper contains all content on our page. By default,
115+
this element is compounded with margins and width-limitations
116+
that need to be overriden to accomplish a full-screen model. */
117+
#wrapper {
118+
height: 100%;
119+
width: 100%;
120+
max-width: none;
121+
padding: 0;
122+
}
123+
124+
/* To maintain the dimensions that govern the wrapper outside of our hero,
125+
I have replicated the wrapper's original behavior within the post-body-wrapper,
126+
which containes all elements beneath the hero. */
127+
#post-body-wrapper {
128+
max-width: 600px;
129+
margin: 0 auto;
130+
padding: 60px 40px 100px 40px;
131+
}
132+
133+
/* At tablet size, i decided to move the header off of the hero and into the post body.*/
134+
#tablet-header {
135+
display:none;
136+
text-align:center;
137+
margin-top:50px;
138+
margin-bottom:100px;
139+
}
140+
141+
/* title */
142+
#tablet-header h1 {
143+
color:#584E4E;
144+
font-size:40px;
145+
font-family: Raleway;
146+
}
147+
148+
/* description */
149+
#tablet-header p {
150+
color:#B3B3B3;
151+
}
152+
153+
/**
154+
* Responsive styles
155+
* -----------------
156+
* These styles govern what elements need to change at different screen restraints.
157+
**/
158+
159+
@media screen and (max-width: 540px) {
160+
161+
/* Shrink the hero down in height */
162+
#hero {
163+
height:50%;
164+
}
165+
166+
/* hide everything in the hero content except the logo */
167+
#hero .header-content h1, #hero .header-content p {
168+
display:none;
169+
}
170+
171+
/* show the tablet header */
172+
#tablet-header {
173+
display:block;
174+
}
97175
}
98176

99177
</style>
100178

101179
<div id='hero'>
102180
<div class='backdrop'></div>
103181
<div class='videoContainer'>
104-
<video autoplay='true' loop>
182+
<video autoplay='true' muted loop>
105183
<source src='https://s3-us-west-1.amazonaws.com/avojeez0-public/codeandcoffeehero.mp4' type='video/mp4'>
106184
</video>
107185
</div>
@@ -162,6 +240,12 @@ <h1>code + coffee / long beach</h1>
162240
</div>
163241
</div>
164242

165-
{% include post-list.html %}
166-
{% include member-list.html %}
167-
{% include footer.html %}
243+
<div id='post-body-wrapper'>
244+
<div id='tablet-header'>
245+
<h1>code + coffee</h1>
246+
<p>every saturday, from 10am to whenever, @ <a href="https://www.google.com/maps/place/236+Pine+Ave,+Long+Beach,+CA+90802/">MADE</a></p>
247+
</div>
248+
{% include post-list.html %}
249+
{% include member-list.html %}
250+
{% include footer.html %}
251+
</div>

0 commit comments

Comments
 (0)