-
Notifications
You must be signed in to change notification settings - Fork 26
Hero jumbotron component #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
javiert-okta
wants to merge
14
commits into
header-component
Choose a base branch
from
hero-jumbotron-component
base: header-component
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
398dde8
add sass package
javiert-okta f6ef0ce
add castle png images
javiert-okta 2b853b6
update scss variables and global styles
javiert-okta bbd1861
add hero jumbotron component
javiert-okta 775a7cb
add hero jumbotron styles
javiert-okta 0390685
fix header alignment
javiert-okta 9833a2b
add styling for main layout
javiert-okta f1ab1a8
add classname to layout component
javiert-okta db749aa
render hero jumbotron on main page
javiert-okta 89f8510
delete unused images
javiert-okta 87a7258
fix hero jumbotron button styling
javiert-okta 0bb78b2
merge latest changes
javiert-okta 1bc92ff
fix package-lock.json
javiert-okta 0d20000
fix package-lock
javiert-okta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,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; | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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,3 +1,5 @@ | ||
| import { HeroJumbotronComponent } from "features/common/components/hero-jumbotron/hero-jumbotron.component"; | ||
|
|
||
| export default function Page() { | ||
| return <></> | ||
| return <HeroJumbotronComponent /> | ||
| } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
47 changes: 47 additions & 0 deletions
47
src/features/common/components/hero-jumbotron/hero-jumbotron.component.tsx
This file contains hidden or 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,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> | ||
| ); | ||
| }; |
274 changes: 274 additions & 0 deletions
274
src/features/common/components/hero-jumbotron/hero-jumbotron.module.scss
This file contains hidden or 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,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") | ||
| 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; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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; | ||
| } | ||
| } | ||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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/imagesfolder?