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

add schedule #10

Closed

Conversation

christophertorres1
Copy link
Contributor

What's new?

  • Added the schedule section header and table
    Screenshot 2024-01-10 at 6 05 42 PM

Linear Task

https://linear.app/hack-for-impact-2024/issue/HFI-15/schedule-section

Copy link
Contributor

@allisonhongberkeley allisonhongberkeley left a comment

Choose a reason for hiding this comment

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

lgtm!

Copy link
Collaborator

@jinkang-0 jinkang-0 left a comment

Choose a reason for hiding this comment

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

great work!! i left some suggestions for iteration, but looks good so far!

text-align: center;
gap: 1.5rem;
h4 {
color: #3d3833;
Copy link
Collaborator

@jinkang-0 jinkang-0 Jan 11, 2024

Choose a reason for hiding this comment

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

Text elements should be using the correct color by default now! You can rebase off main and see the changes.

<td class="time">8:00 - 8:30 am</td>
<td class="event">Registration + breakfast</td>
</tr>
<tr class="schedule-row">
Copy link
Collaborator

@jinkang-0 jinkang-0 Jan 11, 2024

Choose a reason for hiding this comment

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

nit: i don't think this class is being used, do you think we can remove it?

<section id="schedule">
<div class="header-container">
<h4>SCHEDULE</h4>
<h2>1 day, but <b>countless</b> possibilities</h2>
Copy link
Collaborator

@jinkang-0 jinkang-0 Jan 11, 2024

Choose a reason for hiding this comment

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

h2 here should be h3 and b should be h2. Although we don't anticipate styles to change, it's best to stay consistent with the predefined global styles so we can quickly update if things do change.

Comment on lines +99 to +102
p {
color: #3d3833;
font-weight: 500;
}
Copy link
Collaborator

@jinkang-0 jinkang-0 Jan 11, 2024

Choose a reason for hiding this comment

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

This p tag can be removed to use the default styles! (rebase off main to see changes)


.schedule-container {
width: 58.5rem;
height: 47.25rem;
Copy link
Collaborator

@jinkang-0 jinkang-0 Jan 11, 2024

Choose a reason for hiding this comment

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

Please don't set a fixed value for height when you've already fixed width, this is a bad practice for containers like this - the text will not wrap, or if it does, it will overflow, leading to unintended layouts on smaller screen sizes.

Instead, I would recommend width: 100% and add horizontal padding to match the design.

h4 {
color: #3d3833;
font-weight: 400;
letter-spacing: 0.05rem;
Copy link
Collaborator

@jinkang-0 jinkang-0 Jan 11, 2024

Choose a reason for hiding this comment

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

I think @ccatherinetan also defined this, make sure yall use the same letter-spacing!! It would be best to alter _global.scss and agree to one single property across all h4s.

We have the changes merged in main now! You don't have to redefine the styles here - just need to rebase off main.

Comment on lines +121 to +125
.event {
width: 35.9375rem;
color: #3d3935;
padding-left: 3rem;
}
Copy link
Collaborator

@jinkang-0 jinkang-0 Jan 11, 2024

Choose a reason for hiding this comment

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

I believe that, in Figma, the text in the .event column should have font-weight: 400 (regular). Do you want to double check?

flex-shrink: 0;
border-radius: 1rem; /* Nonzero border radius with hidden */
overflow: hidden; /* overflow got rid of table's outer border */
border: 1px solid #dfd2c4;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since we use the border color in multiple places, you may want to turn it into a Sass variable! It can be defined at the top of this style or in a separate file.

@christophertorres1 christophertorres1 deleted the christophertorres/hfi-15-schedule-section branch January 12, 2024 00:00
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.

3 participants