Skip to content

feat: add landing page#28

Open
adityanaithani wants to merge 8 commits intoumaring:mainfrom
adityanaithani:main
Open

feat: add landing page#28
adityanaithani wants to merge 8 commits intoumaring:mainfrom
adityanaithani:main

Conversation

@adityanaithani
Copy link
Contributor

Adds a landing page for the ring as discussed here.
Contains a list of current members and a link to submit your own site to the repo.

A few notes:

  1. I'm fairly new to Rust, so I might have made some errors in the routing code - let me know if I need to fix anything.
  2. I chose to have the site links displayed as cleaned up URLs for stylistic reasons - if anyone feels strongly about changing them to either names or ids please feel free.
  3. Again if anyone feels strongly about changing things style-wise I'm fully open to it, its pretty barebones right now but I think it works for now.

@adityanaithani
Copy link
Contributor Author

oh also i'm not sure how this is implemented in prod, if any changes need to be made for the page to actually work IRL let me know lol.

Copy link
Collaborator

@haylinmoore haylinmoore left a comment

Choose a reason for hiding this comment

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

This PR looks good ! I think we put the index.html/style.css into maybe like /src/ or even /src/public/ as / is already getting pretty messy. I think maybe in the future a re-theme that looks more umassy could be cool, but i won't let perfect be the enemy of good

index.html Outdated
</main>
<hr />
<footer>
<a id="addsite" href="https://github.com/umacabal/umaring/pulls"
Copy link
Collaborator

@haylinmoore haylinmoore Apr 12, 2025

Choose a reason for hiding this comment

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

Suggested change
<a id="addsite" href="https://github.com/umacabal/umaring/pulls"
<a id="addsite" href="https://github.com/umacabal/umaring/"

I think just bringing people to the readme makes more sense since it includes instructions as opposed to just dropping someone on the PR page

styles.css Outdated
font-size: 45px;
font-weight: 500;
letter-spacing: 0.05em;
text-shadow: 0px 0px 2px #d9d9d9;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I realllly don't like shadow like this, it just feels a little fuzzy

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah that's fair. I'm honestly not a huge fan of the overall look either, but like you said we can look at making things more UMass later since I really have no ideas.

src/get.rs Outdated
}

pub async fn landing_page() -> Result<Response<String>, std::convert::Infallible> {
match read_to_string("index.html").await {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Sorry, I just realized, currently we only copy the binary to the container and not any assets or resources so I don't think this read_to_string would work in the docker container. It's why we use include_str!, if we move the files into their own directory like /public/ we could copy it into the container and then do a static serving with something like ServeDir

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Did not know about ServeDir! Made everything so much easier.

@adityanaithani
Copy link
Contributor Author

Sorry this took so long to get back to!

Everything that was mentioned has been fixed. The Docker container works (on my machine) - should be good to go.

@haylinmoore haylinmoore force-pushed the main branch 3 times, most recently from 3406607 to 9801520 Compare March 1, 2026 04:28
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.

2 participants