Skip to content

Commit

Permalink
Add Sponsor DeadlockRank
Browse files Browse the repository at this point in the history
  • Loading branch information
raimannma committed Dec 20, 2024
1 parent 89e083a commit 9a173eb
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 1 deletion.
3 changes: 3 additions & 0 deletions public/assets/info.svg
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 public/assets/sponsors/deadlockrank.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,22 @@ <h2>Deadlock Playground Database</h2>
</p>
</div>
</div>
<div>
<div class="tooltip">
<h2>Sponsored by <img src="assets/info.svg" width="20" height="20" alt="Get a Sponsor" class="info-icon">
</h2>
<span class="tooltip-info">
Contact us on
<a href="https://discord.gg/XMF9Xrgfqu" title="Discord" target="_blank">discord</a>
if you want to become a sponsor.
</span>
</div>

<br>
<a href="https://deadlockrank.com/" title="Deadlock Rank" target="_blank" class="feature sponsor">
<img src="assets/sponsors/deadlockrank.png" alt="https://deadlockrank.com">
</a>
</div>
</main>
<footer>
<p id="policy">
Expand Down
35 changes: 34 additions & 1 deletion public/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,39 @@ main {
}
}
}

a.sponsor {
img {
width: 60%;
height: auto;
margin: 0 auto;
}
}

img.info-icon {
vertical-align: top;
cursor: pointer;
}

div.tooltip .tooltip-info {
visibility: hidden;
width: 240px;
background-color: black;
text-align: center;
border-radius: 6px;
padding: 5px 0;
position: absolute;
z-index: 1;
font-size: 1.2rem;

a {
color: #fa4454;
}
}

div.tooltip:hover .tooltip-info {
visibility: visible;
}
}

footer {
Expand Down Expand Up @@ -158,7 +191,7 @@ a.disabled-link {
text-overflow: ellipsis;
max-width: 450px;

a{
a {
text-decoration: none;
}
}

0 comments on commit 9a173eb

Please sign in to comment.