diff options
| author | Bobby <[email protected]> | 2023-05-13 18:19:06 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2023-05-13 18:19:06 -0400 |
| commit | 4cbc1c64b3f5f7bc6f6f9744dd09828d7e79d65d (patch) | |
| tree | a151b178f708d511b1d1069ed70ac25a123ced51 | |
| parent | ea3e2934733fd642d1b15d89363f92b736bb87d3 (diff) | |
| download | thatcomputerscientist-4cbc1c64b3f5f7bc6f6f9744dd09828d7e79d65d.tar.xz thatcomputerscientist-4cbc1c64b3f5f7bc6f6f9744dd09828d7e79d65d.zip | |
Marginally better ads look
| -rw-r--r-- | static/css/styles.css | 13 | ||||
| -rw-r--r-- | templates/blog/home.html | 3 | ||||
| -rw-r--r-- | templates/blog/partials/sidebar.html | 2 |
3 files changed, 14 insertions, 4 deletions
diff --git a/static/css/styles.css b/static/css/styles.css index 2e47d5ee..4f2a9269 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -54,6 +54,19 @@ a, text-decoration: none; } +#fake-banner-ad{ + border: dashed 1px #dddddd; + padding: 4px; + border-radius: 8px; +} + +#fake-banner-ad img, #fake-ad-area img { + display: block; + margin: 0px auto; + width: calc(100% - 8px); + border-radius: 8px; +} + a:hover { text-decoration: underline; } diff --git a/templates/blog/home.html b/templates/blog/home.html index 5f00f91f..4bb5c003 100644 --- a/templates/blog/home.html +++ b/templates/blog/home.html @@ -43,10 +43,7 @@ </marquee> {% endif %} </div> - -{% comment %} {% endcomment %} <div id="fake-banner-ad" class="mtctitem"> - {% comment %} <h2>Advertisement</h2> {% endcomment %} {% load ad %} <img src="{{'banner'|ad }}" alt="Ad" style="width: 720px;" border="0"/> </div> diff --git a/templates/blog/partials/sidebar.html b/templates/blog/partials/sidebar.html index 9b15eb2f..41d7a295 100644 --- a/templates/blog/partials/sidebar.html +++ b/templates/blog/partials/sidebar.html @@ -145,7 +145,7 @@ <div id="fake-ad-area" class="mtsbitem"> {% comment %} <h2>Advertisement</h2> {% endcomment %} {% load ad %} - <img src="{{ "big" | ad }}" alt="Advertisement" style="width: 250px;"> + <img src="{{ "big" | ad }}" alt="Advertisement"> </div> <div id="archives-area" class="mtsbitem"> |
