Skip to content

Commit

Permalink
add sponsor link
Browse files Browse the repository at this point in the history
  • Loading branch information
ccbrown committed Nov 14, 2024
1 parent 10e7351 commit 6ca1805
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 61 deletions.
7 changes: 7 additions & 0 deletions server/index_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ var index = `<!DOCTYPE html><html>
{{end}}
</ul>
</header>
<div class="notice">
<p>Tala moana, warrior! This website is approaching its <strong>12th</strong> birthday! If you've found it useful over the years, you can now show your appreciation in the form of a <a href="https://github.com/sponsors/ccbrown" target="_blank">recurring or one-time donation on GitHub</a>! In addition to showing your appreciation, this offsets server costs and helps support further feature developments (Twitter/X support? Search? GenAI?).</p>
<p>Thanks, and stay safe out there, Exile. ❤️</p>
</div>
<div class="content-box">
<h1>{{call $.Translate "Activity"}}</h1>
<a href="rss"><img src="static/images/rss-icon-28.png" class="rss-icon" /></a>
Expand All @@ -62,6 +66,9 @@ var index = `<!DOCTYPE html><html>
Please direct feedback to <a href="https://www.pathofexile.com/forum/view-thread/69448" target="_blank">this thread</a>.
Want a new feature? <a href="https://github.com/ccbrown/gggtracker" target="_blank">Add it yourself!</a>
</p>
<p>
Appreciate the site? Show your support by <a href="https://github.com/sponsors/ccbrown" target="_blank">sponsoring me</a>! ❤️
</p>
</footer>
</div>
Expand Down
139 changes: 78 additions & 61 deletions server/static/style.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
a {
color: #C9BA8A;
text-decoration: none;
text-decoration: none;
}

a:hover {
Expand Down Expand Up @@ -52,6 +52,23 @@ td {
text-align: right;
}

div.notice {
background-color: #DFCF99;
padding: 0px 12px;
margin: 24px;
border: 1px solid #363636;
box-shadow: 3px 3px 16px 4px #000000;
width: 980px;
position: relative;
font-size: 14px;
color: #202020;
}

div.notice a, div.notice a:visited, div.notice a:active, div.notice a:hover {
color: #202020;
text-decoration: underline;
}

div.content-box {
background-color: #202020;
padding: 12px;
Expand Down Expand Up @@ -107,11 +124,11 @@ footer {
}

footer a {
text-decoration: underline;
text-decoration: underline;
}

td.poster {
text-align: center;
text-align: center;
}

.forum td.poster a {
Expand All @@ -126,7 +143,7 @@ td.poster {
}

.reddit td.poster a {
color: #f33f3f;
color: #f33f3f;
text-decoration: none;
font-weight: bold;
}
Expand All @@ -137,124 +154,124 @@ td.poster {
}

.reddit td {
background-color: #07192c;
background-color: #07192c;
}

td.toggle {
padding: 0px;
width: 34px;
height: 34px;
padding: 0px;
width: 34px;
height: 34px;
}

td.time {
width: 200px;
text-align: center;
width: 200px;
text-align: center;
}

td.forum {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
max-width: 140px;
text-align: center;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
max-width: 140px;
text-align: center;
}

.reddit .forum a::before {
content: '/r/';
content: '/r/';
}

td.toggle {
position: relative;
padding: 0px;
position: relative;
padding: 0px;
}

td.toggle img {
cursor: pointer;
width: 18px;
height: 18px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
filter: opacity(70%);
cursor: pointer;
width: 18px;
height: 18px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
filter: opacity(70%);
}

.expander:hover, .collapser:hover {
filter: opacity(100%);
filter: opacity(100%);
}

td.icon {
position: relative;
padding: 0px;
width: 35px;
position: relative;
padding: 0px;
width: 35px;
}

td.icon img {
position: absolute;
height: 24px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
position: absolute;
height: 24px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

td.title {
max-width: 450px;
overflow: hidden;
max-width: 450px;
overflow: hidden;
}

td.body {
background-color: #262626;
padding: 10px;
background-color: #262626;
padding: 10px;
}

td.body blockquote {
background: #323232;
border-left: 5px solid #1a1a1a;
margin: 1.5em 10px;
padding: 0.5em 10px;
background: #323232;
border-left: 5px solid #1a1a1a;
margin: 1.5em 10px;
padding: 0.5em 10px;
}

td.body img {
max-width: 100%;
max-width: 100%;
}

.spoilerHidden .spoilerContent {
display: none;
display: none;
}

.spoilerTitle input[type="button"] {
margin-left: 8px;
color: #c9ba8a;
background-color: #0f0f0f;
border: 0;
cursor: pointer;
text-decoration: none;
margin-left: 8px;
color: #c9ba8a;
background-color: #0f0f0f;
border: 0;
cursor: pointer;
text-decoration: none;
}

.spoilerTitle input[type="button"]:hover {
text-decoration: underline;
text-decoration: underline;
}

.spoiler {
border: 1px solid #1a1a1a;
background-color: #323232;
border: 1px solid #1a1a1a;
background-color: #323232;
}

.spoilerTitle, .spoilerContent {
padding: 8px;
padding: 8px;
}

#locale-selection {
float: right;
list-style: none;
margin: 0px;
float: right;
list-style: none;
margin: 0px;
}

#locale-selection li {
display: inline;
opacity: 0.5;
display: inline;
opacity: 0.5;
}

#locale-selection li.selected-locale {
opacity: 1.0;
opacity: 1.0;
}

0 comments on commit 6ca1805

Please sign in to comment.