-
Notifications
You must be signed in to change notification settings - Fork 27
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
feat(ui/portal): create singin page components #276
Merged
HasithDeAlwis
merged 2 commits into
main
from
hasith/feat/275-create-singin-page-components
Jan 31, 2025
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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 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 @@ | ||
export { SignInCallToAction } from './ui/call-to-action' |
16 changes: 16 additions & 0 deletions
16
libs/portal/features/sign-in/ui/call-to-action.stories.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,16 @@ | ||
import type { Meta, StoryObj } from '@storybook/react' | ||
import { SignInCallToAction } from './call-to-action' | ||
|
||
const meta = { | ||
title: '🌀 Portal/Signin/Call To Action', | ||
component: SignInCallToAction, | ||
tags: ['autodocs'], | ||
parameters: { | ||
layout: 'centered', | ||
}, | ||
} satisfies Meta<typeof SignInCallToAction> | ||
|
||
export default meta | ||
type Story = StoryObj<typeof meta> | ||
|
||
export const Default: Story = {} |
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,31 @@ | ||
import github_black from '@cuhacking/shared/assets/icons/socials/github-black-1.svg' | ||
import { Button } from '@cuhacking/shared/ui/button' | ||
import { GlassmorphicCard } from '@cuhacking/shared/ui/glassmorphic-card' | ||
|
||
export function SignInCallToAction() { | ||
return ( | ||
<GlassmorphicCard | ||
className="w-full flex flex-col items-center gap-5 p-3" | ||
aria-labelledby="cta-title" | ||
> | ||
<header className="flex flex-col gap-y-1 items-center"> | ||
<h1 id="cta-title" className="text-4xl font-bold">WE HOPE TO</h1> | ||
<h2 | ||
className="text-transparent bg-greendiant bg-clip-text font-extrabold text-5xl" | ||
aria-label="cuHacking brand name" | ||
> | ||
cuHacking | ||
</h2> | ||
</header> | ||
|
||
<Button | ||
variant="primary" | ||
className="flex items-center gap-x-3 px-4" | ||
aria-label="Login with GitHub" | ||
> | ||
<img src={github_black} alt="GitHub logo" className="h-5 w-5" /> | ||
<span>Login</span> | ||
</Button> | ||
</GlassmorphicCard> | ||
) | ||
} |
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,18 @@ | ||
import dashboard_background from '@cuhacking/portal/assets/backgrounds/dashboard-bg-1.webp' | ||
import { SignInCallToAction } from '@cuhacking/portal/features/sign-in' | ||
|
||
export function Signin() { | ||
return ( | ||
<section className="max-w-screen-xl mx-auto relative min-h-screen flex items-center justify-center"> | ||
<main className="relative z-10"> | ||
<SignInCallToAction /> | ||
</main> | ||
<img | ||
src={dashboard_background} | ||
alt="" | ||
aria-hidden="true" | ||
className="absolute top-0 left-0 w-full h-full object-cover z-[-1]" | ||
/> | ||
</section> | ||
) | ||
} |
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,8 @@ | ||
{ | ||
"name": "libs/portal", | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"sourceRoot": "libs/portal", | ||
"projectType": "library", | ||
"tags": [], | ||
"targets": {} | ||
} |
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,10 @@ | ||
{ | ||
"extends": "../../tsconfig.base.json", | ||
"compilerOptions": {}, | ||
"references": [ | ||
{ | ||
"path": "./tsconfig.lib.json" | ||
} | ||
], | ||
"include": ["**/*.ts", "**/*.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,19 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"incremental": true, | ||
"target": "ESNext", | ||
"jsx": "preserve", | ||
"lib": ["dom", "dom.iterable", "esnext"], | ||
"moduleResolution": "bundler", | ||
"resolveJsonModule": true, | ||
"allowJs": true, | ||
"strict": true, | ||
"noEmit": true, | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"isolatedModules": true, | ||
"skipLibCheck": true | ||
}, | ||
"include": ["**/*.ts", "**/*.tsx"] | ||
} |
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 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
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.
Add onClick handler and loading state to the login button.
The button is missing crucial functionality: