Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created initial, read-only newsletters web interface #244

Merged
merged 21 commits into from
Jan 24, 2022
Merged

Conversation

adityashah6
Copy link
Contributor

  • created acmcsuf.com/newsletters.xml
  • created web interface for acmcsuf.com/newsletters using acmcsuf.com/newsletters.json
  • created web interface for each blog post

@vercel
Copy link

vercel bot commented Dec 6, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/ethanthatonekid/acm-csuf-site/vQDHS4xDP9e1K2sLRrRAAtRzjGC9
✅ Preview: https://acm-csuf-site-git-fix-121-ethanthatonekid.vercel.app

@vercel vercel bot temporarily deployed to Preview December 6, 2021 21:39 Inactive
src/routes/newsletters/index.svelte Outdated Show resolved Hide resolved
@EthanThatOneKid EthanThatOneKid requested a review from a user December 8, 2021 01:06
@EthanThatOneKid
Copy link
Owner

EthanThatOneKid commented Dec 10, 2021

In order for the /newsletters pages to exist in production, a link to it must exist somewhere on the website. For now, maybe we can put a link to the /newsletters page on the footer next to the GitHub icon.

@EthanThatOneKid EthanThatOneKid linked an issue Dec 11, 2021 that may be closed by this pull request
4 tasks
@@ -38,3 +42,36 @@ export const newslettersQuery = `{
}
}
}`;

/* eslint-disable */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is eslint disabled here?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question. There was likely an eslint error that was not going away easily. Any unnecessary eslint comments (including the one you've mentioned) should be removed before this PR is fully approved/merged.

src/routes/newsletters/[id].svelte Outdated Show resolved Hide resolved
<content:encoded>
<div style="margin-top: 50px; font-style: italic;">
<strong>
<a href="${website}/newsletters/${post.id}">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a synopsis of the blog article instead of just having a "Keep reading" link. If it's outside the scope of this PR, I think we should create a new follow-up issue to track it.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, is it a good idea to format RSS XML like it's HTML? HTML is much less strict; the generated output might not be conformant.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HTML is less strict indeed, so instead, we could use a different approach than using a string template. I have not used this library personally, but node-rss seems to be a possible choice for this purpose. The node-rss repository has not been updated in over 5 years, but that might be fine since RSS feeds are not expected to change anytime soon AFAIK.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, will get started on official design

@vercel vercel bot temporarily deployed to Preview January 10, 2022 09:01 Inactive
Copy link
Collaborator

@diamondburned diamondburned left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Giving the approval, though I still think we don't actually need gfm.css. That can probably be removed in the future once we can polish up our base stylesheet.

@vercel vercel bot temporarily deployed to Preview January 22, 2022 09:09 Inactive
@vercel vercel bot temporarily deployed to Preview January 22, 2022 09:12 Inactive
@vercel vercel bot temporarily deployed to Preview January 22, 2022 17:46 Inactive
@vercel vercel bot temporarily deployed to Preview January 22, 2022 18:00 Inactive
@vercel vercel bot temporarily deployed to Preview January 22, 2022 18:10 Inactive
@EthanThatOneKid EthanThatOneKid requested review from a user and diamondburned January 22, 2022 18:12
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vercel vercel bot temporarily deployed to Preview January 24, 2022 06:31 Inactive
* Blog page ready

* Removed unused comments

* Removed unused thing lol
@vercel vercel bot temporarily deployed to Preview January 24, 2022 07:44 Inactive
@vercel vercel bot temporarily deployed to Preview January 24, 2022 07:48 Inactive
@adityashah6 adityashah6 merged commit 829fa61 into main Jan 24, 2022
@jaasonw jaasonw deleted the fix/121 branch February 21, 2022 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add /newsletters to the site 📰
3 participants