Skip to content

Commit

Permalink
blah
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdavis committed Mar 2, 2024
1 parent cacc7de commit 538efa7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
7 changes: 3 additions & 4 deletions apps/registry/pages/jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,9 @@ export default function Jobs() {
<Layout>
{' '}
<Hero>
We create an embedding with 3702 dimensions of your resume.json. The
same is done for Hacker News posts which have also been processed by GPT
3.5. Once both embeddings are calculated, we do a vector similarity
search.
Creates an embedding with 3702 dimensions of your resume.json. The same
is done for Hacker News posts which have also been processed by GPT 3.5.
Once both embeddings are calculated, we do a vector similarity search.
</Hero>
<ButtonGroup>
<div></div>
Expand Down
29 changes: 18 additions & 11 deletions apps/registry/src/ui/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const UserSearch = styled.div`
}
`;

const UserInput = styled.input`
const UserSelect = styled.select`
margin-left: 10px;
padding: 5px;
border-radius: 5px;
Expand All @@ -102,14 +102,14 @@ export default function Layout({ children }) {
setUsers(data);
};
fetchUsers();
});

console.log({ users });
}, []);

// const onChangeUser = (e) => {
// setUser(e.target.value);
// };

// rmember to cache the users api

return (
<>
<Container>
Expand All @@ -128,13 +128,20 @@ export default function Layout({ children }) {
<UserSearch>
<div>
Using the resume of
{username && (
<UserInput
type="text"
placeholder="Github username"
value={username}
/>
)}
<UserSelect defaultValue={username} value={username}>
{users.map((user) => {
console.log(username === user.username);
return (
<option
selected={username === user.username}
key={user.username}
value={user.username}
>
{user.username}
</option>
);
})}
</UserSelect>
</div>
<div>
<a href={`https://registry.jsonresume.org/${username}`}>
Expand Down

0 comments on commit 538efa7

Please sign in to comment.