site: Add PIT call to action
additionally:
* add simple fade out via transition API.
Change-Id: I8a512893d465782392ba17429eb390745ebe6684
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1846
Reviewed-by: q3k <q3k@hackerspace.pl>
diff --git a/hswaw/site/static/BUILD.bazel b/hswaw/site/static/BUILD.bazel
index 4da9c9e..8d3bcdc 100644
--- a/hswaw/site/static/BUILD.bazel
+++ b/hswaw/site/static/BUILD.bazel
@@ -1,20 +1,14 @@
-load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("@io_bazel_rules_go//extras:embed_data.bzl", "go_embed_data")
+load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_embed_data(
name = "static",
- srcs = [
- "animations.js",
- "fonts.css",
- "frezarka.jpg",
- "kuka.jpg",
- "landing.css",
- "led.js",
- "neon-syrenka.svg",
- "serwerownia.jpg",
- "space.jpg",
- "statut_warszawski_hackerspace-v1.3.pdf",
- "tokarka.jpg",
+ srcs = glob(
+ [
+ "*",
+ ],
+ ["BUILD.bazel"],
+ ) + [
"@com_gstatic_fonts_comfortaa_400//file:font.ttf",
"@com_gstatic_fonts_inconsolata_400//file:font.ttf",
"@com_gstatic_fonts_inconsolata_700//file:font.ttf",
diff --git a/hswaw/site/static/landing.css b/hswaw/site/static/landing.css
index cf13754..21cedb4 100644
--- a/hswaw/site/static/landing.css
+++ b/hswaw/site/static/landing.css
@@ -242,7 +242,7 @@
object-fit: contain;
}
-#gallery-nav {
+.gallery-nav {
display: flex;
flex-direction: row;
padding: 0;
@@ -250,17 +250,17 @@
justify-content: center;
flex-wrap: wrap;
}
-#gallery-nav > li {
+.gallery-nav > li {
margin: 0;
padding: 0;
}
-#gallery-nav > li:hover {
+.gallery-nav > li:hover {
background-color: var(--darkbgaccent);
}
-#gallery-nav > li.active {
+.gallery-nav > li.active {
background-color: var(--secondary);
}
-#gallery-nav > li > a {
+.gallery-nav > li > a {
display: block;
text-decoration: none;
padding: 0 15px;
@@ -276,6 +276,7 @@
@media screen and (max-width: 1000px) {
.bottom {
+ gap: 1em;
padding: 2em 1em 0 1em;
}
}
@@ -290,7 +291,7 @@
}
}
-.bottom .about li + li {
+.bottom .about li + li:not('.gallery-nav') {
margin-top: 0.5em;
}
@@ -394,3 +395,12 @@
.atlist li:last-child:after {
content: ".";
}
+
+
+@media (prefers-reduced-motion) {
+ ::view-transition-group(*),
+ ::view-transition-old(*),
+ ::view-transition-new(*) {
+ animation: none !important;
+ }
+}
diff --git a/hswaw/site/static/pit1.jpg b/hswaw/site/static/pit1.jpg
new file mode 100644
index 0000000..f877724
--- /dev/null
+++ b/hswaw/site/static/pit1.jpg
Binary files differ
diff --git a/hswaw/site/static/pit2.jpg b/hswaw/site/static/pit2.jpg
new file mode 100644
index 0000000..609c4eb
--- /dev/null
+++ b/hswaw/site/static/pit2.jpg
Binary files differ