Skip to content

Commit

Permalink
Merge branch 'xp/2023-08-17-blog-cta' into xp/2023-08-17-blog-cta-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
yuval-hazaz committed Aug 18, 2023
2 parents 804fe52 + b5af4b6 commit 00dba0f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
10 changes: 7 additions & 3 deletions components/Common/CtaBanner/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ const CtaBanner = ({bgVersion, title, subTitle, buttonText, buttonUrl}) => {
});
});

const bgStyle = bgVersion === 'version1' ? 'bg-cta-1' : 'bg-cta-2';
const bgStyle =
bgVersion === 'version1'
? 'bg-cta-1-small tablet:bg-cta-1'
: 'bg-cta-2-small tablet:bg-cta-2';

const defaultTitle = (
<>
Instantly generate <br /> production-ready backend
Expand All @@ -30,9 +34,9 @@ const CtaBanner = ({bgVersion, title, subTitle, buttonText, buttonUrl}) => {

return (
<div
className={`w-full px-12 py-16 my-10 rounded-2xl bg-no-repeat bg-cover bg-left-bottom relative laptop:min-h-[300px] border-3 border-white ${bgStyle}`}
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="">
<div className="max-w-[320px] tablet:max-w-[500px]">
<div className="font-bold text-white text-[24px] leading-[32px]">
{title || defaultTitle}
</div>
Expand Down
Binary file added public/images/bg/cta-bg-1-small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/bg/cta-bg-2-small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ module.exports = {
'form-pattern-2-desktop': "url('/images/decor_2_desktop.svg')",
'cta-1': "url('/images/bg/cta-bg-1.png')",
'cta-2': "url('/images/bg/cta-bg-2.png')",
'cta-1-small': "url('/images/bg/cta-bg-1-small.png')",
'cta-2-small': "url('/images/bg/cta-bg-2-small.png')",
noise: "url('/images/noise.png')",
quote: "url('/images/bg/quotes.svg')",
},
Expand Down

0 comments on commit 00dba0f

Please sign in to comment.