Skip to content

Commit 29148b1

Browse files
Removed text based site name and used image in the footer.
Added favicon links to head.html for all possible devices - credits to: https://realfavicongenerator.net/ Removed text based brand name from nav bar and used flat image version (light text). Removed margin-top: -66px; style from all subpages and declared global on the body. Extended size of the nav bar brand to fill the entire element (make it all clickable). Used new site logo as the main logo on the home page. Removed unused experimental logo images from static/images/site_logo. Added all required favicon images to the root of the project (should support iOS, android, Windows, safari and all other browsers properly. The favicon has a new version attached to it to force browsers downloading it instead of using the old one from the cache. Removed text based main site title and used image instead. Changed site subtitle.
1 parent a54273a commit 29148b1

26 files changed

+6516
-32
lines changed

_includes/footer.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,11 @@ <h2 class="footer__section-title">Python Sprints</h2>
4040

4141
<div class="footer__content row container-fluid">
4242
<div class="col-md-12">
43-
<p class="footer__text-copyright">
44-
© Copyright
45-
<script>document.write(new Date().getFullYear())</script>
46-
- Python Sprints
47-
<img class="footer__brand-img" src="{{ site.baseurl }}/static/images/site_logo/python_sprints_logo.png" alt="Python Sprints Logo">
48-
</p>
43+
<p class="footer__text-copyright">
44+
©
45+
<img class="footer__brand-img" src="{{ site.baseurl }}/static/images/site_logo/python_sprints_logo_triangles_flat_light_text_502x100px.png" alt="Python Sprints Logo">
46+
<script>document.write(new Date().getFullYear())</script>
47+
</p>
4948
</div>
5049
</div>
5150
</footer>

_includes/head.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99
<link href="https://fonts.googleapis.com/css?family=Playfair+Display" rel="stylesheet">
1010
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
1111
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/static/css/main.css">
12+
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=ngkXqML5Y9">
13+
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?v=ngkXqML5Y9">
14+
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v=ngkXqML5Y9">
15+
<link rel="manifest" href="/site.webmanifest?v=ngkXqML5Y9">
16+
<link rel="mask-icon" href="/safari-pinned-tab.svg?v=ngkXqML5Y9" color="#5bbad5">
17+
<link rel="shortcut icon" href="/favicon.ico?v=ngkXqML5Y9">
18+
<meta name="msapplication-TileColor" content="#da532c">
19+
<meta name="theme-color" content="#ffffff">
1220
<title>
1321
{% if page.title %}
1422
Python Sprints - {{ page.title }}

_includes/navigation.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<nav class="navigation navbar sticky-top navbar-light">
22
<div class="navigation__brand">
33
<a class="navigation__brand-link navbar-brand" href="{{ '/' | prepend: site.baseurl }}">
4-
<img class="navigation__brand-img" src="{{ site.baseurl }}/static/images/site_logo/python_sprints_logo.png" alt="Python Sprints Logo">
5-
<span class="navigation__brand-name">Python Sprints</span>
4+
<img class="navigation__brand-img" src="{{ site.baseurl }}/static/images/site_logo/python_sprints_logo_triangles_flat_light_text_502x100px.png" alt="Python Sprints Logo">
65
</a>
76
</div>
87

_sass/about.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.about {
2-
margin-top: -66px;
32
}
43

54
.about__background-img-container {

_sass/contact.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.contact {
2-
margin-top: -66px;
32
}
43

54
.contact__background-img-container {

_sass/get_started.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.get-started {
2-
margin-top: -66px;
32
}
43

54
.get-started__background-img-container {

_sass/post.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.post {
2-
margin-top: -66px;
32
}
43

54
.post__img-container {

_sass/style.scss

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
.body {
44
background-color: $main-background;
55
overflow-x: hidden;
6+
/*Here I need to move the background image to slide under the navigation*/
7+
/*Any smarter solutions are welcome!*/
8+
margin-top: -66px;
9+
610
}
711

812
.no-scroll {
@@ -92,12 +96,9 @@ a {
9296
}
9397
}
9498

95-
/*Here I need to move the background image to slide under the navigation*/
96-
/*Any smarter solutions are welcome!*/
9799

98100
.navigation__content {
99101
@extend .page__background-img-container;
100-
margin-top: -66px;
101102
&::after {
102103
background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.8) 100%);
103104
}
@@ -116,25 +117,20 @@ a {
116117
}
117118

118119
.navigation__brand-link {
120+
width: 100%;
119121
}
120122

121-
.navigation__brand-name {
122-
font-size: 0.8em;
123-
color: $brand-name;
124-
font-family: 'Share Tech Mono', monospace;
123+
.navigation__brand-img {
124+
width: 6em;
125+
padding-left: 0.5em;
125126
}
126127

127-
@media (min-width: 450px) {
128-
.navigation__brand-name {
129-
font-size: 1.2em;
128+
@media (min-width: 768px) {
129+
.navigation__brand-img {
130+
width: 10em;
130131
}
131132
}
132133

133-
.navigation__brand-img {
134-
width: 2em;
135-
padding-left: 0.5em;
136-
}
137-
138134
.navigation__button-open-container {
139135
border: black 1px solid;
140136
border-radius: 6px;
@@ -147,11 +143,23 @@ a {
147143
background-color: rgba(7, 41, 72, 0.7);
148144
}
149145

150-
151146
.navigation__title-container {
152147
@extend .page__title-container;
153148
}
154149

150+
.navigation__site-logo {
151+
display: block;
152+
margin-left: auto;
153+
margin-right: auto;
154+
width: 50%;
155+
}
156+
157+
@media (orientation: portrait) {
158+
.navigation__site-logo {
159+
width: 80%;
160+
}
161+
}
162+
155163
.navigation__title {
156164
@extend .page__title;
157165
}
@@ -582,7 +590,8 @@ a {
582590

583591
.footer__text-copyright {
584592
@extend .footer-font;
585-
font-size: 1.5em;
593+
text-align: center;
594+
font-size: 2em;
586595
color: $footer-text;
587596
}
588597

@@ -627,7 +636,9 @@ a {
627636
}
628637

629638
.footer__brand-img {
630-
width: 2em;
639+
width: 8em;
640+
margin-left: 0.5em;
641+
margin-right: 0.5em;
631642
}
632643

633644
.footer__divider {

android-chrome-192x192.png

8.26 KB
Loading

android-chrome-512x512.png

25.6 KB
Loading

0 commit comments

Comments
 (0)