Skip to content

Commit

Permalink
Merge pull request #1103 from TomaszKandula/dev
Browse files Browse the repository at this point in the history
merge: dev to master
  • Loading branch information
TomaszKandula committed May 25, 2024
2 parents 7307e23 + 333eeaf commit 342299d
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export interface HeaderContentDto {
language: string;
photo: string;
caption: string;
subtitle: string;
description: string;
action: LinkDto;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ export const ArticleFeatureView = (): JSX.Element => {
<Grid item xs={12} lg={6} className={classes.content}>
<Card elevation={0} className={classes.card}>
<CardContent className={classes.card_content}>
<Box display="flex" flexDirection="column" height="100%" pt={2} px={2}>
<Box display="flex" flexDirection="column" pt={2} px={2}>
<Typography className={classes.text1}>
{features?.isLoading ? (
<Skeleton variant="text" />
) : (
features?.content?.text1
)}
</Typography>
<Box mt="auto" mb={2}>
<Box mt={2} mb={5}>
<Typography className={classes.text2}>
{features?.isLoading ? (
<Skeleton variant="text" />
Expand All @@ -72,7 +72,7 @@ export const ArticleFeatureView = (): JSX.Element => {
)}
</Typography>
</Box>
<Box textAlign="right">
<Box pt={0} textAlign="right">
{features?.isLoading ? (
<Skeleton variant="rect" width="100%" height="25px" />
) : (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ exports[`test component: headerView should render correctly '<HeaderView />' whe
class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-12 MuiGrid-grid-md-7"
>
<img
class="MuiCardMedia-root makeStyles-image_card-8 MuiCardMedia-media MuiCardMedia-img"
class="MuiCardMedia-root makeStyles-image_card-9 MuiCardMedia-media MuiCardMedia-img"
src=" "
/>
</div>
<div
class="MuiGrid-root makeStyles-section_container-2 MuiGrid-item MuiGrid-grid-xs-12 MuiGrid-grid-md-5"
>
<div
class="MuiBox-root MuiBox-root-11 makeStyles-content_box-3"
class="MuiBox-root MuiBox-root-12 makeStyles-content_box-3"
>
<span
class="MuiTypography-root makeStyles-content_caption-4 MuiTypography-body1"
Expand All @@ -29,21 +29,26 @@ exports[`test component: headerView should render correctly '<HeaderView />' whe
</div>
</span>
<span
class="MuiTypography-root makeStyles-content_description-5 MuiTypography-body1"
class="MuiTypography-root makeStyles-content_subtitle-5 MuiTypography-body1"
>
<div />
</span>
<span
class="MuiTypography-root makeStyles-content_description-6 MuiTypography-body1"
>
<div>
I do programming for a living...
</div>
</span>
<div
class="MuiBox-root MuiBox-root-12"
class="MuiBox-root MuiBox-root-13"
>
<a
class="makeStyles-action_link-22"
class="makeStyles-action_link-24"
href="/action-link"
>
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained makeStyles-action_button-21"
class="MuiButtonBase-root MuiButton-root MuiButton-contained makeStyles-action_button-23"
tabindex="0"
type="button"
>
Expand Down
16 changes: 14 additions & 2 deletions TokanPages.ClientApp/src/Components/Layout/Header/headerStyle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const HeaderStyle = makeStyles(theme => ({
},
content_box: {
marginTop: "auto",
marginRight: 30,
paddingTop: 60,
paddingBottom: 60,
paddingLeft: 80,
Expand All @@ -27,15 +28,26 @@ export const HeaderStyle = makeStyles(theme => ({
maxWidth: 900,
padding: 15,
marginLeft: 0,
marginRight: 0,
},
},
content_caption: {
fontSize: "3.5rem",
color: Colours.colours.gray3,
fontSize: "3.4rem",
fontWeight: 700,
lineHeight: 1.5,
},
content_subtitle: {
color: Colours.colours.gray3,
fontSize: "1.4rem",
fontWeight: 700,
lineHeight: 1.5,
},
content_description: {
color: Colours.colours.black,
color: Colours.colours.gray3,
fontSize: "1.125rem",
fontWeight: 400,
lineHeight: 1.5,
},
image_skeleton: {
height: 300,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ export const HeaderView = (): JSX.Element => {
<ReactHtmlParser html={header?.content?.caption} />
)}
</Typography>
<Typography component="span" className={classes.content_subtitle}>
{header?.isLoading ? (
<Skeleton variant="text" />
) : (
<ReactHtmlParser html={header?.content?.subtitle} />
)}
</Typography>
<Typography component="span" className={classes.content_description}>
{header?.isLoading ? (
<Skeleton variant="text" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export const ContentHeader: ContentHeaderState = {
language: "",
photo: "",
caption: "",
subtitle: "",
description: "",
action: {
text: "",
Expand Down

0 comments on commit 342299d

Please sign in to comment.