mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-24 20:03:14 +01:00
Stop h-card icons on homepage, fix LCH
This commit is contained in:
parent
2711c2bc61
commit
5633505acd
3 changed files with 14 additions and 12 deletions
|
@ -1,11 +1,13 @@
|
|||
<div class="h-card vcard">
|
||||
<a href="https://byjp.me" rel="me" class="u-uid u-url"><img class="profile u-photo" src="profile-512.jpg" alt="A photo of me smiling, with short brown hair, a beard and glasses." /></a>
|
||||
<span class="p-note">Hello! I'm <em class="p-name fn always-accented"><span class="p-nickname">JP</span> <span class="p-family-name">Hastings-Spital</span></em>, a <span class="p-category category">maker</span>, <span class="p-category category">software engineer</span>, <span class="p-category category">swing dancer</span>, and all-round <span class="p-category category">miriscient chap</span> living in <span class="adr p-adr h-adr"><span class="p-locality locality">London</span>, <span class="p-country-name country-name">UK</span></span>. <span class="h-card">I'm <span clas="p-job-title">principal engineer</a> at <a href="https://deliveroo.engineering/" target="_blank" class="p-org u-url" rel="noopener">Deliveroo</a></span>.</span>
|
||||
</div>
|
||||
<div class="about-me">
|
||||
<div class="h-card vcard no-emoji">
|
||||
<a href="https://byjp.me" rel="me" class="u-uid u-url"><img class="profile u-photo" src="profile-512.jpg" alt="A photo of me smiling, with short brown hair, a beard and glasses." /></a>
|
||||
<span class="p-note">Hello! I'm <em class="p-name fn always-accented"><span class="p-nickname">JP</span> <span class="p-family-name">Hastings-Spital</span></em>, a <span class="p-category category">maker</span>, <span class="p-category category">software engineer</span>, <span class="p-category category">swing dancer</span>, and all-round <span class="p-category category">miriscient chap</span> living in <span class="adr p-adr h-adr"><span class="p-locality locality">London</span>, <span class="p-country-name country-name">UK</span></span>. <span class="h-card no-emoji">I'm <span clas="p-job-title">principal engineer</a> at <a href="https://deliveroo.engineering/" target="_blank" class="p-org u-url" rel="noopener">Deliveroo</a></span>.</span>
|
||||
</div>
|
||||
|
||||
<p>I post here infrequently about things I've created or care about, as well as keeping track of <a href="/now">what I'm up to now</a>. Recently I've written
|
||||
{{ $posts := where .Site.RegularPages "Params.type" "!=" "timeless" }}
|
||||
{{ range $posts | first 2 }}
|
||||
<a href="{{.Permalink}}">{{ .Title }}</a>,
|
||||
{{ end }}
|
||||
and {{ with index $posts 2 }}<a href="{{.Permalink}}">{{ .Title }}</a>{{ end }}.
|
||||
<p>I post here infrequently about things I've created or care about, as well as keeping track of <a href="/now">what I'm up to now</a>. Recently I've written
|
||||
{{ $posts := where .Site.RegularPages "Params.type" "!=" "timeless" }}
|
||||
{{ range $posts | first 2 }}
|
||||
<a href="{{.Permalink}}">{{ .Title }}</a>,
|
||||
{{ end }}
|
||||
and {{ with index $posts 2 }}<a href="{{.Permalink}}">{{ .Title }}</a>{{ end }}.
|
||||
</div>
|
||||
|
|
|
@ -54,7 +54,7 @@ function updateAccentColor() {
|
|||
const now = new Date()
|
||||
let start = new Date(now)
|
||||
const hue = (now - start.setHours(0,0,0,0)) / 240000
|
||||
document.documentElement.style.setProperty('--accent', `lch(60% 180 ${hue})`);
|
||||
document.documentElement.style.setProperty('--accent', `lch(60% 120 ${hue})`);
|
||||
}
|
||||
setInterval(updateAccentColor, 15000)
|
||||
updateAccentColor()
|
||||
|
|
|
@ -720,7 +720,7 @@ select:focus + .focus {
|
|||
border-radius: inherit;
|
||||
}
|
||||
|
||||
.h-card:not(.vcard) .u-url::before {
|
||||
.h-card:not(.no-emoji) .u-url::before {
|
||||
content: "📇";
|
||||
margin-right: 3px;
|
||||
text-decoration: none;
|
||||
|
|
Loading…
Reference in a new issue