Skip to content

Commit

Permalink
Merge pull request #658 from codeforpdx/issue-635/discovery-landing-p…
Browse files Browse the repository at this point in the history
…age-styling-adjustments

Issue 635/discovery landing page styling adjustments
  • Loading branch information
leekahung authored Jul 9, 2024
2 parents cadcc02 + 57a0e12 commit 71790a5
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 34 deletions.
Binary file added public/assets/app-blue.webp
Binary file not shown.
Binary file removed public/assets/app-green.png
Binary file not shown.
Binary file added public/assets/key-features-blue.webp
Binary file not shown.
Binary file removed public/assets/key-features-green.png
Binary file not shown.
Binary file added public/assets/web-security-blue.webp
Binary file not shown.
Binary file removed public/assets/web-security-green.png
Binary file not shown.
68 changes: 37 additions & 31 deletions src/components/Home/KeyFeatures.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,43 +14,49 @@ import Typography from '@mui/material/Typography';
* @param {string} Props.icon - Icon
* @param {string} Props.title - Key feature title
* @param {string} Props.description - Key feature description
* @param {string} Props.isReallySmallScreen - Screen size based on media query
* @returns {React.JSX.Element} The KeyFeatures section component
*/
const KeyFeatures = ({ icon, title, description }) => (
<Stack alignItems="center">
<Box
sx={{
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
gap: '10px',
marginBottom: '14px',
color: 'primary.main'
}}
>
{icon}
const KeyFeatures = ({ icon, title, description, isReallySmallScreen }) => {
const flexDirection = isReallySmallScreen ? 'column' : 'row';

return (
<Stack alignItems="center">
<Box
sx={{
display: 'flex',
flexDirection,
alignItems: 'center',
justifyContent: 'center',
gap: '10px',
marginBottom: '14px',
color: 'primary.main'
}}
>
{icon}
<Typography
variant="h6"
component="h3"
sx={{
color: 'primary.main',
textAlign: 'center'
}}
>
<strong>{title}</strong>
</Typography>
</Box>
<Typography
variant="h6"
component="h3"
variant="body1"
sx={{
color: 'primary.main',
textAlign: 'center'
textAlign: 'center',
color: 'primary.dark',
marginBottom: '50px'
}}
>
<strong>{title}</strong>
{description}
</Typography>
</Box>
<Typography
variant="body1"
sx={{
textAlign: 'center',
color: 'primary.dark',
marginBottom: '50px'
}}
>
{description}
</Typography>
</Stack>
);
</Stack>
);
};

export default KeyFeatures;
6 changes: 3 additions & 3 deletions src/pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const Home = () => {
<div ref={aboutRef}>
<HomeSection
isReallySmallScreen={isReallySmallScreen}
componentImageSrc="/assets/web-security-green.png"
componentImageSrc="/assets/web-security-blue.webp"
componentImageAlt=""
title="Keep Your Documents Safe and Secure Using Decentralized Technology"
description="Our innovative solution empowers individuals to manage their critical documents and control access for trusted organizations. PASS simplifies service access, enabling seamless documents requests and secure data sharing for a smoother support process."
Expand All @@ -146,15 +146,15 @@ const Home = () => {
/>
<HomeSection
isReallySmallScreen={isReallySmallScreen}
componentImageSrc="/assets/app-green.png"
componentImageSrc="/assets/app-blue.webp"
componentImageAlt=""
title="An App for Caseworkers"
description="PASS allows users to quickly and securely share documents of their clients within the app. The app helps caseworkers verify and share documents such as ID and proof of income while retaining total control of them."
hasMargin
/>
<HomeSection
isReallySmallScreen={isReallySmallScreen}
componentImageSrc="/assets/key-features-green.png"
componentImageSrc="/assets/key-features-blue.webp"
componentImageAlt=""
title="Key Features"
/>
Expand Down

0 comments on commit 71790a5

Please sign in to comment.