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

Added Resources title and section title component #177

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

IanWearsHat
Copy link
Member

@IanWearsHat IanWearsHat commented Oct 8, 2024

Closes #168 and #171.

Changed the section title in API Resources to show custom section title.

Go to the /resources route to see the changes

Copy link

github-actions bot commented Oct 8, 2024

Deploy preview for zothacks-site-2023 ready!

Name Hack at UCI Site
Preview Visit Preview
Commit a23be66

Copy link

github-actions bot commented Oct 8, 2024

Deploy preview for zothacks-site-2023-sanity ready!

Name Sanity Studio
Preview Visit Preview
Commit 0063909

@IanWearsHat IanWearsHat linked an issue Oct 9, 2024 that may be closed by this pull request
@IanWearsHat IanWearsHat marked this pull request as ready for review October 9, 2024 17:01

function Landing() {
return (
<div className={styles.landing}>
<h1>Resources</h1>
<Image src={resourcesTitle} alt="resources title" />
Copy link
Contributor

Choose a reason for hiding this comment

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

Issue: the size of the Resources Title stays the same for all screen sizes, so on small screens (i.e iPhone SE), the title starts getting cut off on the sides.

Comment on lines +3 to +4
$item-padding-y: 32px;
$item-padding-x: 48px;
Copy link
Contributor

Choose a reason for hiding this comment

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

Thought: similar to the FAQs, on smaller screen sizes the text looks a bit squished.

@@ -1,27 +1,26 @@
import { PortableText } from "@portabletext/react";
import { client } from "@/lib/sanity/client";
Copy link
Contributor

Choose a reason for hiding this comment

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

Chore: client is defined in our own code, so where it was initially placed was correct.

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.

[2024] Resources Page: Refactor Resource Section Title [2024] Resources Page: Update Resources Title
2 participants