Skip to content

Commit

Permalink
Add simplified profile
Browse files Browse the repository at this point in the history
  • Loading branch information
FadiShawki committed Jul 24, 2024
1 parent a33c24b commit b1b927f
Show file tree
Hide file tree
Showing 5 changed files with 128 additions and 15 deletions.
27 changes: 17 additions & 10 deletions orbitmines.com/src/lib/paper/Paper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<PaperProps, 'children'> = {
title: profile.title ?? profile.name,
subtitle: profile.subtitle,
date: profile.date,
head: head,
pdf: {
fonts: [JetBrainsMono, BlueprintIcons20, BlueprintIcons16],
},
Expand Down Expand Up @@ -1169,19 +1170,24 @@ export const PaperContent = (props: PaperProps) => {
const external_links = !!discord;

const Content = <>
<PaperHeader {...props} />
{props.head ? <>
{props.head}
{children}
</> : <>
<PaperHeader {...props} />

{external_links ? <Row center="xs" middle="xs" className="child-px-10">
{discord ? <Col>
<Link name="Discussion Channel" link={discord.link()} icon={ORGANIZATIONS.discord.key} intent={Intent.PRIMARY} />
</Col> : <></>}
</Row> : <></>}
{external_links ? <Row center="xs" middle="xs" className="child-px-10">
{discord ? <Col>
<Link name="Discussion Channel" link={discord.link()} icon={ORGANIZATIONS.discord.key} intent={Intent.PRIMARY} />
</Col> : <></>}
</Row> : <></>}

{header ? header : <HorizontalLine/>}
{header ? header : <HorizontalLine/>}

{children}
{children}

<HorizontalLine/>
<HorizontalLine/>
</>}
</>

const footnotes = getFootnotes(Content);
Expand Down Expand Up @@ -1343,6 +1349,7 @@ export const Author = (props: TProfile & { filter?: Predicate<ExternalProfile>})

export type PaperProps = ReferenceProps & {
header?: any //
head?: any
pdf: PdfProps,
exclude_footnotes?: boolean

Expand Down
4 changes: 2 additions & 2 deletions orbitmines.com/src/routes/Error.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Root from "./Root";
import Minimap from "./Minimap";

const Error = Root;
const Error = Minimap;

export default Error;
2 changes: 2 additions & 0 deletions orbitmines.com/src/routes/profiles/Profiles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down
26 changes: 26 additions & 0 deletions orbitmines.com/src/routes/profiles/fadi-shawki/FadiShawkiCV.tsx
Original file line number Diff line number Diff line change
@@ -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 <Profile profile={profile} head={<></>}>
<Author {...profile} />

<Section head="Projects / Projecten">
<Category content={profile.content!.history}/>
<Category content={profile.content!.formal_education}/>
</Section>
<Arc head="Technology Exposure">
<Category content={FAMILIAR_TOOLS} inline simple />
</Arc>
</Profile>;
}

export default FadiShawkiCV;
84 changes: 81 additions & 3 deletions orbitmines.com/src/routes/profiles/fadi-shawki/fadi_shawki.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2922,6 +2922,10 @@ export const REFERENCES = {
reference: {title: "Three.js", link: "https://github.com/mrdoob/three.js/"},
status: Viewed.IN_PROGRESS
},
NEXTJS: <Content>{
reference: {title: "Next.js", link: "https://nextjs.org/"},
status: Viewed.IN_PROGRESS
},
DREI: <Content>{reference: {title: "drei", link: "https://github.com/pmndrs/drei"}, status: Viewed.IN_PROGRESS},
WASM: <Content>{
reference: {title: "WebAssembly", link: "https://en.wikipedia.org/wiki/WebAssembly"},
Expand Down Expand Up @@ -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 = <TProfile>{
first_name: 'Fadi',
last_name: 'Shawki',
Expand Down Expand Up @@ -3491,8 +3569,8 @@ export const fadi_shawki = <TProfile>{
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/'},
]
}

0 comments on commit b1b927f

Please sign in to comment.