Skip to content

Commit

Permalink
Add solution: Initializr
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Tai committed Nov 27, 2024
1 parent 0460672 commit 9021d9e
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 24 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"rollup-plugin-visualizer" : "^5.12.0",
"typescript" : "^5.7.2",
"typescript-eslint" : "^8.16.0",
"vite" : "^6.0.0"
"vite" : "^6.0.1"
},
"engines" : {
"node" : ">=20",
Expand Down
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed public/bao-menglong-R-Ghenm9OX8-unsplash.jpg
Binary file not shown.
Binary file added public/braden-collum-9HI8UJMSdZA-unsplash.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
"sections.products.0.summary.1" : "Experience professional-grade security without the premium cost. Our solution offers robust protection for your home at an affordable price.",
"sections.products.0.tagline.2" : "Smart Security, Simple Setup.",
"sections.products.0.summary.2" : "Easy to install and manage, our intelligent security solution offers powerful protection without the hassle.",
"sections.products.1.caption" : "WeatherWatch",
"sections.products.1.description" : "Stay informed with real-time weather updates",
"sections.products.2.caption" : "MacBrewer",
"sections.products.2.description" : "The easiest way to install software on your Mac",
"sections.products.1.caption" : "MacBrewer",
"sections.products.1.description" : "The easiest way to install software on your Mac",
"sections.products.2.caption" : "Initializr",
"sections.products.2.description" : "The quickest way to start your next full-stack project",
"label.upgrade.title" : "Compare features across plans",
"label.upgrade.plans" : [
"Basic",
Expand Down
20 changes: 9 additions & 11 deletions src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ const ICONS = [

const COVERS = [
'alan-j-hendry-KNt4zd8HPb0-unsplash.jpg',
'bao-menglong-R-Ghenm9OX8-unsplash.jpg',
'christin-hume-Hcfwew744z4-unsplash.jpg',
'braden-collum-9HI8UJMSdZA-unsplash.jpg',
];

const Heading = ({
Expand Down Expand Up @@ -332,10 +332,14 @@ export const HomePage = () => {
navigate('/products/securezone');
break;

case 2:
case 1:
window.open('https://macbrewer.geekylifehacks.com', '_blank');
break;

case 2:
window.open('https://start.geekylifehacks.com', '_blank');
break;

default:
break;
}
Expand All @@ -352,15 +356,11 @@ export const HomePage = () => {
height : 'auto',
}}
src={COVERS[index]}
alt={t('sections.products.0.caption')}
alt={t(`sections.products.${index}.caption`)}
onClick={handleClick}
preview={{
visible : false,
mask : (
<ImageMask
comingSoon={index === 1}
index={index} />
),
mask : <ImageMask index={index} />,
}} />
{!isDesktop && (
<div style={{
Expand All @@ -369,9 +369,7 @@ export const HomePage = () => {
marginBottom : 48,
backgroundColor : '#000',
}}>
<ImageMask
comingSoon={index !== 2}
index={index} />
<ImageMask index={index} />
</div>
)}
</Col>
Expand Down

0 comments on commit 9021d9e

Please sign in to comment.