Skip to content

Commit 51e4472

Browse files
committed
Adjust ads container
1 parent b34d145 commit 51e4472

File tree

4 files changed

+28
-21
lines changed

4 files changed

+28
-21
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
deploy:
2-
@doctl serverless deploy functions
3-
41
site:
52
@make -C web
63

7-
.PHONY: deploy site
4+
deploy:
5+
@doctl serverless deploy functions
6+
7+
.PHONY: site deploy

web/includes/adsense.html.j2

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
{% if site.ads_enabled %}
22
<!-- Sorry I need to pay my ̶t̶a̶x̶e̶s̶ bills... -->
3-
<div align="center">
3+
<div align="center" class="ads">
44
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9962263199785319"
5-
crossorigin="anonymous"></script>
5+
crossorigin="anonymous"></script>
66
<ins class="adsbygoogle"
7-
style="display:block"
8-
data-ad-client="ca-pub-9962263199785319"
9-
data-ad-slot="9576804902"
10-
data-ad-format="auto"
11-
data-full-width-responsive="true"></ins>
7+
style="display:block"
8+
data-ad-client="ca-pub-9962263199785319"
9+
data-ad-slot="9576804902"
10+
data-ad-format="auto"
11+
data-full-width-responsive="true"></ins>
1212
<script>
13-
window.addEventListener('load', function() {
1413
(adsbygoogle = window.adsbygoogle || []).push({});
15-
});
1614
</script>
1715
</div>
1816
{% endif %}

web/src/css/playground.css

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
1+
html, body {
2+
background-color: #181b1e !important;
3+
}
24

35
#editor, #console {
46
font-size: 12px;
@@ -10,10 +12,6 @@ small a {
1012
left: 1%;
1113
}
1214

13-
html, body {
14-
background-color: #181b1e !important;
15-
}
16-
1715
.modal-content {
1816
background-color: #282a36 !important;
1917
color: white !important;
@@ -55,4 +53,14 @@ html, body {
5553
}
5654
#spinner.active {
5755
visibility: visible;
56+
}
57+
58+
.main-container {
59+
display: flex;
60+
justify-content: space-between;
61+
flex-direction: column;
62+
}
63+
64+
.ads {
65+
margin-top: 3em;
5866
}

web/src/index.html.j2

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
{% block content %}
44
{{ super() }}
55
{% include 'includes/navbar.html.j2' %}
6-
76
{% include 'includes/share-modal.html.j2' %}
8-
{% include 'includes/editors.html.j2' %}
97

10-
{% include 'includes/adsense.html.j2' %}
8+
<div class="main-container">
9+
{% include 'includes/editors.html.j2' %}
10+
{% include 'includes/adsense.html.j2' %}
11+
</div>
1112
{% endblock %}

0 commit comments

Comments
 (0)