Skip to content

Commit

Permalink
ads
Browse files Browse the repository at this point in the history
  • Loading branch information
1cg committed May 19, 2024
1 parent 9e6bfdc commit da80ed1
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions www/content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,22 @@ body.kawaii .dark-hero .uwu {
display:block;
padding-top: 24px;
}

body.ads .ad {
display: block;
text-align: center;
margin-left: calc(50% - 50vw);
margin-right: calc(50% - 50vw);
}

body.ads .ad a:hover {
opacity: 100%;
}

body .ad {
display: none;
}

</style>
<script type="application/javascript">
if(window.location.search=="?wuw=true" || window.location.search=="?suw=true") {
Expand All @@ -37,8 +53,17 @@ if(window.location.search=="?wuw=true" || window.location.search=="?suw=true") {
if(window.location.search=="?uwu=true") {
document.body.classList.add('kawaii');
}
if(window.location.search=="?ads=true") {
document.body.classList.add('ads');
}
</script>

<div class="ad" style="margin-bottom: 30px">
<a href="https://swag.htmx.org">
<img src="/img/ads_top.png"/>
</a>
</div>

<div class="dark-hero full-width" classes="add appear">
<div class="main">
<span class="logo dark">&lt;<span class="blue">/</span>&gt; <span class="no-mobile">htm<span class="blue">x</span></span></span>
Expand All @@ -55,6 +80,11 @@ if(window.location.search=="?uwu=true") {
</a>
</div>
</div>
<div class="ad">
<a href="https://swag.htmx.org">
<img src="/img/ads_bottom.png"/>
</a>
</div>

<div style="border: 1px solid lightgrey; margin:24px;padding:12px;border-radius: 8px; background-color: whitesmoke; filter: drop-shadow(3px 3px darkgray)">
<b>NEWS:</b> htmx finished 2nd in the <a href="https://risingstars.js.org/2023/en#section-framework">2023
Expand Down
Binary file added www/static/img/ads_bottom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added www/static/img/ads_top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit da80ed1

Please sign in to comment.