Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhxms committed Jul 31, 2023
1 parent 788d4bc commit e552aa3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ figure img {
padding: 0 40px;
}
}
@media screen and (max-width: 600px) {
html {
font-size: 12px;
}
}

figure h4 {
font-size: 1rem;
Expand Down
6 changes: 6 additions & 0 deletions layouts/shortcodes/age.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{{ $birthYear := 2003 }}

{{ $currentYear := now.Year }}
{{ $age := sub $currentYear $birthYear }}

<span>{{- $age -}}</span>
1 change: 1 addition & 0 deletions layouts/shortcodes/fetchdata.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
.then((response) => response.json())
.then((data) => {
let html = "";
data = data.slice(0, 36);
data.forEach((item) => {
let timestamp = new Date(item.timestamp).toLocaleString();
html += `<div class="data-item"><h4>${timestamp} - <a href="https://streams.place/shubhxms/drops/${item.id}">permalink</a></h4>${item.html}`;
Expand Down

0 comments on commit e552aa3

Please sign in to comment.