Skip to content

Commit 53ffd61

Browse files
Landing page fixes to help with responsive design
1 parent 02069df commit 53ffd61

File tree

3 files changed

+59
-7
lines changed

3 files changed

+59
-7
lines changed

css/style.css

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,40 @@ h1, h2, h3 {
1212
font: 14px Roboto, Arial, sans-serif;
1313
}
1414

15+
16+
#header {
17+
padding-top: 5px;
18+
padding-bottom: 5px;
19+
}
20+
21+
#keyboardSymbol {margin-bottom:10px;}
22+
23+
@media only screen and (max-width: 600px) {
24+
25+
.desktopLogo,.desktopPrompt {
26+
display: none;
27+
}
28+
29+
.mobileLogo {
30+
display: inline;
31+
}
32+
33+
.mobilePrompt{display: inline;}
34+
35+
body{padding: 5px;}
36+
}
37+
38+
@media only screen and (min-width: 600px) {
39+
40+
.desktopLogo {
41+
display: block;
42+
}
43+
44+
.desktopPrompt {
45+
display: inline;
46+
}
47+
48+
.mobilePrompt,.mobileLogo {
49+
display: none;
50+
}
51+
}

img/Symbol.png

8.3 KB
Loading

index.html

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,32 @@
3333

3434
<body>
3535

36-
<div class="jumbotron text-center">
37-
<img src="img/CodeWithLogoSmall.png" class="img-fluid" height="378" width="400" alt="CodeWith - We are CodeWith. Code with us">
36+
<div class="jumbotron text-center" id="header">
37+
<div class="mobileLogo">
38+
<img src="img/Symbol.png" id="keyboardSymbol" height="100" width="200" alt="CodeWith">
39+
<h1>We are CodeWith</h1>
40+
</div>
41+
42+
<div class="desktopLogo">
43+
<img src="img/CodeWithLogoSmall.png" height="500" width="476" alt="CodeWith">
44+
</div>
45+
46+
3847
</div>
3948

49+
50+
4051
<div class="container">
4152
<div class="row">
4253
<div class="col-sm-8">
43-
<h2>Welcome to CodeWith</h2>
44-
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
45-
<p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris...</p>
46-
<p class="">Free and informal coding support and mentoring for adults.</p>
54+
<p class="lead">
55+
CodeWith provides free and informal support for adults who want
56+
to learn to code, using online resources, workshops and webinars.
57+
</p>
58+
<p class="lead">
59+
We want to keep everyone up to date with what's going on, so please
60+
sign up to our mailing list <span class="mobilePrompt">below</span><span class="desktopPrompt">to the right</span>
61+
</p>
4762

4863
</div>
4964
<div class="col-sm-4">
@@ -91,7 +106,7 @@ <h2>Subscribe to our mailing list</h2>
91106

92107
<!--End mc_embed_signup-->
93108
</div>
94-
109+
95110
</div>
96111
</div>
97112

0 commit comments

Comments
 (0)