TechTalk Card + mini tech card #71

Merged
c29wan merged 18 commits from feat/tech-talk-card into main 2 years ago
c29wan commented 2 years ago (Migrated from git.uwaterloo.ca)
Collaborator

fixes #35 and #34

  • extra padding below poster image
fixes #35 and #34 - extra padding below poster image
c29wan added 1 commit 2 years ago
c29wan added 1 commit 2 years ago
c29wan added 1 commit 2 years ago
b5a6a50ddf Merge branch 'main' into feat/tech-talk-card
c29wan changed title from TechTalk Card to TechTalk Card + mini tech card 2 years ago
c29wan added 1 commit 2 years ago
280adff67f Merge branch 'main' into feat/tech-talk-card
c29wan added 2 commits 2 years ago
n3parikh reviewed 2 years ago
n3parikh left a comment
Owner

Looks good to me overall, just a few small things.

I looked through the css, but I'll let @a3thakra review it as well.

Looks good to me overall, just a few small things. I looked through the css, but I'll let @a3thakra review it as well.
<section className={styles.card}>
<aside>
{poster && <Image alt={name} src={poster} />}
{!poster && <div className={styles.spacer}></div>}
Owner

Similar to the MiniTechTalkCard, I think we can remove the spacer for now, and think about what it should look like when we actually import the data and render the whole site.

Similar to the MiniTechTalkCard, I think we can remove the spacer for now, and think about what it should look like when we actually import the data and render the whole site.
import { TeamMemberCard } from "./TeamMemberCard";
import { OrganizedContent, LinkProps } from "./OrganizedContent";
import { Button } from "./Button";
import { Footer } from "./Footer";
Owner

This import is unused.

This import is unused.
pages/_app.css Outdated
#1481e3 -17.95%,
#4ed4b2 172.82%
);
--background-teal-2: rgb(78, 212, 178, 0.2);
Owner

Nitpick: Can you move this to just below the --teal-2-20 line, and rename it to --teal-2-background, for consistency?

Nitpick: Can you move this to just below the `--teal-2-20` line, and rename it to `--teal-2-background`, for consistency?
a3thakra reviewed 2 years ago
.card {
display: flex;
flex-direction: row;
max-width: calc(800rem / 16);
Collaborator

You don't need to restrict the width here. This is automatically done on the pages. - using the DefaultLayout component

You don't need to restrict the width here. This is automatically done on the pages. - using the DefaultLayout component
a3thakra marked this conversation as resolved
a3thakra reviewed 2 years ago
.content h1 {
margin-block-start: 4px;
margin: 0;
Collaborator

You can do:

margin: 0;
margin-top: calc(4rem / 16);

instead of margin-block-start and margin.

You can do: ```css margin: 0; margin-top: calc(4rem / 16); ``` instead of `margin-block-start` and `margin`.
a3thakra marked this conversation as resolved
a3thakra reviewed 2 years ago
box-sizing: border-box;
padding: calc(16rem / 16);
color: var(--purple-2);
font-size: calc(14rem / 16);
Collaborator

Great attention to detail on the font-size here!! But I think that the design folks forgot to update the font-size to 16px (or 1rem) a while back. So you should change it to 1 rem :)

Great attention to detail on the font-size here!! But I think that the design folks forgot to update the font-size to 16px (or 1rem) a while back. So you should change it to 1 rem :)
a3thakra marked this conversation as resolved
Collaborator

Added a comment on figma re the mini tech talk card.

Added a comment on figma re the mini tech talk card.
a3thakra reviewed 2 years ago
export function TechTalkCard({ name, poster, children }: TechTalkProps) {
return (
<article>
<section className={styles.card}>
Collaborator

You dont need to add a section tag inside an article. You can just do <article className={styles.card}> and not have the section tag on line 15.

You dont **need** to add a section tag inside an article. You can just do `<article className={styles.card}>` and not have the section tag on line 15.
a3thakra marked this conversation as resolved
a3thakra reviewed 2 years ago
{poster && <Image alt={name} src={poster} />}
{!poster && <div className={styles.spacer}></div>}
</aside>
<section className={styles.content}>
Collaborator

We should use sections inside an article to separate content. But this is the main content of the article! So you should just wrap it up with a div instead of using a section tag here. :)

We should use sections inside an article to separate content. But this is the main content of the article! So you should just wrap it up with a div instead of using a section tag here. :)
a3thakra marked this conversation as resolved
a3thakra reviewed 2 years ago
flex-direction: row;
max-width: calc(800rem / 16);
box-sizing: border-box;
padding: calc(24rem / 16);
Collaborator

I dont think you need this padding.

I dont think you need this padding.
a3thakra marked this conversation as resolved
a3thakra reviewed 2 years ago
.card {
display: flex;
flex-direction: row;
max-width: calc(800rem / 16);
Collaborator

You don't need to restrict the width here. This is automatically done on the pages. - using the DefaultLayout component

You don't need to restrict the width here. This is automatically done on the pages. - using the DefaultLayout component
a3thakra marked this conversation as resolved
a3thakra reviewed 2 years ago
flex-direction: column;
max-width: calc(1200rem / 16);
box-sizing: border-box;
padding: calc(24rem / 16);
Collaborator

you dont need to reapply all the styles again. In CSS (Cascading Style Sheets) rules matching the same element "cascade" on top of each other. Think of it like a layered system.

So all you would need to do in here would be flex-direction: column. Everything else can be removed :)

you dont need to reapply all the styles again. In CSS (Cascading Style Sheets) rules matching the same element "cascade" on top of each other. Think of it like a layered system. So all you would need to do in here would be `flex-direction: column`. Everything else can be removed :)
c29wan added 3 commits 2 years ago
a3thakra reviewed 2 years ago
return (
<article className={styles.card}>
<aside>{poster && <Image alt={name} src={poster} />}</aside>
<section className={styles.content}>
Collaborator

a div over here, instead of a section would be preferred.

You should use sections inside an article only if articles are big enough.

a div over here, instead of a section would be preferred. You should use sections inside an article only if articles are big enough.
a3thakra reviewed 2 years ago
interface TechTalkProps {
name: string;
short: string;
Collaborator

We don't need short inside a tech talk card.

We don't need short inside a tech talk card.
Collaborator

Only two nit-picks, good to go after that!!

Only two nit-picks, good to go after that!!
c29wan added 2 commits 2 years ago
a3thakra approved these changes 2 years ago
c29wan merged commit 1fb308327f into main 2 years ago

Reviewers

a3thakra approved these changes 2 years ago
continuous-integration/drone/push Build is passing
The pull request has been merged as 1fb308327f.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: www/www-new#71
Loading…
There is no content yet.