fix: Guide formatting
All checks were successful
Deploy to Staging / Build Images (push) Successful in 1m11s
Deploy to Staging / Deploy to Staging (push) Successful in 42s
Deploy to Staging / Verify Staging (push) Successful in 4s
Deploy to Staging / Notify Staging Ready (push) Successful in 3s
Deploy to Staging / Notify Staging Failure (push) Has been skipped
All checks were successful
Deploy to Staging / Build Images (push) Successful in 1m11s
Deploy to Staging / Deploy to Staging (push) Successful in 42s
Deploy to Staging / Verify Staging (push) Successful in 4s
Deploy to Staging / Notify Staging Ready (push) Successful in 3s
Deploy to Staging / Notify Staging Failure (push) Has been skipped
This commit is contained in:
@@ -1,19 +1,28 @@
|
|||||||
|
type GuideScreenshotSize = 'wide' | 'narrow';
|
||||||
|
|
||||||
interface GuideScreenshotProps {
|
interface GuideScreenshotProps {
|
||||||
src: string;
|
src: string;
|
||||||
alt: string;
|
alt: string;
|
||||||
caption?: string;
|
caption?: string;
|
||||||
mobile?: boolean;
|
mobile?: boolean;
|
||||||
|
size?: GuideScreenshotSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const GuideScreenshot = ({ src, alt, caption, mobile }: GuideScreenshotProps) => {
|
const SIZE_CLASS: Record<GuideScreenshotSize, string> = {
|
||||||
|
wide: 'max-w-4xl',
|
||||||
|
narrow: 'max-w-lg',
|
||||||
|
};
|
||||||
|
|
||||||
|
export const GuideScreenshot = ({ src, alt, caption, mobile, size = 'wide' }: GuideScreenshotProps) => {
|
||||||
|
const widthClass = mobile ? 'max-w-[375px]' : SIZE_CLASS[size];
|
||||||
return (
|
return (
|
||||||
<figure className={`my-6 ${mobile ? 'max-w-[375px]' : 'max-w-4xl'} mx-auto`}>
|
<figure className={`my-6 ${widthClass} mx-auto`}>
|
||||||
<div className="rounded-lg overflow-hidden border border-white/10 shadow-lg shadow-black/20">
|
<div className="rounded-lg overflow-hidden border border-white/10 shadow-lg shadow-black/20">
|
||||||
<img
|
<img
|
||||||
src={src}
|
src={src}
|
||||||
alt={alt}
|
alt={alt}
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
className="w-full h-auto"
|
className="max-w-full h-auto"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{caption && (
|
{caption && (
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ export const GettingStartedSection = () => {
|
|||||||
src="/guide/signup-desktop.png"
|
src="/guide/signup-desktop.png"
|
||||||
alt="Sign Up page with registration form"
|
alt="Sign Up page with registration form"
|
||||||
caption="The Sign Up form with email, password, and terms & conditions fields"
|
caption="The Sign Up form with email, password, and terms & conditions fields"
|
||||||
|
size="narrow"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<p className="text-titanio/70 leading-relaxed mb-4">
|
<p className="text-titanio/70 leading-relaxed mb-4">
|
||||||
@@ -69,6 +70,7 @@ export const GettingStartedSection = () => {
|
|||||||
src="/guide/login-desktop.png"
|
src="/guide/login-desktop.png"
|
||||||
alt="Login page showing email and password entry"
|
alt="Login page showing email and password entry"
|
||||||
caption="The secure Auth0 login page"
|
caption="The secure Auth0 login page"
|
||||||
|
size="narrow"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<p className="text-titanio/70 leading-relaxed mb-4">
|
<p className="text-titanio/70 leading-relaxed mb-4">
|
||||||
|
|||||||
Reference in New Issue
Block a user