Skip to content

Commit

Permalink
Merge pull request #146 from CSSUoB/freshers-banner
Browse files Browse the repository at this point in the history
Add temporary banner
  • Loading branch information
Danyc0 authored Aug 18, 2021
2 parents 104fef3 + 8bc5fa8 commit 999c9a6
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
4 changes: 4 additions & 0 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
{% include header.html %}

<main>
<div id="freshers-banner">
<p>Joining us in September? Read our <a href=/newsletter/freshers-welcome-2021>2021 Welcome Newsletter</a> and <a href=/discord>meet everyone else over on the Discord</a></p>
</div>

{{ content }}
</main>

Expand Down
6 changes: 5 additions & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@
</head>
<body>
{% include header.html %}

<main>

<div id="freshers-banner">
<p>Joining us in September? Read our <a href=/newsletter/freshers-welcome-2021>2021 Welcome Newsletter</a> and <a href=/discord>meet everyone else over on the Discord</a></p>
</div>

<div class="post-header">
{% if page.header-image %}
<img class="post-header-image" src="{{ page.header-image | relative_url }}">
Expand Down
17 changes: 16 additions & 1 deletion css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,21 @@ body {
flex-direction: column;
}

#freshers-banner {
background-color: #9D68DC;
border-radius: 10px;
padding: 2px 20px;
font-size: 18px;
margin-bottom: 20px;

* {
color: white;
text-align: center;
font-family: "JetBrains Mono", "Inconsolata", monospace;
font-weight: bolder;
}
}

main {
font-family: "Roboto", sans-serif;
width: 80%;
Expand Down Expand Up @@ -87,7 +102,7 @@ main {
max-width: 900px;
margin: 0 auto;
background-color: white;
padding: 10px 30px 20px;
padding: 20px 20px;
border-radius: 20px;

* {
Expand Down

0 comments on commit 999c9a6

Please sign in to comment.