-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add New Components, Refactor Pages, Update Configurations and Depende…
…ncies (#119) * wip * wip * wip * wip
- Loading branch information
1 parent
89f8e39
commit f9a22b7
Showing
18 changed files
with
309 additions
and
91 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v20.13.1 |
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,25 @@ | ||
'use client'; | ||
|
||
import React from 'react'; | ||
import styled from 'styled-components'; | ||
|
||
// create a two column layout | ||
const Container = styled.div` | ||
width: 400px; | ||
margin: auto; | ||
`; | ||
|
||
const Resumes = () => { | ||
return ( | ||
<Container> | ||
<p>Coming soon...</p> | ||
<p> | ||
This will show meta information about the user. And a preview of their | ||
resume. | ||
</p> | ||
<p>For now use the tooling in the top menu</p> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default Resumes; |
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,5 @@ | ||
import Editor from '../../components/Editor'; | ||
|
||
export default async function Page() { | ||
return <Editor />; | ||
} |
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,13 @@ | ||
'use client'; | ||
|
||
import styled from 'styled-components'; | ||
|
||
const Container = styled.div` | ||
width: 800px; | ||
margin: auto; | ||
padding-top: 40px; | ||
`; | ||
|
||
export default function Home({ children }) { | ||
return <Container>{children}</Container>; | ||
} |
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,88 @@ | ||
'use client'; | ||
|
||
import Header from '@jsonresume/ui/Header'; | ||
import { signOut } from 'next-auth/react'; | ||
import { useParams } from 'next/navigation'; | ||
import Link from '@jsonresume/ui/Link'; | ||
import styled from 'styled-components'; | ||
|
||
const Viewing = styled.div` | ||
height: 30px; | ||
line-height: 30px; | ||
padding: 5px 10px; | ||
background: #8f9dff; | ||
display: flex; | ||
justify-content: space-between; | ||
`; | ||
|
||
export default function Menu({ session }) { | ||
let { username } = useParams(); | ||
console.log({ session }); | ||
return ( | ||
<> | ||
<Header | ||
left={ | ||
<div | ||
style={{ | ||
display: 'flex', | ||
gap: '1rem', | ||
}} | ||
> | ||
<Link href="/">JSON Resume Registry</Link> | ||
<Link href="/explore">Explore</Link> | ||
</div> | ||
} | ||
right={ | ||
<div | ||
style={{ | ||
display: 'flex', | ||
gap: '1rem', | ||
}} | ||
> | ||
{username && <Link href={`/${username}/dashboard`}>Dashboard</Link>} | ||
{session && username && ( | ||
<Link href={`/${username}/editor`}>Editor</Link> | ||
)} | ||
{username && <Link href={`/${username}/jobs`}>Jobs</Link>} | ||
{username && ( | ||
<Link href={`/${username}/suggestions`}>Suggestions</Link> | ||
)} | ||
{username && <Link href={`/${username}/interview`}>Interview</Link>} | ||
{username && <Link href={`/${username}/letter`}>Letter</Link>} | ||
{session && <Link onClick={signOut}>Logout</Link>} | ||
{!session && <Link href="/">Sign in</Link>} | ||
</div> | ||
} | ||
/> | ||
{username && ( | ||
<Viewing> | ||
<div> | ||
You are currently looking at the profile of github.com/@{username} | ||
</div> | ||
<div> | ||
<Link | ||
href={`/${username}`} | ||
target="_blank" | ||
style={{ | ||
marginRight: 20, | ||
fontSize: 12, | ||
}} | ||
> | ||
View Resume | ||
</Link> | ||
<Link | ||
href={`/${username}.json`} | ||
target="_blank" | ||
style={{ | ||
marginRight: 20, | ||
fontSize: 12, | ||
}} | ||
> | ||
View JSON | ||
</Link> | ||
</div> | ||
</Viewing> | ||
)} | ||
</> | ||
); | ||
} |
Oops, something went wrong.