-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Designed pages distribution, devops, infraops, help-and-support
- Loading branch information
Bikash
authored and
Bikash
committed
Dec 21, 2023
1 parent
0eaa439
commit ff74a4a
Showing
69 changed files
with
3,888 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
.next |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
.next | ||
node_modules | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
import { ReactNode } from 'react'; | ||
import { cn } from '../utils/commons'; | ||
|
||
export const Graph = ({ | ||
className, | ||
children, | ||
blurSize = 'md', | ||
responsive = false, | ||
}: { | ||
className?: string; | ||
children: ReactNode; | ||
blurSize?: 'md' | 'xs' | 'sm' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl'; | ||
responsive?: boolean; | ||
}) => { | ||
return ( | ||
<div | ||
className={cn( | ||
'graph', | ||
{ | ||
'before:bg-[100%_5%,100%_5%,5%_100%,5%_100%]': blurSize === 'xs', | ||
'before:bg-[100%_7%,100%_7%,7%_100%,7%_100%]': blurSize === 'sm', | ||
'before:bg-[100%_10%,100%_10%,5%_100%,5%_100%] 2xl:before:bg-[100%_10%,100%_10%,10%_100%,10%_100%]': | ||
blurSize === 'md' && responsive, | ||
'before:bg-[100%_10%,100%_10%,10%_100%,10%_100%]': | ||
blurSize === 'md' && !responsive, | ||
'before:bg-[100%_13%,100%_13%,13%_100%,13%_100%]': blurSize === 'lg', | ||
'before:bg-[100%_15%,100%_15%,15%_100%,15%_100%]': blurSize === 'xl', | ||
'before:bg-[100%_17%,100%_17%,17%_100%,17%_100%]': blurSize === '2xl', | ||
'before:bg-[100%_20%,100%_20%,20%_100%,20%_100%]': blurSize === '3xl', | ||
'before:bg-[100%_23%,100%_23%,23%_100%,23%_100%]': blurSize === '4xl', | ||
'before:bg-[100%_25%,100%_25%,25%_100%,25%_100%]': blurSize === '5xl', | ||
}, | ||
className | ||
)} | ||
> | ||
{children} | ||
</div> | ||
); | ||
}; | ||
|
||
export const GraphItem = ({ | ||
className, | ||
children, | ||
}: { | ||
className?: string; | ||
children?: ReactNode; | ||
}) => { | ||
const lineVertical = () => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="2" | ||
height="100%" | ||
viewBox="0 0 2 480" | ||
fill="none" | ||
preserveAspectRatio="none" | ||
> | ||
<path d="M1 0.000488281L1.00002 480.001" stroke="#D4D4D8" /> | ||
</svg> | ||
); | ||
|
||
const lineHorizontal = () => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="100%" | ||
height="2" | ||
viewBox="0 0 1184 2" | ||
fill="none" | ||
preserveAspectRatio="none" | ||
> | ||
<path d="M0 1.00122L1184 1.00132" stroke="#D4D4D8" /> | ||
</svg> | ||
); | ||
|
||
return ( | ||
<div className={cn('relative', className)}> | ||
<div className="absolute pointer-events-none inset-0 z-10"> | ||
<div className="h-[calc(100%+40px)] md:h-[calc(100%+64px)] absolute -left-xs -top-[20px] md:-top-[32px]"> | ||
{lineVertical()} | ||
</div> | ||
<div className="h-[calc(100%+40px)] md:h-[calc(100%+64px)] absolute -right-xs -top-[20px] md:-top-[32px]"> | ||
{lineVertical()} | ||
</div> | ||
<div className="w-[calc(100%+40px)] md:w-[calc(100%+64px)] absolute -top-xs -left-[20px] md:-left-[32px]"> | ||
{lineHorizontal()} | ||
</div> | ||
<div className="w-[calc(100%+40px)] md:w-[calc(100%+64px)] absolute -bottom-xs -left-[20px] md:-left-[32px]"> | ||
{lineHorizontal()} | ||
</div> | ||
</div> | ||
{children} | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
src/apps/devdoc/app/components/website/code-editor-placeholder.tsx
Large diffs are not rendered by default.
Oops, something went wrong.
55 changes: 55 additions & 0 deletions
55
src/apps/devdoc/app/components/website/discover-component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import { ReactNode } from 'react'; | ||
import { Graph, GraphItem } from '../graph'; | ||
|
||
interface IFeatureItem { | ||
icon: any; | ||
label: ReactNode; | ||
} | ||
const FeatureItem = ({ icon: Icon, label }: IFeatureItem) => { | ||
return ( | ||
<div className="p-4xl flex flex-col justify-between gap-4xl bg-surface-basic-default min-h-[256px]"> | ||
<span | ||
className="flex items-center justify-center rounded-full text-text-on-primary h-10xl w-10xl" | ||
style={{ | ||
background: 'linear-gradient(170deg, #3B82F6 6.19%, #1E3A8A 95.65%)', | ||
}} | ||
> | ||
<Icon icon={48} /> | ||
</span> | ||
<span className="headingLg text-text-default">{label}</span> | ||
</div> | ||
); | ||
}; | ||
|
||
interface IDiscover { | ||
title: ReactNode; | ||
desc: ReactNode; | ||
features: { | ||
label: string; | ||
icon: any; | ||
}[]; | ||
} | ||
const Discover = ({ features, title, desc }: IDiscover) => { | ||
return ( | ||
<> | ||
<div className="flex flex-col gap-3xl text-center"> | ||
<div className="flex flex-col gap-md"> | ||
<p className="bodyXl-medium text-text-disabled">Salient features</p> | ||
<h3 className="heading5xl-marketing text-text-default">{title}</h3> | ||
</div> | ||
<p className="bodyXl-medium text-text-soft">{desc}</p> | ||
</div> | ||
<Graph className="-mx-10xl"> | ||
<div className="grid grid-cols-4 gap-5xl px-10xl py-10xl"> | ||
{features.map((feature) => ( | ||
<GraphItem key={feature.label}> | ||
<FeatureItem {...feature} /> | ||
</GraphItem> | ||
))} | ||
</div> | ||
</Graph> | ||
</> | ||
); | ||
}; | ||
|
||
export default Discover; |
Oops, something went wrong.