forward we go!
This commit is contained in:
parent
d80008ae23
commit
b93aa8e840
4 changed files with 134 additions and 35 deletions
|
|
@ -6,7 +6,7 @@
|
|||
}
|
||||
*:hover {
|
||||
filter: grayscale(0%) !important;
|
||||
transition: filter .1s linear;
|
||||
transition: filter .5s linear;
|
||||
}
|
||||
|
||||
img {
|
||||
|
|
@ -88,18 +88,18 @@ main {
|
|||
|
||||
#hero {
|
||||
margin: 0;
|
||||
background-color: purple;
|
||||
border-style: double;
|
||||
border-color: orange;
|
||||
border-width: 10px;
|
||||
width: 100vw;
|
||||
padding:0;
|
||||
transition: all 2s linear;
|
||||
.overlay {
|
||||
display: block;
|
||||
top: 0;
|
||||
left: 0;
|
||||
max-width: 720px;
|
||||
}
|
||||
}
|
||||
#hero:hover {
|
||||
background-color: orange;
|
||||
border-color: purple;
|
||||
color: purple;
|
||||
|
||||
transition: all 2s linear;
|
||||
}
|
||||
|
||||
|
|
@ -128,7 +128,7 @@ margin: 0;
|
|||
footer {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
margin: 20px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,9 @@
|
|||
|
||||
{{ define "hero" }}
|
||||
<section id="hero">
|
||||
<h1> {{ .Title }}</h1>
|
||||
<div class="overlay">
|
||||
{{ partial "body/header-hero.svg" . }}
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,18 +1,21 @@
|
|||
<style>
|
||||
nav {
|
||||
padding: 20px;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
bottom: 20px;
|
||||
left: 20px;
|
||||
right: 20px;
|
||||
z-index: 1000;
|
||||
width: 100vw;
|
||||
height: 100px;
|
||||
background-color: rgba(128, 0, 128, .5);
|
||||
color: orange;
|
||||
background-color: rgba(0,0,0,0.5);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
backdrop-filter: blur(20px);
|
||||
color: orange;
|
||||
transition: all unset;
|
||||
border-radius: 5px;
|
||||
ul {
|
||||
display: flex;
|
||||
list-style-type: none;
|
||||
height: 100px;
|
||||
}
|
||||
li > a {
|
||||
color: orange;
|
||||
|
|
@ -23,8 +26,17 @@ nav {
|
|||
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="/2025/#peertube">Video</a></li>
|
||||
<li><a href="/2025/#about">About</a></li>
|
||||
|
||||
<li>
|
||||
<a href="/2025/#about">
|
||||
{{ partial "svg/basspistol-logotype.svg" }}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/2025/#peertube">
|
||||
{{ partial "svg/heart.svg" }}
|
||||
</a>
|
||||
</li>
|
||||
<li><a href="/2025/#radio">Radio</a></li>
|
||||
<li><a href="/2025/#discog">Discography</a></li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -12,6 +12,25 @@
|
|||
margin: 2px;
|
||||
flex: 1 1 300px;
|
||||
|
||||
.cartouche {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: left;
|
||||
flex-wrap: wrap;
|
||||
width: 100%;
|
||||
}
|
||||
.cartouche > a {
|
||||
flex: 0 0 100px;
|
||||
}
|
||||
.cartouche > p {
|
||||
flex: 1 1 100px;
|
||||
font-size: 1em;
|
||||
font-weight: bold;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
h2 {
|
||||
font-size: 24em;
|
||||
|
|
@ -34,18 +53,23 @@
|
|||
}
|
||||
}
|
||||
|
||||
.border {
|
||||
.peertubes {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
align-items: end;
|
||||
padding: 20px;
|
||||
justify-content: center;
|
||||
flex: 1 1 300px;
|
||||
min-height: 300px;
|
||||
background-size: cover;
|
||||
background-position: center center;
|
||||
linear-gradient(to bottom, rgba(245, 246, 252, 0.52), rgba(117, 19, 93, 0.73)),
|
||||
svg {
|
||||
margin:auto;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
.peertubes:hover {
|
||||
background-size: cover;
|
||||
background-position: center center;
|
||||
linear-gradient(to bottom, rgba(245, 246, 252, 0), rgba(117, 19, 93, 0)),
|
||||
}
|
||||
|
||||
.section-headers {
|
||||
|
|
@ -69,8 +93,9 @@
|
|||
|
||||
|
||||
|
||||
|
||||
{{ $data := dict }}
|
||||
{{ $url := "https://v.basspistol.org/api/v1/videos?isLocal=true&nsfw=false&sort=-hot&categoryOneOf=1&count=4" }}
|
||||
{{ $url := "https://v.basspistol.org/api/v1/video-playlists/tubcTiUQaJ29JxeCzRqvUc/videos?count=100" }}
|
||||
{{ with try (resources.GetRemote $url) }}
|
||||
{{ with .Err }}
|
||||
{{ errorf "%s" . }}
|
||||
|
|
@ -82,19 +107,79 @@
|
|||
{{ end }}
|
||||
|
||||
{{ with $data.data }}
|
||||
{{ range . }}
|
||||
{{ range . | last 5 }}
|
||||
|
||||
<article class="border" style="background-image:linear-gradient(to bottom, rgba(128, 0, 128, 1), rgba(128, 0, 128, .75)),url(https://v.basspistol.org{{ .previewPath }})">
|
||||
|
||||
<a href="{{ .url }}" target="_blank">
|
||||
<svg width="218" height="218" version="1.1" viewBox="0 0 57.679 57.679" xmlns="http://www.w3.org/2000/svg">
|
||||
<g transform="translate(-76.672 -120.17)" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="m134.35 149.01a28.84 28.84 0 0 1-28.84 28.84 28.84 28.84 0 0 1-28.84-28.84 28.84 28.84 0 0 1 28.84-28.84 28.84 28.84 0 0 1 28.84 28.84z" fill="#800080" stroke-width="4.8381" style="paint-order:markers stroke fill"/>
|
||||
<path d="m99.739 139.6 14.82 9.4106-14.82 9.4105z" fill="#f68200" stroke="#f68200" stroke-width="3.4098" style="paint-order:stroke fill markers"/>
|
||||
</g>
|
||||
</svg>
|
||||
</a>
|
||||
<article class="peertubes" style="background-image:linear-gradient(to bottom, rgba(128, 0, 128, 1), rgba(128, 0, 128, .75)),url(https://v.basspistol.org{{ .video.previewPath }})">
|
||||
<div class="cartouche">
|
||||
<a href="{{ .video.url }}" target="_blank">
|
||||
<svg
|
||||
width="75"
|
||||
height="75"
|
||||
version="1.1"
|
||||
viewBox="0 0 57.679166 57.67917"
|
||||
id="svg2"
|
||||
xml:space="preserve"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"><defs
|
||||
id="defs2"><clipPath
|
||||
clipPathUnits="userSpaceOnUse"
|
||||
id="clipPath2"><path
|
||||
d="M 58.028369,28.839501 A 28.839999,28.839999 0 0 1 29.188368,57.6795 28.839999,28.839999 0 0 1 0.34836804,28.839501 28.839999,28.839999 0 0 1 29.188368,-4.9957302e-4 28.839999,28.839999 0 0 1 58.028369,28.839501 Z"
|
||||
fill="purple"
|
||||
stroke-width="4.83809"
|
||||
style="stroke-linecap:round;stroke-linejoin:round;paint-order:markers stroke fill"
|
||||
id="path3" /></clipPath><filter
|
||||
style="color-interpolation-filters:sRGB"
|
||||
id="filter25"
|
||||
x="-0.64945344"
|
||||
y="-0.51138139"
|
||||
width="2.2988969"
|
||||
height="2.0227628"><feFlood
|
||||
result="flood"
|
||||
in="SourceGraphic"
|
||||
flood-opacity="1.000000"
|
||||
flood-color="rgb(0,0,0)"
|
||||
id="feFlood24" /><feGaussianBlur
|
||||
result="blur"
|
||||
in="SourceGraphic"
|
||||
stdDeviation="3.300000"
|
||||
id="feGaussianBlur24" /><feOffset
|
||||
result="offset"
|
||||
in="blur"
|
||||
dx="0.000000"
|
||||
dy="0.000000"
|
||||
id="feOffset24" /><feComposite
|
||||
result="comp1"
|
||||
operator="in"
|
||||
in="flood"
|
||||
in2="offset"
|
||||
id="feComposite24" /><feComposite
|
||||
result="comp2"
|
||||
operator="over"
|
||||
in="SourceGraphic"
|
||||
in2="comp1"
|
||||
id="feComposite25" /></filter></defs><image
|
||||
width="58.376736"
|
||||
height="57.679001"
|
||||
preserveAspectRatio="none"
|
||||
xlink:href="{{ range .video.channel.avatars | first 1 }}{{ .fileUrl }}{{ end }}"
|
||||
id="image1"
|
||||
x="0"
|
||||
y="0"
|
||||
clip-path="url(#clipPath2)"
|
||||
transform="matrix(0.9999855,0,0,1.0000029,-0.34836299,0)" /><path
|
||||
d="m 23.067499,19.43 14.82,9.4106 -14.82,9.4105 z"
|
||||
fill="orange"
|
||||
stroke="none"
|
||||
stroke-width="3.4098"
|
||||
style="fill:orange;fill-opacity:1;stroke:orange;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;paint-order:stroke fill markers;filter:url(#filter25)"
|
||||
id="path2" />
|
||||
</svg>
|
||||
</a>
|
||||
<p>{{ .video.name }}</p>
|
||||
|
||||
</div>
|
||||
</article>
|
||||
|
||||
{{ end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue