import { PageBlockDto } from "../../dtos/PageBlockDto";
import { defaultFooter } from "../defaultFooter";
import { defaultHeader } from "../defaultHeader";
//@ts-ignore
export function defaultLandingPage({ t }: { t: TFunction }) {
const blocks: PageBlockDto[] = [
// Banner
{
banner: {
style: "top",
text: "This is the SaasRock Starter demo site.",
cta: [{ text: "Back to SaasRock", href: "https://saasrock.com/?ref=starter.saasrock.com&utm_content=top-banner", isPrimary: true, target: "_blank" }],
},
},
// Header
{
header: defaultHeader,
},
// Hero
{
hero: {
style: "simple",
headline: t("front.hero.headline1"),
description: t("front.hero.headline2"),
image: "https://yahooder.sirv.com/saasrock/seo/admin-portal.png",
cta: [
{
text: t("front.hero.buy"),
href: "/pricing",
isPrimary: true,
},
],
topText: {
text: t("front.hero.subheadline1"),
},
bottomText: {
link: {
text: t("front.hero.hint"),
href: "/changelog",
},
},
},
},
// Logo Clouds
{
logoClouds: {
style: "custom",
headline: t("front.logoClouds.title"),
logos: [
{
alt: "Remix",
href: "https://remix.run/ref=saasrock.com",
src: "https://saasrock.com/build/_assets/remix-4ESNCVZ5.png",
srcDark: "https://saasrock.com/build/_assets/remix-dark-U2ASPSOI.png",
},
{
alt: "Tailwind CSS",
href: "https://tailwindcss.com/ref=saasrock.com",
src: "https://saasrock.com/build/_assets/tailwindcss-G3OQBAVI.png",
},
{
alt: "Prisma",
href: "https://prisma.io/ref=saasrock.com",
src: "https://saasrock.com/build/_assets/prisma-ATY77GXX.png",
srcDark: "https://saasrock.com/build/_assets/prisma-dark-3FBYDJ4J.png",
},
],
},
},
// Features
{
features: {
style: "cards",
topText: "More than a starter kit",
headline: "+18 Built-in Features",
subheadline:
"Everything you need to start to build an MVP in a day, to build a SaaS app in a week, or a full enterprise app in less than a month (depending on your commitment ¯\\_(ツ)_/¯).",
grid: {
columns: "4",
},
items: [
{
name: "Admin Portal",
description: "Manage your tenants, users, logs, subscriptions, and more.",
img: ``,
link: { text: t("shared.learnMore"), href: "/docs/features/admin-portal", target: "_blank" },
},
{
name: "App Portal",
description: "End-user portal with Dashboard, Profile, Members, Subscription, and more.",
img: ``,
link: { text: t("shared.learnMore"), href: "/docs/features/app-portal", target: "_blank" },
},
{
name: "Authentication",
description: "Login, Register, and Forgot password pages, plus Google/GitHub SSO support.",
img: ``,
link: { text: t("shared.learnMore"), href: "/docs/features/authentication", target: "_blank" },
},
{
name: "Subscriptions",
description: "Stripe Flat-rate, Per-seat, One-time, and Usage-based pricing models + coupons.",
img: ``,
link: { text: t("shared.learnMore"), href: "/docs/features/subscriptions", target: "_blank" },
},
],
},
},
// Community
{
community: {
style: "simple",
headline: "The SaasRock Community",
subheadline: "We're all looking to build successful SaaS applications.",
withName: false,
type: "github",
grid: {
columns: "12",
gap: "sm",
},
cta: [
{
text: "Subscribe",
href: "/pricing",
},
{
text: "Join Discord",
href: "https://discord.gg/KMkjU2BFn9",
},
{
text: "Youtube channel",
href: "https://www.youtube.com/channel/UCdXy3FPDHxP-b7NhPspt6cQ",
},
],
},
},
// Testimonials
{
testimonials: {
style: "simple",
headline: "Don't take our word for it.",
subheadline: ``,
items: [
{
role: "CEO",
company: "Piloterr",
companyUrl: "https://www.piloterr.com/",
logoLightMode: "https://yahooder.sirv.com/saasrock/testimonials/piloterr-light.png",
logoDarkMode: "https://yahooder.sirv.com/saasrock/testimonials/piloterr-dark.png",
name: "Josselin Liebe",
personalWebsite: "https://josselinlie.be/",
avatar: "https://avatars.githubusercontent.com/u/15314417?v=4",
quote: "You've already solved 90% of my problems with your project :)",
},
],
},
},
// Newsletter
{
newsletter: {
style: "simple",
headline: t("front.newsletter.title"),
subheadline: t("front.newsletter.headline"),
},
},
// Faq
{
faq: {
style: "simple",
headline: "Frequently Asked Questions",
items: [
{
question: "Can I get a refund?",
answer: "Due to the nature of software development being a custom service, we do not offer refunds.",
},
],
},
},
// Footer
{
footer: defaultFooter({ t }),
},
];
return blocks;
}