Skip to content

Commit

Permalink
Next
Browse files Browse the repository at this point in the history
  • Loading branch information
filipakkad committed Sep 19, 2024
1 parent a56dd8b commit 084d54b
Show file tree
Hide file tree
Showing 51 changed files with 169 additions and 77 deletions.
53 changes: 0 additions & 53 deletions docs/assets/index-CmzMCBq4.js

This file was deleted.

Large diffs are not rendered by default.

82 changes: 82 additions & 0 deletions docs/assets/index-Ds9CvZCu.js

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
</script>
<script type="module" crossorigin src="/assets/index-CmzMCBq4.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DUtqBRYz.css">
<script type="module" crossorigin src="/assets/index-Ds9CvZCu.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DWtNckrg.css">
</head>
<body>
<div id="root"></div>
Expand Down
39 changes: 39 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"react-dom": "^18.3.1",
"react-icons": "^5.3.0",
"react-markdown": "^9.0.1",
"react-router-dom": "^6.26.2",
"react-spring": "^9.7.4"
},
"devDependencies": {
Expand Down
12 changes: 6 additions & 6 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import './App.css'
import {Offer} from "./Offer.tsx";
import "@fontsource/montserrat"; // Defaults to weight 400
import "@fontsource/montserrat/200.css"; // Specify weight
import "@fontsource/montserrat/300.css"; // Specify weight
import "@fontsource/montserrat/400.css"; // Specify weight
import "@fontsource/montserrat/500.css"; // Specify weight
import "@fontsource/montserrat/600.css"; // Specify weight
import "@fontsource/montserrat/700.css"; // Specify weight
import "@fontsource/montserrat/latin-200.css"; // Specify weight
import "@fontsource/montserrat/latin-300.css"; // Specify weight
import "@fontsource/montserrat/latin-400.css"; // Specify weight
import "@fontsource/montserrat/latin-500.css"; // Specify weight
import "@fontsource/montserrat/latin-600.css"; // Specify weight
import "@fontsource/montserrat/latin-700.css"; // Specify weight
import {FaEnvelope, FaLinkedinIn, FaCity} from "react-icons/fa";

import img from "./assets/fa_photo.jpg"
Expand Down
12 changes: 7 additions & 5 deletions src/Comment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ const CloseIcon = (props: SVGProps<SVGSVGElement>) => {


const comments: Record<Comments, string> = {
[Comments.INTRO]: "comment-intro.md",
[Comments.TEST]: "comment-1.md",
[Comments.TEST2]: "comment-2.md",
[Comments.Intro]: "comment-intro.md",
[Comments.General]: "comment-1.md",
[Comments.Tooling]: "comment-2.md",
[Comments.Experience]: "comment-experience.md",
[Comments.Components]: "comment-components.md",
[Comments.ReactNative]: "comment-reactnative.md",
Expand Down Expand Up @@ -76,8 +76,10 @@ export const Comment = ({currentComment, onClose}: { currentComment: Comments, o
[]
)
useEffect(() => {
const filename = comments[currentComment]; // Get the file name from the comments object
loadMarkdown(filename).then(setMarkdownContent).catch(console.error);
if(currentComment) {
const filename = comments[currentComment]; // Get the file name from the comments object
loadMarkdown(filename).then(setMarkdownContent).catch(console.error);
}
}, [currentComment]);
return (
<animated.div
Expand Down
27 changes: 21 additions & 6 deletions src/Offer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import {ReactNode, useState} from "react";
import {ReactNode, useEffect} from "react";
import clsx from "clsx";
import {Comments} from "./types.ts";
import {Comment} from "./Comment.tsx";
import {useSearchParams} from "react-router-dom";


const LinkWithComment = ({children, isActive, onSelectedComment}: {
Expand All @@ -26,7 +27,21 @@ const LinkWithComment = ({children, isActive, onSelectedComment}: {


export const Offer = () => {
const [currentComment, setCurrentComment] = useState<Comments | null>(Comments.INTRO);
const [currentCommentSearch, setCurrentCommentSearch] = useSearchParams();

useEffect(() => {
setCurrentCommentSearch({ comment: Comments.Intro });
}, []);

const currentComment = currentCommentSearch.get('comment') as Comments ?? null;

const setCurrentComment = (comment: Comments | null) => {
if(comment === null) {
setCurrentCommentSearch();
return
}
setCurrentCommentSearch({ comment });
}
return (
<div className="flex gap-8 w-full flex-col lg:flex-row">
<div
Expand Down Expand Up @@ -58,12 +73,12 @@ export const Offer = () => {
<p dir="ltr">
<span>As a Lead Frontend Engineer, you will be a hands-on leader responsible for driving
the development of our user-facing applications. <LinkWithComment
isActive={currentComment === Comments.TEST}
onSelectedComment={() => setCurrentComment(Comments.TEST)}>In this role, you will be instrumental in
isActive={currentComment === Comments.General}
onSelectedComment={() => setCurrentComment(Comments.General)}>In this role, you will be instrumental in
shaping our frontend architecture, establishing best practices, and guiding a team of
talented engineers.</LinkWithComment> <LinkWithComment
isActive={currentComment === Comments.TEST2}
onSelectedComment={() => setCurrentComment(Comments.TEST2)}>You will utilize modern tools and frameworks such as React, TypeScript,
isActive={currentComment === Comments.Tooling}
onSelectedComment={() => setCurrentComment(Comments.Tooling)}>You will utilize modern tools and frameworks such as React, TypeScript,
and TanStack Query to create dynamic, scalable user interfaces that enhance the user
experience.</LinkWithComment></span></p>
<p dir="ltr">In addition you will also play a critical role as an active sparring partner for
Expand Down
8 changes: 7 additions & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import App from './App.tsx'
import './index.css'
import {createBrowserRouter, RouterProvider} from "react-router-dom";

createRoot(document.getElementById('root')!).render(
<StrictMode>
<App />
<RouterProvider router={createBrowserRouter([
{
path: "*",
element: <App />
}
])} />
</StrictMode>,
)
6 changes: 3 additions & 3 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export enum Comments {
INTRO = "intro",
TEST = "test1",
TEST2 = "test2",
Intro = "intro",
General = "general",
Tooling = "tooling",
Experience = "experience",
Components = "components",
ReactNative = "react-native",
Expand Down

0 comments on commit 084d54b

Please sign in to comment.