aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/static
diff options
context:
space:
mode:
authorGravatar hedy <[email protected]>2024-01-22 15:28:16 +0800
committerGravatar hedy <[email protected]>2024-01-22 15:28:16 +0800
commitbbb3f56eef45987a74267130ee1c19d6c50a53ee (patch)
tree12a88c6c9c0f7a1456e564f3843a3630b9062860 /pydis_site/static
parentEvents: Use Masonry layout for gallery of events (diff)
Events: Use nice cover images with backgrounds
Diffstat (limited to 'pydis_site/static')
-rw-r--r--pydis_site/static/css/events/base.css19
-rw-r--r--pydis_site/static/images/events/gallery/adventofcode.pngbin0 -> 48332 bytes
-rw-r--r--pydis_site/static/images/events/gallery/gamejam.pngbin0 -> 28464 bytes
-rw-r--r--pydis_site/static/images/events/gallery/pixels.pngbin0 -> 4904 bytes
-rw-r--r--pydis_site/static/images/events/gallery/pyweek.pngbin0 -> 13951 bytes
5 files changed, 15 insertions, 4 deletions
diff --git a/pydis_site/static/css/events/base.css b/pydis_site/static/css/events/base.css
index b5cd69a3..777a2bcf 100644
--- a/pydis_site/static/css/events/base.css
+++ b/pydis_site/static/css/events/base.css
@@ -19,9 +19,20 @@ pre {
margin-bottom: 0 !important
}
+
+.event-gallery .box {
+ padding: 0;
+}
+
+.event-gallery .box-content {
+ padding: 1.25rem;
+}
+
.event-gallery img {
- border-radius: 10px;
- max-width: 50%;
+ object-fit: cover;
+ /* Same as that of box */
+ border-top-left-radius: 6px;
+ border-top-right-radius: 6px;
}
/* CSS-only Masonry layout:
@@ -43,7 +54,7 @@ pre {
/* 3 columns */
.event-gallery {
/* Required. Must be only slightly taller than the tallest column */
- height: 60rem;
+ height: 80rem;
}
.event-gallery .box {
@@ -68,7 +79,7 @@ pre {
@media (max-width: 900px) {
/* 2 columns */
.event-gallery {
- height: 80rem;
+ height: 90rem;
}
.event-gallery .box {
diff --git a/pydis_site/static/images/events/gallery/adventofcode.png b/pydis_site/static/images/events/gallery/adventofcode.png
new file mode 100644
index 00000000..77b6e015
--- /dev/null
+++ b/pydis_site/static/images/events/gallery/adventofcode.png
Binary files differ
diff --git a/pydis_site/static/images/events/gallery/gamejam.png b/pydis_site/static/images/events/gallery/gamejam.png
new file mode 100644
index 00000000..fa9b80b3
--- /dev/null
+++ b/pydis_site/static/images/events/gallery/gamejam.png
Binary files differ
diff --git a/pydis_site/static/images/events/gallery/pixels.png b/pydis_site/static/images/events/gallery/pixels.png
new file mode 100644
index 00000000..55398a53
--- /dev/null
+++ b/pydis_site/static/images/events/gallery/pixels.png
Binary files differ
diff --git a/pydis_site/static/images/events/gallery/pyweek.png b/pydis_site/static/images/events/gallery/pyweek.png
new file mode 100644
index 00000000..dd40570e
--- /dev/null
+++ b/pydis_site/static/images/events/gallery/pyweek.png
Binary files differ