-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
041509e
commit 4fb3d00
Showing
14 changed files
with
906 additions
and
662 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,56 @@ | ||
.title { | ||
font-size: 24px; | ||
font-weight: 600; | ||
color: #242424; | ||
padding: 24px 0px 10px; | ||
margin: 0 24px; | ||
} | ||
|
||
.buttonParent { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: left; | ||
gap: 12px; | ||
width: calc(100% - 48px); | ||
margin: 0 24px; | ||
} | ||
|
||
.button { | ||
border-radius: 14px; | ||
background-color: #9B8D7D; | ||
height: 38px; | ||
overflow: hidden; | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
justify-content: center; | ||
padding: 8px 0px; | ||
box-sizing: border-box; | ||
max-width: 300px; | ||
transition: all 0.2s ease; | ||
cursor: pointer; | ||
} | ||
|
||
.button.active { | ||
background-color: #f98c13; | ||
} | ||
|
||
.button:hover { | ||
transform: translateY(-1px); | ||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); | ||
} | ||
|
||
.text { | ||
position: relative; | ||
line-height: 22px; | ||
font-weight: 600; | ||
margin: 0 14px; | ||
color: #fff; | ||
} | ||
|
||
@media (max-width: 768px) { | ||
.buttonParent { | ||
width: calc(100% - 48px); | ||
margin: 0 24px; | ||
} | ||
} |
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,29 @@ | ||
import { FC } from 'react'; | ||
import { useRouter } from 'next/router'; | ||
import styles from './ApiSection.module.css'; | ||
|
||
export const ApiSection: FC = () => { | ||
const router = useRouter(); | ||
|
||
const handleNavigateToSaas = () => { | ||
router.push('/saas'); | ||
}; | ||
|
||
return ( | ||
<div> | ||
<h2 className={styles.title}>API Access</h2> | ||
<div className={styles.buttonParent}> | ||
<div | ||
className={styles.button} | ||
onClick={handleNavigateToSaas} | ||
> | ||
<div className={styles.text}> | ||
Get API Access | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ApiSection; |
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,53 @@ | ||
.container { | ||
width: 100%; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding: 24px 24px 0; | ||
max-width: 800px; | ||
margin: 0 auto; | ||
} | ||
|
||
.userInfo { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 4px; | ||
} | ||
|
||
.userName { | ||
font-size: 24px; | ||
font-weight: 600; | ||
color: #242424; | ||
margin: 0; | ||
} | ||
|
||
.userRole { | ||
font-size: 14px; | ||
color: #9B8D7D; | ||
font-weight: 500; | ||
} | ||
|
||
.imageContainer { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.profileImage { | ||
border-radius: 50%; | ||
object-fit: cover; | ||
} | ||
|
||
@media (max-width: 768px) { | ||
.container { | ||
padding: 16px 16px 0; | ||
} | ||
|
||
.userName { | ||
font-size: 20px; | ||
} | ||
|
||
.userRole { | ||
font-size: 12px; | ||
} | ||
} |
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,33 @@ | ||
import { FC } from 'react'; | ||
import { useSession } from 'next-auth/react'; | ||
import Image from 'next/image'; | ||
import styles from './ProfileData.module.css'; | ||
|
||
export const ProfileData: FC = () => { | ||
const { data: session } = useSession(); | ||
|
||
return ( | ||
<div className={styles.container}> | ||
<div className={styles.userInfo}> | ||
<h1 className={styles.userName}> | ||
{session?.user?.name || 'Anonymous'} | ||
</h1> | ||
<span className={styles.userRole}>Partner</span> | ||
</div> | ||
{session?.user?.image && ( | ||
<div className={styles.imageContainer}> | ||
<Image | ||
src={session.user.image} | ||
alt="Profile" | ||
width={48} | ||
height={48} | ||
className={styles.profileImage} | ||
priority | ||
/> | ||
</div> | ||
)} | ||
</div> | ||
); | ||
}; | ||
|
||
export default ProfileData; |
Oops, something went wrong.