-
Notifications
You must be signed in to change notification settings - Fork 890
chore(site): remove Typography component #10769
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
Changes from all commits
b1ebab8
1fda7b7
864246c
b402226
6e423e6
65e6038
51f1cc7
f16478d
b996e9a
028babf
9a22f50
829c6ce
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import Typography from "@mui/material/Typography"; | ||
import { type FC, type PropsWithChildren } from "react"; | ||
import { css, useTheme } from "@emotion/react"; | ||
import { useTheme } from "@emotion/react"; | ||
import { CoderIcon } from "../Icons/CoderIcon"; | ||
|
||
const Language = { | ||
|
@@ -31,22 +30,23 @@ export const Welcome: FC< | |
}} | ||
/> | ||
</div> | ||
<Typography | ||
css={css` | ||
text-align: center; | ||
font-size: 32px; | ||
font-weight: 400; | ||
margin: 16px 0 32px; | ||
line-height: 1.25; | ||
<h1 | ||
css={{ | ||
textAlign: "center", | ||
fontSize: 32, | ||
fontWeight: 400, | ||
margin: 0, | ||
marginTop: 16, | ||
marginBottom: 32, | ||
lineHeight: 1.25, | ||
|
||
& strong { | ||
font-weight: 600; | ||
} | ||
`} | ||
variant="h1" | ||
"& strong": { | ||
fontWeight: 600, | ||
}, | ||
}} | ||
Comment on lines
+34
to
+46
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. aww, why get rid of the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Auto complete and formatting basically |
||
> | ||
{message} | ||
</Typography> | ||
</h1> | ||
</div> | ||
); | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would expect an
<h5>
to at least have a weight of 500There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, I think this could be something we should set as a global style? Wondering if as part of the theme thing, we could include the TailwindCSS reset.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but my point was that here, you manually set it to 400. it should be a
<p>
or something instead, not a header.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahhh ok, but it is a title so I think makes sense to make it a heading element 🤔