Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions app/layout.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@use "libs/theme/styles/variables" as *;
@use "libs/theme/styles/mixins" as *;

.main {
position: relative;
display: flex;
flex-direction: column;
width: 100%;

margin-top: $main-nav-height-mobile;

@media #{$breakpoint-dimension-md} {
margin-top: $main-nav-height;
}
}
3 changes: 2 additions & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
import { PrimaryFont } from "libs/theme/fonts";
import { cookies } from "next/headers";
import "libs/theme/styles/globals.scss";
import styles from "./layout.module.scss"
import { MobileHeaderComponent } from "features/common/components/mobile-header/mobile-header.component";

export default async function RootLayout({
Expand Down Expand Up @@ -66,7 +67,7 @@ export default async function RootLayout({
<body className={PrimaryFont.className} data-theme={theme}>
<HeaderComponent theme={theme} />
<MobileHeaderComponent theme={theme} />
{children}
<main className={styles.main} >{children}</main>
{/* <noscript>
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N6KSGFBD" height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript> */}
Expand Down
4 changes: 3 additions & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { HeroJumbotronComponent } from "features/common/components/hero-jumbotron/hero-jumbotron.component";

export default function Page() {
return <></>
return <HeroJumbotronComponent />
}
Binary file added public/images/castle-mobile.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/castle-tablet.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/castle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions src/features/common/components/header/header.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@

.container {
display: none;
max-width: calc(100% - 2rem);
width: 100%;
position: fixed;
top: 1rem;
top: 0;
right: 0;
left: 0;
color: var(--color_fg_link);
background: var(--color_bg_layer);
z-index: 100;

@media #{$breakpoint-dimension-sm} {
display: block;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import React from "react";
import Image from "next/image";
import styles from "./hero-jumbotron.module.scss";
import Link from "next/link";

export const HeroJumbotronComponent: React.FC = () => {
return (
<div className={styles.container}>
<div className={styles.wrapper}>
<div className={styles.content}>
<div className={styles.hero}>
<div className={styles.hero__copy}>
<div className={styles.hero__text}>
<h1 className={styles.hero__title}>
OpenID Connect Playground
</h1>
<p className={styles.hero__description}>
The OIDC playground is for developers to test and work with
OpenID Connect calls step-by-step, giving them more insight
into how OpenID Connect works.
</p>
</div>

<Link className={styles.hero__ctaButton} href={"/test"}>
Try it now
</Link>
</div>
<div className={styles.hero__media}>
<Image
className={styles.hero__image}
src={"/images/castle.png"}
alt={"Castle"}
sizes="100vw"
style={{
width: "100%",
height: "auto",
}}
height={1200}
width={1600}
/>
</div>
</div>
</div>
</div>
</div>
);
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,274 @@
@use "libs/theme/styles/variables" as *;
@use "libs/theme/styles/mixins" as *;

.container {
@include Container;
position: relative;
overflow: hidden;
background-color: var(--charcoal2);

:global(body[data-theme="light"]) & {
background-color: var(--functional-gray-150);
}

&:before {
position: absolute;
bottom: 0;
right: 0;
content: "";
width: 100%;
height: 100%;
background-size: contain;

background: url("https://cdn.auth0.com/website/cic-homepage/bg-mobile/BG_Mobile.svg")
center top no-repeat;
background-size: cover;
}

:global(body[data-theme="light"]) &:before {
background: url("https://cdn.auth0.com/website/passkeys-playground/assets/light.hero-banner-bg.png")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we get these images from the CDN instead of the /public/images folder?

center top no-repeat;
background-size: cover;
}

@media #{$breakpoint-dimension-xxs} {
&:before {
background-size: cover;
}
}

@media #{$breakpoint-dimension-md} {
background-color: unset;

:global(body[data-theme="light"]) & {
background-color: unset;
}

&:before {
background: unset;
}

:global(body[data-theme="light"]) &:before {
background: unset;
}

&:after {
display: none;
background: none;
}
}
}

.wrapper {
@include ExtendedGrid;
justify-content: center;

border-radius: 0;
overflow: hidden;

@media #{$breakpoint-dimension-md} {
backdrop-filter: blur(4rem);
border-radius: 0 0 1.5rem 1.5rem;

background-color: #191919;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be a css var


:global(body[data-theme="light"]) & {
background-color: #f1f1f1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be a css var

}

&:before {
position: absolute;
bottom: 0;
right: 0;
content: "";
width: 100%;
height: 100%;
background-size: contain;

background: url("https://cdn.auth0.com/website/cic-homepage/bg-mobile/BG_Mobile.svg")
center top / 120% no-repeat;
}

:global(body[data-theme="light"]) &:before {
background-size: cover;
background: url("https://cdn.auth0.com/website/passkeys-playground/assets/light.hero-banner-bg.png")
center top / 140% no-repeat;
}
}
}

.content {
@include InnerContentFlex;
justify-content: center;

@media #{$breakpoint-dimension-sm} {
@include InnerContentGrid;
}
}

.hero {
z-index: 1;
width: 100%;
display: flex;
flex-direction: column;
padding: 2rem 0;
align-items: center;
gap: 2rem;

@media #{$breakpoint-dimension-sm} {
grid-column: 1 / -1;
display: grid;
grid-template-columns: subgrid;
}
}

.hero__copy {
grid-column: 1 / span 4;
display: flex;
flex-direction: column;
justify-content: center;
gap: 1.5rem;

@media #{$breakpoint-dimension-sm} {
grid-column: 1 / span 6;
}
}

