Skip to content

Commit 949cc5a

Browse files
authored
add summer of making announcement and /slack redirect (#1537)
1 parent 0218b70 commit 949cc5a

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

next.config.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ const nextConfig = {
1515
'scrapbook.hackclub.com',
1616
'assets.hackclub.com',
1717
'v5.airtableusercontent.com',
18-
'hcb.hackclub.com'
18+
'hcb.hackclub.com',
19+
"hc-cdn.hel1.your-objectstorage.com"
1920
],
2021
remotePatterns: [
2122
{
@@ -69,6 +70,11 @@ const nextConfig = {
6970
permanent: true
7071
},
7172
{ source: '/slack_invite/', destination: '/slack/', permanent: true },
73+
{
74+
source: '/slack/',
75+
destination: 'https://summer.hackclub.com',
76+
permanent: false
77+
},
7278
{
7379
source: '/jobs/bank-tech-lead/',
7480
destination: '/jobs/lead-hacker/',

pages/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,13 @@ function Page({
204204
priority
205205
gradient="linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.45))"
206206
/>
207+
<Announcement
208+
width="90vw"
209+
copy="This summer is yours for the making!"
210+
caption="Get free Flipper Zeros, Framework Laptops, 3D Printers, and more. Join Summer of Making! Jun 16 - Aug 31."
211+
href="https://summer.hackclub.com/"
212+
imgSrc="https://hc-cdn.hel1.your-objectstorage.com/s/v3/779a5d748938b66ae93a566cc9699e636b01d462_summerlogo.png"
213+
/>
207214
<Box
208215
sx={{
209216
width: '90vw',

0 commit comments

Comments
 (0)