Skip to content

Commit 9c8dad6

Browse files
committed
Sponsor style v4.
1 parent 9a1c575 commit 9c8dad6

File tree

5 files changed

+8
-26
lines changed

5 files changed

+8
-26
lines changed

public/social/bg3.png

591 KB
Loading

public/social/bg4.png

423 KB
Loading

src/components/SocialMediaSponsorCard.astro

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -27,32 +27,14 @@ if (height > maxHeight) {
2727
width = height * aspectRatio ;
2828
}
2929
30-
const x = 650 - width / 2;
30+
const x = 450 - width / 2;
3131
const y = 650 - height / 2;
3232
3333
---
3434
<svg width="900" height="900" class="h-full w-full -z-10">
35-
<image href="/social/bg2.png" width="900" height="900" />
35+
<image href="/social/bg4.png" width="900" height="900" />
3636
</svg>
3737
<svg width="900" height="900">
38-
<defs>
39-
<clipPath id="curvedCornerClip">
40-
<path
41-
d="
42-
m 885 885 l -240 0 a 240 240 0 0 1 -240 -240 a 240 240 0 0 1 240 -240 a 240 240 0 0 1 240 240 z
43-
"
44-
/>
45-
</clipPath>
46-
</defs>
47-
48-
<path
49-
d="
50-
m 885 885 l -240 0 a 240 240 0 0 1 -240 -240 a 240 240 0 0 1 240 -240 a 240 240 0 0 1 240 240 z
51-
"
52-
fill="#EDE1D1"
53-
stroke="#F5B91A"
54-
stroke-width="8"
55-
/>
5638

5739
<image
5840
class="sponsor_logo"
@@ -86,10 +68,10 @@ const y = 650 - height / 2;
8668
}
8769

8870
.box2 {
89-
margin-top:250px;
90-
margin-left:200px;
91-
width: 440px;
92-
height: 100px;
71+
margin-top:320px;
72+
margin-left:150px;
73+
width: 640px;
74+
height: 180px;
9375
font-size: 70px;
9476
color:white;
9577
padding: 2rem;

src/pages/media/sponsors.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
import { getCollection, type CollectionEntry } from "astro:content";
33
import SocialMediaSponsorCard from "@components/SocialMediaSponsorCard.astro";
4-
import { slugify } from "@utils/content";
54
65
76
const sponsors = await getCollection("sponsors");

tailwind.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default {
5454
fontFamily: {
5555
system: ["system-ui", "sans-serif"],
5656
title: [
57-
"Inter Variable",
57+
"Satoshi",
5858
"-apple-system",
5959
"BlinkMacSystemFont",
6060
"Segoe UI",
@@ -67,6 +67,7 @@ export default {
6767
"Segoe UI Symbol",
6868
],
6969
sans: [
70+
"Satoshi",
7071
"-apple-system",
7172
"BlinkMacSystemFont",
7273
"Segoe UI",

0 commit comments

Comments
 (0)