Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

gradient fixes, orbit section

Francisco Mazzoni2b5d541ef6ae
diff --git a/apps/www/pages/launch-week/index.tsx b/apps/www/pages/launch-week/index.tsx
index b0d611893ff..3baedbe59af 100644
--- a/apps/www/pages/launch-week/index.tsx
+++ b/apps/www/pages/launch-week/index.tsx
@@ -9,6 +9,9 @@ import PreLaunchTeaser from '~/components/LaunchWeek/PreLaunchTeaser'
import ScheduleInfo from '~/components/LaunchWeek/ScheduleInfo'
import { WeekDayProps } from '~/components/LaunchWeek/types'
+import { ArrowRightIcon } from '@heroicons/react/outline'
+import { Badge, Modal } from 'ui'
+
const days = _days as WeekDayProps[]
export default function launchweek() {
@@ -63,11 +66,58 @@ export default function launchweek() {
</button>
</form>
</SectionContainer>
- <div className="flair">
- <div className="flair_mask_a"></div>
- <div className="flair_mask_b"></div>
+ <div className="gradient-container">
+ <div className="flair-mask-a"></div>
+ <div className="flair-mask-b"></div>
+ <div className="flex justify-between pt-80 mx-6 md:mx-16 lg:mx-40 overflow-hidden">
+ <div className="flex-1 relative overflow-hidden radial-mask">
+ <div className="orbit absolute top-[75%]">
+ <span className="planet1"></span>
+ <span className="planet2"></span>
+ <span className="planet3"></span>
+ <span className="planet4"></span>
+ </div>
+ </div>
+ <div className="flex flex-col flex-1">
+ <Badge
+ color="brand"
+ size="large"
+ className="text-center flex justify-center mb-6 w-40"
+ >
+ <p className="flex items-center gap-2 p-1">Currently happening</p>
+ </Badge>
+ <h2 className="text-scale-1200 text-5xl mb-6">See creators using Supabase</h2>
+ <p className="text-scale-800 text-base md:max-w-xl mb-16">
+ Description about Content Storm, something to tie it up with Launch Week
+ </p>
+
+ <h3 className="text-scale-1200 text-sm mb-2">Coding Garden</h3>
+ <p className="text-scale-800 text-base md:max-w-[60%] mb-2">
+ If needed this is a short description about the type of content this is linking to.
+ </p>
+ <div className="flex items-center">
+ <a href="www.google.com" className="text-bas text-brand-1100 mr-3">
+ Livestreaming Typescript
+ </a>{' '}
+ <div className="w-4 text-brand-1100">
+ <ArrowRightIcon />
+ </div>
+ </div>
+ </div>
+ {/* <div className="dark:bg-scale-300 flex flex-col gap-4 overflow-hidden rounded-md border bg-white shadow-sm md:max-w-lg">
+ <div className="flex flex-col gap-3 p-10 pb-0">
+ <h3 className="text-scale-1200 text-lg">You can still win a lucky gold ticket</h3>
+ <p className="text-scale-1100 text-sm">
+ A few of the lucky attendees for Launch Week will get a limited edition Supabase
+ goodie bag.
+ </p>
+ </div>
+ <div className="px-10"></div>
+ <img src="/images/launchweek/gold-ticket.svg" className="w-full" />
+ </div> */}
+ </div>
</div>
- <SectionContainer
+ {/* <SectionContainer
className={[
'grid flex-col gap-24 lg:gap-16',
!shippingHasStarted && 'lg:grid-cols-2 ',
@@ -89,7 +139,7 @@ export default function launchweek() {
</SectionContainer>
<SectionContainer>
<HackathonSection />
- </SectionContainer>
+ </SectionContainer> */}
</DefaultLayout>
</>
)
diff --git a/apps/www/styles/index.css b/apps/www/styles/index.css
index 6d6deb06a51..b4c951bf75a 100644
--- a/apps/www/styles/index.css
+++ b/apps/www/styles/index.css
@@ -430,8 +430,8 @@ launch week
}
}
-.flair {
- height: 500px;
+.gradient-container {
+ min-height: 500px;
position: relative;
background: radial-gradient(
circle at 50% -100%,
@@ -441,17 +441,17 @@ launch week
);
}
-.flair_mask_a {
+.flair-mask-a {
position: absolute;
background-color: var(--colors-brand8);
left: 0;
top: 0;
width: 100%;
height: 500px;
- clip-path: ellipse(52% 100px at 50% 3px);
+ clip-path: ellipse(52% 135px at 50% 3px);
}
-.flair_mask_b {
+.flair-mask-b {
position: absolute;
/* var colors-brand not working :/ */
background-color: var(--colors-scale2);
@@ -459,44 +459,69 @@ launch week
top: 0;
width: 100%;
height: 500px;
- clip-path: ellipse(52% 100px at 50% 0px);
+ clip-path: ellipse(52% 135px at 50% 0px);
}
-.testGradient {
- margin: 0 auto;
- width: 100%;
- height: 200px;
- border-bottom: 0;
- background: radial-gradient(
- circle at 50% -100%,
- rgba(0, 155, 112, 1) 0%,
- rgba(28, 28, 28, 1) 70%,
- rgba(28, 28, 28, 1) 100%
- );
+.orbit {
+ width: 192px;
+ height: 192px;
+ border-radius: 50%;
+ background: var(--colors-scale2) content-box;
+ border: 1px solid gray;
+ box-shadow: 0 0 0 50px var(--colors-scale2), 0 0 0 51px gray, 0 0 0 100px var(--colors-scale2),
+ 0 0 0 101px gray, 0 0 0 150px var(--colors-scale2), 0 0 0 151px gray;
+ margin: auto;
position: relative;
- overflow: hidden;
}
-.testGradient:after {
- content: '';
+.orbit span {
position: absolute;
- height: 140px;
- left: -10%;
- right: -10%;
- border-radius: 50%;
- bottom: 156px;
- background: #1c1c1c;
- z-index: 2;
+ height: 45px;
+ width: 45px;
+ background: blue;
+ border-radius: inherit;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%) rotate(var(--r, 0deg)) translateX(var(--d, 0px));
}
-.testGradient:before {
- content: '';
- position: absolute;
- height: 138px;
- left: -10%;
- right: -10%;
- border-radius: 50%;
- bottom: 154px;
- background: var(--colors-brand6);
- z-index: 1;
+.planet1 {
+ --d: 96px;
+ --r: -90deg;
+}
+
+.planet2 {
+ --d: 146px;
+ --r: -137deg;
+}
+
+.planet3 {
+ --d: 196px;
+ --r: -45deg;
+}
+
+.planet4 {
+ --d: 246px;
+ --r: -110deg;
+}
+
+.radial-mask {
+ /* -webkit-mask-image: conic-gradient(
+ from 0deg at 45% 47%,
+ #ffffffff 0%,
+ #000000ff 25%,
+ #000000ff 50%,
+ #000000ff 75%,
+ #ffffffff 100%
+ );
+ mask-image: conic-gradient(
+ from 0deg at 45% 47%,
+ #ffffffff 0%,
+ #000000ff 25%,
+ #000000ff 50%,
+ #000000ff 75%,
+ #ffffffff 100%
+ ); */
+
+ -webkit-mask-image: linear-gradient(rgba(0, 0, 0, 1), transparent);
}