Compare commits

...

3 Commits

Author SHA1 Message Date
c0efc90c31
Merge branch 'main' into feature/admin 2024-02-29 14:17:03 +00:00
0fc0ee2a82
build: add versioning, bump to 1.1.0
Some checks failed
Docker Release / build-and-push-image (push) Failing after 1m11s
.NET / Build & Test (push) Failing after 44s
Tagged Release / Tagged Release (push) Failing after 33s
2024-02-28 19:09:02 +00:00
02db44bf2f
style: add cool spinning headshot for no other reason than I can 2024-02-28 19:07:42 +00:00
5 changed files with 101 additions and 3 deletions

View File

@ -5,6 +5,25 @@
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS> <DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<VersionPrefix>1.1.0</VersionPrefix>
</PropertyGroup>
<PropertyGroup Condition="'$(VersionSuffix)' != '' And '$(BuildNumber)' == ''">
<Version>$(VersionPrefix)-$(VersionSuffix)</Version>
<AssemblyVersion>$(VersionPrefix).0</AssemblyVersion>
<FileVersion>$(VersionPrefix).0</FileVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(VersionSuffix)' != '' And '$(BuildNumber)' != ''">
<Version>$(VersionPrefix)-$(VersionSuffix).$(BuildNumber)</Version>
<AssemblyVersion>$(VersionPrefix).$(BuildNumber)</AssemblyVersion>
<FileVersion>$(VersionPrefix).$(BuildNumber)</FileVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(VersionSuffix)' == ''">
<Version>$(VersionPrefix)</Version>
<AssemblyVersion>$(VersionPrefix).0</AssemblyVersion>
<FileVersion>$(VersionPrefix).0</FileVersion>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@ -9,7 +9,7 @@
</p> </p>
</div> </div>
<div id="landing-page-headshot" class="col-sm-12 col-md-6 justify-content-right"> <div id="landing-page-headshot" class="col-sm-12 col-md-6 justify-content-right">
<img src="~/img/headshot_512x512_2023.jpg" class="rounded-circle" style="width: 50%; max-width: 512px;" alt="Headshot"> <img id="index-headshot" src="~/img/headshot_512x512_2023.jpg" class="rounded-circle" style="width: 50%; max-width: 512px;" alt="Headshot">
</div> </div>
</div> </div>

BIN
src/img/avatar_512x512.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

View File

@ -421,13 +421,13 @@ td.trim-p p:last-child {
#landing-page-intro { #landing-page-intro {
text-align: left; text-align: left;
h1.display-4 { h1.display-4 {
font-family: "Titillium Web", sans-serif; font-family: "Titillium Web", sans-serif;
font-weight: 600; font-weight: 600;
font-style: normal; font-style: normal;
} }
p.lead { p.lead {
font-family: "Titillium Web", sans-serif; font-family: "Titillium Web", sans-serif;
font-weight: 400; font-weight: 400;
@ -455,4 +455,53 @@ td.trim-p p:last-child {
#landing-page-headshot { #landing-page-headshot {
text-align: center; text-align: center;
} }
}
#index-headshot {
cursor: pointer;
}
.headshot-spin {
animation-delay: 0s;
animation-iteration-count: 1;
animation-direction: normal;
animation-fill-mode: none;
&.headshot-spin-start {
animation-duration: .4s;
animation-timing-function: ease-in;
animation-name: headshot-spin-start;
}
&.headshot-spin-end {
animation-duration: .8s;
animation-timing-function: ease-out;
animation-name: headshot-spin-end;
}
}
@keyframes headshot-spin-start {
0% {
transform: rotateY(0) scale(1.0);
box-shadow: none;
}
100% {
transform: rotateY(90deg) scale(1.2);
box-shadow: 0 5px 5px rgba(#000, 15%);
}
}
@keyframes headshot-spin-end {
0% {
transform: rotateY(90deg) scale(1.2);
box-shadow: 0 5px 5px rgba(#000, 15%);
}
80% {
transform: rotateY(360deg) scale(1.5);
box-shadow: 0 5px 6.25px rgba(#000, 15%);
}
100% {
transform: scale(1.0);
box-shadow: none;
}
} }

View File

@ -104,4 +104,34 @@ declare const Prism: any;
UI.updateUsaCountdown(usaCountdown); UI.updateUsaCountdown(usaCountdown);
setInterval(() => UI.updateUsaCountdown(usaCountdown), 1000); setInterval(() => UI.updateUsaCountdown(usaCountdown), 1000);
} }
let avatarType = 0;
const headshot = document.getElementById("index-headshot") as HTMLImageElement;
headshot.addEventListener("click", (ev: MouseEvent) => {
if (avatarType === 0) {
headshot.classList.add("headshot-spin", "headshot-spin-start");
setTimeout(() => {
headshot.classList.remove("headshot-spin-start");
headshot.src = "/img/avatar_512x512.jpg"
headshot.classList.add("headshot-spin", "headshot-spin-end");
setTimeout(() => {
headshot.classList.remove("headshot-spin", "headshot-spin-end");
avatarType = 1;
}, 800);
}, 400);
} else if (avatarType === 1) {
headshot.classList.add("headshot-spin", "headshot-spin-start");
setTimeout(() => {
headshot.classList.remove("headshot-spin-start");
headshot.src = "/img/headshot_512x512_2023.jpg"
headshot.classList.add("headshot-spin", "headshot-spin-end");
setTimeout(() => {
headshot.classList.remove("headshot-spin", "headshot-spin-end");
avatarType = 0;
}, 800);
}, 400);
}
});
})(); })();