.hero__text {
width: 100%;
display: flex;
flex-direction: column;
gap: 1rem;
}

.hero__title {
width: 100%;
margin: 0;
text-align: left;
font-size: 3rem;
line-height: 3.25rem;
letter-spacing: -0.03rem;
font-weight: 400;
color: var(--color_fg_bold);
font-variant-numeric: lining-nums proportional-nums;
font-style: normal;

@media #{$breakpoint-dimension-sm} {
font-size: 2.5rem;
line-height: 3rem;
letter-spacing: -0.08rem;
}

@media #{$breakpoint-dimension-md} {
font-size: 3.5rem;
line-height: 4rem;
letter-spacing: -1px;
}
}

.hero__description {
color: var(--color_fg_default);
font-size: 0.875rem;
line-height: 1.375rem;
letter-spacing: 0.02rem;
font-weight: 400;

@media #{$breakpoint-dimension-sm} {
max-width: 39rem;
font-size: 1rem;
line-height: 1.5rem;
letter-spacing: 0.01rem;
}

@media #{$breakpoint-dimension-md} {
font-size: 1.25rem;
line-height: 1.75rem;
letter-spacing: 0.01rem;
}
}

.hero__media {
position: relative;
grid-column: 1 / span 4;
align-self: center;
justify-self: center;
display: flex;
align-items: center;
max-width: 64rem;
justify-content: center;
gap: 2.4rem;

overflow: hidden;

width: 100%;

@media #{$breakpoint-dimension-sm} {
width: 100%;
height: 100%;
grid-column: 7 / span 6;
}
}

.hero__image {
max-width: 30rem;

@media #{$breakpoint-dimension-sm} {
max-width: unset;
}
}

.hero__ctaButton {
display: flex;
padding: 1rem 2rem;
justify-content: center;
align-items: center;
gap: 0.5rem;
align-self: stretch;
border-radius: 0.375rem;
color: var(--color_fg_link);
font-size: 1rem;
line-height: 1.5rem;
font-style: normal;
font-weight: 500;
letter-spacing: 0.2px;
background: linear-gradient(var(--color_bg_button_primary_hero), var(--color_bg_button_primary_hero)) padding-box,
linear-gradient(90deg,#3F59E4, #92D7CC) border-box;
border: 1.5px solid transparent;
backdrop-filter: blur(20px);

@media #{$breakpoint-dimension-sm} {
width: fit-content;
}
}

.hero__ctaArrow {
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
height: 0.75rem;
width: 0.75rem;

svg {
height: 0.75rem;
width: 0.75rem;

path {
fill: $color_fg_on_button_primary;
}
}

@media #{$breakpoint-dimension-sm} {
height: 1rem;
width: 1rem;

svg {
height: 0.875rem;
width: 0.875rem;
}
}

&[data-rotation="true"] {
animation: rotate 2s linear infinite;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
@use "libs/theme/styles/mixins" as *;

.container {
width: calc(100% - 2rem);
position: fixed;
top: 1rem;
top: 0;
right: 0;
left: 0;
border-radius: 1rem;
Expand Down
Loading