Skip to content

Commit 72a4106

Browse files
Merge pull request #56 from CodeWithGroup/feature/home-page-layout
Changes to home page layout as per Jim's suggestions
2 parents 1830642 + b4d561b commit 72a4106

File tree

3 files changed

+32
-29
lines changed

3 files changed

+32
-29
lines changed

_layouts/default.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,20 @@
55
<body>
66
<a class="sr-only sr-only-focusable" href="#page-content">Skip to main content</a>
77
<!-- Google Tag Manager (noscript) -->
8-
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WPSF3G7"
9-
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
8+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WPSF3G7" height="0" width="0"
9+
style="display:none;visibility:hidden"></iframe></noscript>
1010
<!-- End Google Tag Manager (noscript) -->
1111

1212
<div id="main-container" class="page-wrapper toggled">
1313
{% include sidebar.html %}
1414
<main role="main" class="page-content" id="page-content">
1515
<div class="row">
16-
<div class="main-logo">
16+
<div class="col-12 main-logo">
1717
<a href="{{site.url}}"><img src="{{site.url}}/images/keyboard-green.png"></a>
1818
</div>
19-
<div class="main-logo-title">
20-
<h1 class="cover-heading">CODEWITH<span id="small-screen-break"><br /></span><span id="suffix" class="typed-suffix">US</span></h1>
19+
<div class="col-12 main-logo-title">
20+
<h1 class="cover-heading">CODEWITH<span id="small-screen-break"><br /></span><span id="suffix"
21+
class="typed-suffix">US</span></h1>
2122
</div>
2223
</div>
2324
<div class="row unpadded">

css/style.css

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,25 @@ div.event-book-button {
461461

462462
/* RESIZING (min-width) */
463463

464-
@media screen and (min-width: 526px) {
464+
@media screen and (min-width: 576px) {
465+
.logo-col {
466+
width: 120px;
467+
}
468+
469+
.main-logo {
470+
padding-right: 1em;
471+
}
472+
473+
span#small-screen-break {
474+
display: none;
475+
}
476+
}
477+
478+
@media screen and (min-width: 769px) {
479+
.center-when-small {
480+
text-align: left;
481+
}
482+
465483
.page-wrapper .main-logo {
466484
display: initial;
467485
text-align: left;
@@ -481,27 +499,7 @@ div.event-book-button {
481499
margin-top: -5px;
482500
text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
483501
}
484-
}
485-
486-
@media screen and (min-width: 576px) {
487-
.center-when-small {
488-
text-align: left;
489-
}
490-
491-
.logo-col {
492-
width: 120px;
493-
}
494-
495-
.main-logo {
496-
padding-right: 1em;
497-
}
498-
499-
span#small-screen-break {
500-
display: none;
501-
}
502-
}
503502

504-
@media screen and (min-width: 768px) {
505503
.page-wrapper.toggled .page-content {
506504
padding-left: 340px;
507505
padding-right: 40px;

index.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@
2929
title: Home
3030
---
3131

32-
<h1>Welcome to CodeWith!</h1>
3332
<div class="row intro">
34-
<div class="offset-2 col-8 text-center">
33+
<div class="col-12 center-when-small">
34+
<h1>Welcome to CodeWith!</h1>
35+
</div>
36+
<div class="col-12 text-center">
3537
<h4>
3638
Our mission is to create a virtual space for adults to pursue programming-related learning
3739
and conversation, where everyone is valued, everyone has agency, and everyone is supported.
@@ -47,7 +49,9 @@ <h4>
4749
<div class="col-sm-9 col-md-10">
4850
<p class="intro-text">
4951
Want to dive right in? We usually have a few people connected to our
50-
<a href="https://codewithpeople.slack.com">Slack workspace</a>, so come and speak to us there!
52+
<a href="https://codewithpeople.slack.com">Slack workspace</a>, so come and speak to us
53+
there. If you're not signed up, you can
54+
<a href="https://launchpass.com/codewithpeople">join our Slack here</a>.
5155
</p>
5256
</div>
5357
</div>

0 commit comments

Comments
 (0)