Tweak: Added Project Night to Activities and modified link validation#9
Open
aberkowitz wants to merge 1 commit into
Open
Tweak: Added Project Night to Activities and modified link validation#9aberkowitz wants to merge 1 commit into
aberkowitz wants to merge 1 commit into
Conversation
aberkowitz
commented
Jun 2, 2026
| @@ -0,0 +1,6 @@ | |||
| title: Project Night | |||
| description: A weekly virtual gathering to work on our personal projects, and share learnings. Message @aberkowitz your email for an invite. | |||
| link: "slack://channel?team=T0A0T7A5Q&id=D3KKP1X7A" | |||
Author
There was a problem hiding this comment.
Sand
This is a deeplink to message me in slack. Eventually, there will be a dedicated channel for the event.
| title: Project Night | ||
| description: A weekly virtual gathering to work on our personal projects, and share learnings. Message @aberkowitz your email for an invite. | ||
| link: "slack://channel?team=T0A0T7A5Q&id=D3KKP1X7A" | ||
| color: "#735FFF" |
Author
There was a problem hiding this comment.
Note
I thought about this color way more than I should have. Hopefully the color I have chosen will not sentence me to designer hell.
document.body.style.background = '#fff';
document.body.innerHTML = '<div id="container"> </div>';
container = document.getElementById('container');
let colors = ['#fb7185', '#22d3ee', '#34d399', '#c084fc', '#fbbf24', '#735FFF'];
colors.forEach( (color) => {
let color_container = document.createElement('div');
color_container.style = `height: 50px; width: 50px; background: ${color}`;
container.appendChild(color_container);
});
| title: z.string().min(2), | ||
| description: z.string().min(10), | ||
| link: z.string().optional().refine(v => !v || v.startsWith('/') || v.startsWith('http'), { | ||
| link: z.string().optional().refine(v => !v || v.startsWith('/') || v.startsWith('http') || v.startsWith('slack'), { |
Author
There was a problem hiding this comment.
Sand
There's probable a better way to do this validation, but I don't care.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This tweak adds "Project Night" to the Programs section of the DevCongress homepage. In addition, I added a change to the link validation in
content.config.tsto permit slack URI's.Testing
pnpm buildpnpm previewSuccess: Project Night is displayed, with a working
Learn more →linkScreenshot: