Skip to content

Commit

Permalink
fix hero
Browse files Browse the repository at this point in the history
  • Loading branch information
vincanger committed Oct 30, 2024
1 parent 805d2ff commit 387c616
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 17 deletions.
6 changes: 5 additions & 1 deletion opensaas-sh/app_diff/deletions
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
public/public-banner.png
src/client/static/avatar-placeholder.png
src/client/static/open-saas-banner.png
src/client/static/avatar-placeholder.webp
src/client/static/da-boi.png
src/client/static/da-boi.webp
src/client/static/logo.png
src/client/static/open-saas-banner.webp
src/landing-page/logos/SalesforceLogo.tsx
src/payment/lemonSqueezy/checkoutUtils.ts
src/payment/lemonSqueezy/paymentDetails.ts
Expand Down
21 changes: 12 additions & 9 deletions opensaas-sh/app_diff/src/landing-page/components/Hero.tsx.diff
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--- template/app/src/landing-page/components/Hero.tsx
+++ opensaas-sh/app/src/landing-page/components/Hero.tsx
@@ -1,7 +1,25 @@
-import openSaasBanner from '../../client/static/open-saas-banner.png';
-import openSaasBannerWebp from '../../client/static/open-saas-banner.webp';
-import { DocsUrl } from '../../shared/common';
+import { useState, useEffect } from 'react';
+import { AiFillGithub } from 'react-icons/ai';
Expand All @@ -26,9 +26,9 @@
+ }, []);
+
return (
<div className='relative pt-14 w-full '>
<div
@@ -29,30 +47,47 @@
<div className='relative pt-14 w-full'>
<TopGradient />
@@ -9,32 +27,47 @@
<div className='py-24 sm:py-32'>
<div className='mx-auto max-w-8xl px-6 lg:px-8'>
<div className='lg:mb-18 mx-auto max-w-3xl text-center'>
Expand Down Expand Up @@ -69,15 +69,18 @@
+ </a>
</div>
</div>
<div className='mt-14 flow-root sm:mt-14 '>
- <div className='-m-2 rounded-xl lg:-m-4 lg:rounded-2xl lg:p-4'>
- <div className='mt-14 flow-root sm:mt-14'>
- <div className='-m-2 flex justify-center rounded-xl lg:-m-4 lg:rounded-2xl lg:p-4'>
- <img
- src={openSaasBanner}
- src={openSaasBannerWebp}
- alt='App screenshot'
- width={2432}
- height={1442}
- width={1000}
- height={530}
- loading='lazy'
- decoding='async'
- className='rounded-md shadow-2xl ring-1 ring-gray-900/10'
- />
+ <div className='mt-14 flow-root sm:mt-14 '>
+ <div className='-m-2 mx-auto rounded-xl lg:-m-4 lg:rounded-2xl lg:p-4'>
+ <iframe
+ className=' mx-auto w-full md:w-[85%] aspect-[4/3] shadow-2xl'
Expand Down
4 changes: 2 additions & 2 deletions opensaas-sh/app_diff/src/landing-page/contentSections.ts.diff
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
+++ opensaas-sh/app/src/landing-page/contentSections.ts
@@ -1,74 +1,131 @@
-import { DocsUrl, BlogUrl } from '../shared/common';
-import daBoiAvatar from '../client/static/da-boi.png';
-import avatarPlaceholder from '../client/static/avatar-placeholder.png';
-import daBoiAvatar from '../client/static/da-boi.webp';
-import avatarPlaceholder from '../client/static/avatar-placeholder.webp';
-import { routes } from 'wasp/client/router';
+import { DocsUrl, BlogUrl, GithubUrl } from '../shared/common';

Expand Down
6 changes: 4 additions & 2 deletions opensaas-sh/app_diff/tailwind.config.cjs.diff
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
--- template/app/tailwind.config.cjs
+++ opensaas-sh/app/tailwind.config.cjs
@@ -8,6 +8,7 @@
@@ -8,7 +8,8 @@
theme: {
extend: {
fontFamily: {
- satoshi: ['Satoshi', 'system-ui', 'sans-serif'],
+ sans: ['ui-monospace', 'Liberation Mono', 'Menlo', 'monospace'],
satoshi: ['Satoshi', 'sans-serif'],
+ satoshi: ['Satoshi', 'sans-serif'],
},
colors: {
current: 'currentColor',
@@ -246,6 +247,9 @@
'spin-2': 'spin 2s linear infinite',
'spin-3': 'spin 3s linear infinite',
Expand Down
36 changes: 33 additions & 3 deletions template/app/src/landing-page/components/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import { DocsUrl } from '../../shared/common';
export default function Hero() {
return (
<div className='relative pt-14 w-full'>
{/* <BackgroundGradient1 />
<BackgroundGradient2 /> */}

<TopGradient />
<BottomGradient />
<div className='py-24 sm:py-32'>
<div className='mx-auto max-w-8xl px-6 lg:px-8'>
<div className='lg:mb-18 mx-auto max-w-3xl text-center'>
Expand Down Expand Up @@ -44,3 +43,34 @@ export default function Hero() {
);
}

function TopGradient() {
return (
<div
className='absolute top-0 right-0 -z-10 transform-gpu overflow-hidden w-full blur-3xl sm:top-0'
aria-hidden='true'
>
<div
className='aspect-[1020/880] w-[55rem] flex-none sm:right-1/4 sm:translate-x-1/2 dark:hidden bg-gradient-to-tr from-amber-400 to-purple-300 opacity-40'
style={{
clipPath: 'polygon(80% 20%, 90% 55%, 50% 100%, 70% 30%, 20% 50%, 50% 0)',
}}
/>
</div>
);
}

function BottomGradient() {
return (
<div
className='absolute inset-x-0 top-[calc(100%-40rem)] sm:top-[calc(100%-65rem)] -z-10 transform-gpu overflow-hidden blur-3xl'
aria-hidden='true'
>
<div
className='relative aspect-[1020/880] sm:-left-3/4 sm:translate-x-1/4 dark:hidden bg-gradient-to-br from-amber-400 to-purple-300 opacity-50 w-[72.1875rem]'
style={{
clipPath: 'ellipse(80% 30% at 80% 50%)',
}}
/>
</div>
);
}

0 comments on commit 387c616

Please sign in to comment.