Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xp: update blog CTA #397

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/Common/CtaBanner/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const CtaBanner = ({bgVersion, title, subTitle, buttonText, buttonUrl}) => {
className={`w-full px-4 py-4 tablet:px-12 tablet:py-16 my-10 rounded-2xl bg-no-repeat bg-cover bg-right-top relative min-h-[450px] tablet:min-h-[300px] border-3 border-white ${bgStyle} `}
>
<div className="max-w-[320px] tablet:max-w-[500px]">
<div className="font-bold text-white text-[32px] leading-[42px]">
<div className="font-bold text-white text-[24px] leading-[32px]">
{title || defaultTitle}
</div>
<div className="font-regular text-white text-[18px] mt-2 mb-4">
Expand Down
20 changes: 18 additions & 2 deletions pages/blog/[slug].js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,27 @@ import errorPage from '../404';
import {MainLayout} from '../../layouts';
import TOC from '../../components/Posts/TOC';

const CTA_TITLE =
'Today everyone is generating code, but do you have the guts to deploy it to production?';
const CTA_SUB_TITLE = 'Amplication - generate a code you can trust!';

const CTA1 = () => {
return <CtaBanner bgVersion={'version1'}></CtaBanner>;
return (
<CtaBanner
bgVersion={'version1'}
title={CTA_TITLE}
subTitle={CTA_SUB_TITLE}
></CtaBanner>
);
};
const CTA2 = () => {
return <CtaBanner bgVersion={'version2'}></CtaBanner>;
return (
<CtaBanner
bgVersion={'version2'}
title={CTA_TITLE}
subTitle={CTA_SUB_TITLE}
></CtaBanner>
);
};

const Post = ({posts, post}) => {
Expand Down
Loading