-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: extract static data to constants
- Loading branch information
1 parent
0344df6
commit def9baf
Showing
14 changed files
with
317 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
export interface PricingTier { | ||
title: string; | ||
monthlyPrice: number; | ||
buttonText: string; | ||
popular: boolean; | ||
inverse: boolean; | ||
features: string[]; | ||
} | ||
|
||
export const pricingTiers: PricingTier[] = [ | ||
{ | ||
title: "Free", | ||
monthlyPrice: 0, | ||
buttonText: "Get started for free", | ||
popular: false, | ||
inverse: false, | ||
features: [ | ||
"Up to 5 project members", | ||
"Unlimited tasks and projects", | ||
"2GB storage", | ||
"Integrations", | ||
"Basic support", | ||
], | ||
}, | ||
{ | ||
title: "Pro", | ||
monthlyPrice: 9, | ||
buttonText: "Sign up now", | ||
popular: true, | ||
inverse: true, | ||
features: [ | ||
"Up to 50 project members", | ||
"Unlimited tasks and projects", | ||
"50GB storage", | ||
"Integrations", | ||
"Priority support", | ||
"Advanced support", | ||
"Export support", | ||
], | ||
}, | ||
{ | ||
title: "Business", | ||
monthlyPrice: 19, | ||
buttonText: "Sign up now", | ||
popular: false, | ||
inverse: false, | ||
features: [ | ||
"Up to 5 project members", | ||
"Unlimited tasks and projects", | ||
"200GB storage", | ||
"Integrations", | ||
"Dedicated account manager", | ||
"Custom fields", | ||
"Advanced analytics", | ||
"Export capabilities", | ||
"API access", | ||
"Advanced security features", | ||
], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
interface BannerText { | ||
main: string; | ||
cta: string; | ||
} | ||
|
||
interface HeaderData { | ||
headerLinks: { name: string; href: string }[]; | ||
cta: string; | ||
} | ||
|
||
interface HeroData { | ||
tag: string; | ||
title: string; | ||
description: string; | ||
primaryButton: string; | ||
secondaryButton: string; | ||
} | ||
|
||
interface ProductShowcaseData { | ||
tag: string; | ||
title: string; | ||
description: string; | ||
} | ||
|
||
interface PricingData { | ||
title: string; | ||
description: string; | ||
currency: string; | ||
billingPeriod: string; | ||
} | ||
|
||
interface TestimonialsData { | ||
tag: string; | ||
title: string; | ||
description: string; | ||
} | ||
|
||
interface CallToActionData { | ||
title: string; | ||
description: string; | ||
primaryButton: string; | ||
secondaryButton: string; | ||
} | ||
|
||
interface FooterData { | ||
footerLinks: { name: string; href: string }[]; | ||
copyRight: string; | ||
} | ||
|
||
export const bannerText: BannerText = { | ||
main: "Streamline your workflow and boost your productivity", | ||
cta: "Get started for free", | ||
}; | ||
|
||
export const headerData: HeaderData = { | ||
headerLinks: [ | ||
{ name: "About", href: "#" }, | ||
{ name: "Features", href: "#" }, | ||
{ name: "Customers", href: "#" }, | ||
{ name: "Updates", href: "#" }, | ||
{ name: "Help", href: "#" }, | ||
], | ||
cta: "Get for free", | ||
}; | ||
|
||
export const heroData: HeroData = { | ||
tag: "Version 2.0 is here", | ||
title: "Pathway to productivity", | ||
description: | ||
"Celebrate the joy of accomplishment with an app designed to track your progress, motivate your efforts, and celebrate your successes.", | ||
primaryButton: "Get for free", | ||
secondaryButton: "Learn more", | ||
}; | ||
|
||
export const productShowcaseData: ProductShowcaseData = { | ||
tag: "Boost your productivity", | ||
title: "A more effective way to track progress", | ||
description: | ||
"Celebrate the joy of accomplishment with an app designed to track your progress and motivate your efforts.", | ||
}; | ||
|
||
export const pricingData: PricingData = { | ||
title: "Pricing", | ||
description: | ||
"Free forever. Upgrade for unlimited tasks, better security, and exclusive features.", | ||
currency: "$", | ||
billingPeriod: "/month", | ||
}; | ||
|
||
export const testimonialsData: TestimonialsData = { | ||
tag: "Testimonials", | ||
title: "What our users say", | ||
description: | ||
"From intuitive design to powerful features, our app has become an essential tool for users around the world.", | ||
}; | ||
|
||
export const callToActionData: CallToActionData = { | ||
title: "Sign up for free today", | ||
description: | ||
"Celebrate the joy of accomplishment with an app designed to track your progress and motivate your efforts.", | ||
primaryButton: "Get for free", | ||
secondaryButton: "Learn more", | ||
}; | ||
|
||
export const footerData: FooterData = { | ||
footerLinks: [ | ||
{ name: "About", href: "#" }, | ||
{ name: "Features", href: "#" }, | ||
{ name: "Customers", href: "#" }, | ||
{ name: "Updates", href: "#" }, | ||
{ name: "Help", href: "#" }, | ||
], | ||
copyRight: "2024 Your Company, Inc. All rights reserved.", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
import { StaticImageData } from "next/image"; | ||
import { | ||
Avatar1, | ||
Avatar2, | ||
Avatar3, | ||
Avatar4, | ||
Avatar5, | ||
Avatar6, | ||
Avatar7, | ||
Avatar8, | ||
Avatar9, | ||
} from "@/src/assets"; | ||
|
||
export interface Testimonial { | ||
text: string; | ||
imageSrc: StaticImageData; | ||
name: string; | ||
username: string; | ||
} | ||
|
||
export const testimonials: Testimonial[] = [ | ||
{ | ||
text: "As a seasoned designer always on the lookout for innovative tools, Framer.com instantly grabbed my attention.", | ||
imageSrc: Avatar1, | ||
name: "Jamie Rivera", | ||
username: "@jamietechguru00", | ||
}, | ||
{ | ||
text: "Our team's productivity has skyrocketed since we started using this tool. ", | ||
imageSrc: Avatar2, | ||
name: "Josh Smith", | ||
username: "@jjsmith", | ||
}, | ||
{ | ||
text: "This app has completely transformed how I manage my projects and deadlines.", | ||
imageSrc: Avatar3, | ||
name: "Morgan Lee", | ||
username: "@morganleewhiz", | ||
}, | ||
{ | ||
text: "I was amazed at how quickly we were able to integrate this app into our workflow.", | ||
imageSrc: Avatar4, | ||
name: "Casey Jordan", | ||
username: "@caseyj", | ||
}, | ||
{ | ||
text: "Planning and executing events has never been easier. This app helps me keep track of all the moving parts, ensuring nothing slips through the cracks.", | ||
imageSrc: Avatar5, | ||
name: "Taylor Kim", | ||
username: "@taylorkimm", | ||
}, | ||
{ | ||
text: "The customizability and integration capabilities of this app are top-notch.", | ||
imageSrc: Avatar6, | ||
name: "Riley Smith", | ||
username: "@rileysmith1", | ||
}, | ||
{ | ||
text: "Adopting this app for our team has streamlined our project management and improved communication across the board.", | ||
imageSrc: Avatar7, | ||
name: "Jordan Patels", | ||
username: "@jpatelsdesign", | ||
}, | ||
{ | ||
text: "With this app, we can easily assign tasks, track progress, and manage documents all in one place.", | ||
imageSrc: Avatar8, | ||
name: "Sam Dawson", | ||
username: "@dawsontechtips", | ||
}, | ||
{ | ||
text: "Its user-friendly interface and robust features support our diverse needs.", | ||
imageSrc: Avatar9, | ||
name: "Casey Harper", | ||
username: "@casey09", | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export * from "./StaticData"; | ||
export * from "./TestimonialsData"; | ||
export * from "./PricingData"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.