refactor: update Typography variants in BlogAccordion, MainAccordion, MainCard, and Landing components for consistency
This commit is contained in:
@@ -31,7 +31,9 @@ const BlogAccordion = ({ blogContent }) => {
|
|||||||
expandIcon={<ExpandMoreIcon />}
|
expandIcon={<ExpandMoreIcon />}
|
||||||
aria-controls={`panel-${itemIdx}-content`}
|
aria-controls={`panel-${itemIdx}-content`}
|
||||||
id={`panel-${itemIdx}-header`}>
|
id={`panel-${itemIdx}-header`}>
|
||||||
<Typography variant="h4">{title}</Typography>
|
<Typography variant="h5" component="h3">
|
||||||
|
{title}
|
||||||
|
</Typography>
|
||||||
</AccordionSummary>
|
</AccordionSummary>
|
||||||
<AccordionDetails>
|
<AccordionDetails>
|
||||||
{lines.map((lineContent, idx) => (
|
{lines.map((lineContent, idx) => (
|
||||||
|
|||||||
@@ -18,7 +18,9 @@ const MainAccordion = ({ items, title }) => {
|
|||||||
expandIcon={<ExpandMoreIcon />}
|
expandIcon={<ExpandMoreIcon />}
|
||||||
aria-controls="panel1a-content"
|
aria-controls="panel1a-content"
|
||||||
id="panel1a-header">
|
id="panel1a-header">
|
||||||
<Typography variant="h4">{title}</Typography>
|
<Typography variant="h5" component="h3">
|
||||||
|
{title}
|
||||||
|
</Typography>
|
||||||
</AccordionSummary>
|
</AccordionSummary>
|
||||||
<AccordionDetails>
|
<AccordionDetails>
|
||||||
<Grid2
|
<Grid2
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ const MainCard = ({ imageURL, title, description, url }) => {
|
|||||||
<CardContent
|
<CardContent
|
||||||
color="white"
|
color="white"
|
||||||
onClick={() => window.open(url, "_blank")}>
|
onClick={() => window.open(url, "_blank")}>
|
||||||
<Typography gutterBottom variant="h5" component="div">
|
<Typography gutterBottom variant="h6" component="h4">
|
||||||
{title}
|
{title}
|
||||||
</Typography>
|
</Typography>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
|
|||||||
@@ -12,7 +12,11 @@ const Home = () => {
|
|||||||
<Grid2 container direction="column" alignItems="stretch">
|
<Grid2 container direction="column" alignItems="stretch">
|
||||||
<Grid2 container direction="column">
|
<Grid2 container direction="column">
|
||||||
<Grid2>
|
<Grid2>
|
||||||
<Typography variant="h3" marginTop={4} marginBottom={2}>
|
<Typography
|
||||||
|
variant="h4"
|
||||||
|
component="h2"
|
||||||
|
marginTop={4}
|
||||||
|
marginBottom={2}>
|
||||||
{t.formatMessage({
|
{t.formatMessage({
|
||||||
id: "navigation.projects",
|
id: "navigation.projects",
|
||||||
defaultMessage: "Projects",
|
defaultMessage: "Projects",
|
||||||
@@ -27,7 +31,11 @@ const Home = () => {
|
|||||||
|
|
||||||
<Grid2 container direction="column">
|
<Grid2 container direction="column">
|
||||||
<Grid2>
|
<Grid2>
|
||||||
<Typography variant="h3" marginTop={4} marginBottom={2}>
|
<Typography
|
||||||
|
variant="h4"
|
||||||
|
component="h2"
|
||||||
|
marginTop={4}
|
||||||
|
marginBottom={2}>
|
||||||
{t.formatMessage({
|
{t.formatMessage({
|
||||||
id: "navigation.best-practices",
|
id: "navigation.best-practices",
|
||||||
defaultMessage: "Best Practices",
|
defaultMessage: "Best Practices",
|
||||||
@@ -42,7 +50,11 @@ const Home = () => {
|
|||||||
|
|
||||||
<Grid2 container direction="column">
|
<Grid2 container direction="column">
|
||||||
<Grid2>
|
<Grid2>
|
||||||
<Typography variant="h3" marginTop={4} marginBottom={2}>
|
<Typography
|
||||||
|
variant="h4"
|
||||||
|
component="h2"
|
||||||
|
marginTop={4}
|
||||||
|
marginBottom={2}>
|
||||||
{t.formatMessage({
|
{t.formatMessage({
|
||||||
id: "navigation.blog",
|
id: "navigation.blog",
|
||||||
defaultMessage: "Blog",
|
defaultMessage: "Blog",
|
||||||
|
|||||||
Reference in New Issue
Block a user