|
2 | 2 | profile: false
|
3 | 3 | title: "Welcome to Code and Coffee, Long Beach"
|
4 | 4 | ---
|
| 5 | + |
| 6 | +<!-- load our fonts --> |
5 | 7 | <link href='https://fonts.googleapis.com/css?family=Raleway:100' rel='stylesheet' type='text/css'>
|
| 8 | + |
6 | 9 | <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 | + |
7 | 19 | #hero {
|
8 |
| - position: absolute; |
| 20 | + position: relative; |
9 | 21 | top:0;
|
10 | 22 | left:0;
|
11 | 23 | width:100%;
|
|
17 | 29 | box-shadow: 10px 5px 81px -5px rgba(122,115,122,1);
|
18 | 30 | }
|
19 | 31 |
|
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 */ |
34 | 33 | #hero > .backdrop {
|
35 | 34 | background:rgba(0,0,0,0.5);
|
36 |
| - position:absolute; |
37 | 35 | z-index:2;
|
38 | 36 | top:0;
|
39 | 37 | left:0;
|
40 | 38 | width:100%;
|
41 | 39 | height:100%;
|
| 40 | + position:absolute; |
42 | 41 | }
|
43 | 42 |
|
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 |
51 | 45 | {
|
52 | 46 | position:absolute;
|
53 | 47 | height:100%;
|
54 | 48 | width:100%;
|
55 | 49 | overflow: hidden;
|
56 | 50 | }
|
57 | 51 |
|
58 |
| -.videoContainer video |
59 |
| -{ |
| 52 | +/* the actual video player */ |
| 53 | +#hero .videoContainer video { |
60 | 54 | min-width: 100%;
|
61 | 55 | min-height: 100%;
|
62 | 56 | }
|
63 | 57 |
|
| 58 | +/* the wrapper around our logo, title, and description */ |
64 | 59 | #hero .header-content {
|
65 | 60 | position: absolute;
|
66 | 61 | top: calc(50% - 117px);
|
|
70 | 65 | z-index:3;
|
71 | 66 | }
|
72 | 67 |
|
| 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 */ |
73 | 83 | #hero .header-content h1 {
|
74 | 84 | color:white;
|
75 | 85 | font-size:40px;
|
76 | 86 | font-family: Raleway;
|
77 | 87 | }
|
78 | 88 |
|
| 89 | +/* description */ |
79 | 90 | #hero .header-content p {
|
80 | 91 | color:white;
|
81 | 92 | }
|
82 | 93 |
|
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; |
88 | 104 | }
|
89 | 105 |
|
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; |
93 | 112 | }
|
94 | 113 |
|
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 | + } |
97 | 175 | }
|
98 | 176 |
|
99 | 177 | </style>
|
100 | 178 |
|
101 | 179 | <div id='hero'>
|
102 | 180 | <div class='backdrop'></div>
|
103 | 181 | <div class='videoContainer'>
|
104 |
| - <video autoplay='true' loop> |
| 182 | + <video autoplay='true' muted loop> |
105 | 183 | <source src='https://s3-us-west-1.amazonaws.com/avojeez0-public/codeandcoffeehero.mp4' type='video/mp4'>
|
106 | 184 | </video>
|
107 | 185 | </div>
|
@@ -162,6 +240,12 @@ <h1>code + coffee / long beach</h1>
|
162 | 240 | </div>
|
163 | 241 | </div>
|
164 | 242 |
|
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