From b1b927fd82a6b1a507f1f42db65d68c60c0acb08 Mon Sep 17 00:00:00 2001 From: Fadi Shawki Date: Wed, 24 Jul 2024 11:48:09 +0200 Subject: [PATCH] Add simplified profile --- orbitmines.com/src/lib/paper/Paper.tsx | 27 +++--- orbitmines.com/src/routes/Error.tsx | 4 +- .../src/routes/profiles/Profiles.tsx | 2 + .../profiles/fadi-shawki/FadiShawkiCV.tsx | 26 ++++++ .../profiles/fadi-shawki/fadi_shawki.ts | 84 ++++++++++++++++++- 5 files changed, 128 insertions(+), 15 deletions(-) create mode 100755 orbitmines.com/src/routes/profiles/fadi-shawki/FadiShawkiCV.tsx diff --git a/orbitmines.com/src/lib/paper/Paper.tsx b/orbitmines.com/src/lib/paper/Paper.tsx index 489c4f2..5b07f41 100644 --- a/orbitmines.com/src/lib/paper/Paper.tsx +++ b/orbitmines.com/src/lib/paper/Paper.tsx @@ -27,13 +27,14 @@ import JetBrainsMonoBold from "../fonts/JetBrainsMono/ttf/JetBrainsMono-Bold.ttf import {renderToStaticMarkup} from "react-dom/server"; import {Document, Font, Image, Page, Path, PDFViewer, Svg, Text, View} from "@react-pdf/renderer"; -export const Profile = ({profile, children}: {profile: TProfile} & Children) => { +export const Profile = ({profile, children, head}: {profile: TProfile} & Children & { head?: any }) => { const location = useLocation(); const paper: Omit = { title: profile.title ?? profile.name, subtitle: profile.subtitle, date: profile.date, + head: head, pdf: { fonts: [JetBrainsMono, BlueprintIcons20, BlueprintIcons16], }, @@ -1169,19 +1170,24 @@ export const PaperContent = (props: PaperProps) => { const external_links = !!discord; const Content = <> - + {props.head ? <> + {props.head} + {children} + : <> + - {external_links ? - {discord ? - - : <>} - : <>} + {external_links ? + {discord ? + + : <>} + : <>} - {header ? header : } + {header ? header : } - {children} + {children} - + + } const footnotes = getFootnotes(Content); @@ -1343,6 +1349,7 @@ export const Author = (props: TProfile & { filter?: Predicate}) export type PaperProps = ReferenceProps & { header?: any // + head?: any pdf: PdfProps, exclude_footnotes?: boolean diff --git a/orbitmines.com/src/routes/Error.tsx b/orbitmines.com/src/routes/Error.tsx index 5888ce9..5468fb8 100644 --- a/orbitmines.com/src/routes/Error.tsx +++ b/orbitmines.com/src/routes/Error.tsx @@ -1,5 +1,5 @@ -import Root from "./Root"; +import Minimap from "./Minimap"; -const Error = Root; +const Error = Minimap; export default Error; \ No newline at end of file diff --git a/orbitmines.com/src/routes/profiles/Profiles.tsx b/orbitmines.com/src/routes/profiles/Profiles.tsx index d906cea..904bdcf 100644 --- a/orbitmines.com/src/routes/profiles/Profiles.tsx +++ b/orbitmines.com/src/routes/profiles/Profiles.tsx @@ -2,9 +2,11 @@ import React from 'react'; import {useParams} from "react-router-dom"; import Error from "../Error"; import FadiShawki from "./fadi-shawki/FadiShawki"; +import FadiShawkiCV from "./fadi-shawki/FadiShawkiCV"; const PROFILES: { [key: string]: any } = { 'fadi-shawki': FadiShawki, + 'fadi-shawki-cv': FadiShawkiCV, } const Profile = () => { diff --git a/orbitmines.com/src/routes/profiles/fadi-shawki/FadiShawkiCV.tsx b/orbitmines.com/src/routes/profiles/fadi-shawki/FadiShawkiCV.tsx new file mode 100755 index 0000000..061994f --- /dev/null +++ b/orbitmines.com/src/routes/profiles/fadi-shawki/FadiShawkiCV.tsx @@ -0,0 +1,26 @@ +import React from 'react'; +import {ARTICLES_2021, ARTICLES_2022, ARTICLES_2023, ARTICLES_2024, FAMILIAR_TOOLS} from "./fadi_shawki"; +import ORGANIZATIONS, {Viewed} from "../../../lib/organizations/ORGANIZATIONS"; +import {PROFILES} from "../profiles"; +import {ON_INTELLIGIBILITY} from "../../papers/2022.OnIntelligibility"; +import {CanvasContainer, ON_ORBITS} from "../../papers/2023.OnOrbits"; +import {_2024_02_ORBITMINES_AS_A_GAME_PROJECT} from "../../archive/2024.02.OrbitMines_as_a_Game_Project"; +import {Arc, Section, Reference, Category, Profile, Author} from "../../../lib/paper/Paper"; + +const FadiShawkiCV = () => { + const profile = PROFILES.fadi_shawki; + + return }> + + +
+ + +
+ + + +
; +} + +export default FadiShawkiCV; \ No newline at end of file diff --git a/orbitmines.com/src/routes/profiles/fadi-shawki/fadi_shawki.ts b/orbitmines.com/src/routes/profiles/fadi-shawki/fadi_shawki.ts index 3c3d7b6..bc5cb47 100644 --- a/orbitmines.com/src/routes/profiles/fadi-shawki/fadi_shawki.ts +++ b/orbitmines.com/src/routes/profiles/fadi-shawki/fadi_shawki.ts @@ -2922,6 +2922,10 @@ export const REFERENCES = { reference: {title: "Three.js", link: "https://github.com/mrdoob/three.js/"}, status: Viewed.IN_PROGRESS }, + NEXTJS: { + reference: {title: "Next.js", link: "https://nextjs.org/"}, + status: Viewed.IN_PROGRESS + }, DREI: {reference: {title: "drei", link: "https://github.com/pmndrs/drei"}, status: Viewed.IN_PROGRESS}, WASM: { reference: {title: "WebAssembly", link: "https://en.wikipedia.org/wiki/WebAssembly"}, @@ -3422,6 +3426,80 @@ export const ARTICLES_2022: Content[] = [ REFERENCES.ROBUST_SPEECH_RECOGNITION_VIA_LARGE_SCALE_WEAK_SUPERVISION, ] +export const FAMILIAR_TOOLS: Content[] = [ + + REFERENCES.PYTHON, + // REFERENCES.GO, + // REFERENCES.CHYP, + // REFERENCES.LLVM, + // REFERENCES.HASKELL, + REFERENCES.JAVA, + REFERENCES.RUBY_ON_RAILS, + REFERENCES.WOLFRAM_LANGUAGE, + REFERENCES.C_SHARP, + REFERENCES.DOT_NET, + REFERENCES.BLAZOR, + REFERENCES.JAVASCRIPT, + REFERENCES.KOTLIN, + REFERENCES.CSS, + REFERENCES.SASS, + REFERENCES.HTML, + REFERENCES.WASM, + REFERENCES.WEBGPU, + REFERENCES.RUST, + REFERENCES.CPP, + + REFERENCES.WEBPACK, + + REFERENCES.ASSEMBLY_SCRIPT, + REFERENCES.TYPESCRIPT, + REFERENCES.REACT, + // REFERENCES.BLUEPRINT_JS, + // REFERENCES.SLATE, + REFERENCES.THREEJS, + REFERENCES.DREI, + REFERENCES.NEXTJS, + + REFERENCES.IPFS, + REFERENCES.IPVM, + REFERENCES.SQL, + REFERENCES.MYSQL, + REFERENCES.POSTGRESQL, + REFERENCES.MONGO_DB, + REFERENCES.REDIS, + REFERENCES.RABBIT_MQ, + + REFERENCES.GIT, + REFERENCES.GITLAB, + REFERENCES.GITHUB, + REFERENCES.BITBUCKET, + + REFERENCES.DOCKER, + REFERENCES.KUBERNETES, + REFERENCES.NGINX, + REFERENCES.NPM, + REFERENCES.MAVEN, + + REFERENCES.LINUX, + REFERENCES.ANDROID, + + REFERENCES.GCP, + REFERENCES.AZURE, + REFERENCES.AWS, + + // REFERENCES.SPIGOT_MC, + // REFERENCES.BUNGEE_CORD, + // REFERENCES.BUKKIT, + + // REFERENCES.FLATPAK, + // REFERENCES.OBS, + // REFERENCES.CLOUDFLARE, + + // REFERENCES.INTELLI_J, + // REFERENCES.VS_CODE, + // REFERENCES.ECLIPSE, +]; + export const fadi_shawki = { first_name: 'Fadi', last_name: 'Shawki', @@ -3491,8 +3569,8 @@ export const fadi_shawki = { link: 'https://orcid.org/0009-0009-9288-992X' }, - {organization: ORGANIZATIONS.ipfs, link: 'https://discuss.ipfs.tech/u/fadishawki'}, - {organization: ORGANIZATIONS.nixos, link: 'https://discourse.nixos.org/u/fadishawki'}, - {organization: ORGANIZATIONS.fission, link: 'https://talk.fission.codes/u/fadishawki/'}, + // {organization: ORGANIZATIONS.ipfs, link: 'https://discuss.ipfs.tech/u/fadishawki'}, + // {organization: ORGANIZATIONS.nixos, link: 'https://discourse.nixos.org/u/fadishawki'}, + // {organization: ORGANIZATIONS.fission, link: 'https://talk.fission.codes/u/fadishawki/'}, ] }