From f6eadb0df79ed95d8d40fed2bc0392128d765b38 Mon Sep 17 00:00:00 2001 From: Dejvino Date: Wed, 24 May 2023 09:24:20 +0200 Subject: [PATCH] Add brief about using Context --- public/photo.png | Bin 0 -> 14351 bytes src/Person.ts | 4 ++++ src/app/components/AboutBrief.tsx | 15 +++++++++++++++ src/app/components/PersonContext.tsx | 14 ++++++++++++++ src/app/layout.tsx | 9 +++++++-- src/app/page.tsx | 3 +++ 6 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 public/photo.png create mode 100644 src/Person.ts create mode 100644 src/app/components/AboutBrief.tsx create mode 100644 src/app/components/PersonContext.tsx diff --git a/public/photo.png b/public/photo.png new file mode 100644 index 0000000000000000000000000000000000000000..790a3af9a5e55d5ee5e66cd98ff9a83fd4cff0f0 GIT binary patch literal 14351 zcmZ{LQ*>ktw{>jW6?KOl+qToOZL?!ntPU$qchIqI+eXK>o&0^jGsb_>jMYz=a-o^sVy)t&IM^P;jf;Vr|rv= zri*UBeZzdiK&8LG9h!Tn+9u|UX+fGT=a^|d3oHTh`-F`tq#!7p;e)z90xyUth2Fz< zX_<&9rQ)}G680z~>19)}BQVSot*g1&yuCKgJ^XA0-1fUrro2BIrp^cf`sD{DI1_b~ z0v2lXUiY;NDwP|4n|Q@pD{Oj;^BGnBSA3|j3)mdI42p=gEbjMZ{NK{s`mAo+*v1oe z#!dK9i;y8V*nIc+cl3Qwd0|KVSFB1)_C1;S5Er08tmg9ip;25F{PUAM<=={*9{t?y z%e#3=zUU`8K%ly2yX6iJyFLcZ58(N{L^7RqKQAmiTjA1_%O|tLV@pQ)mYbCF`CfDD zj5Dv0_ud`ga+On{!4ZTtr3+1Q^^HRX4UpM?Mq@+SqZ2Ehg!92qSuG3eM}C!ye`S?C zk>#`TQQyq4fF8@=oEWgQsX`ZY!G@Xosj^1kZ80E0C&s|lK|bn45_Z&~$kNqhd1k2E z-K{eyE*wyP{L3`Jje^7?&-B*dWV?g^0mGMw-yyV&>oT!27=4~&;Glv!3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0jrf3VZt=KZDWz1<3N5h}Qb2*~ z{X$+T97O5S=UmO_PebghbNADc^^}20RB7!oZgN5M;6FHy%f!ek4%N7-uxp*Ak@cpx z$n>k;4sLZwT2EO!?dA)<35F$XPmW53sfv$*t@C%Cm81aeb z9mgbQn?!WaIn1Lzh*ZJrH2ewyQ zzh@_@l``Y4uh7cjvJF-|!lJYK8`R<3hIK~K7HoP|OaC-q=M_@H$*Lok9ShLkZm$pC zZ+-W0_<*8{L@x*dUu~(b=v>a;-o^TGTAkx(l+AQ+3JYM$*<7;z^-+lnA0!7H9f1tZ zWzZI7sw+X)Gv)P~_ok2pV+ELC3k-;7zDPa>lQ_25uXB1a(MF=}$2|@Lbf>y!KDY4NNw9(L_qIfGw{u*#hsH-@K53C>SGr@6? zYf?mkEsk`%pORF|3`@4ctVpsCvrHHo1UlhwrcE*}EKvI-(8$^*a6whSipf1N<$^}{ zj)Ukfx(Be+LiKqouoe>5+3$^VVf-xuWP-~Hh*UIBRFefHb#^*vQF~>V>$(;5bi!8` zZ?UyNWTvpu?ocf@+0_E#VE4bqZV^+=iW}lis7^GxOrs}n)%zEU%E@w+ z1FweuNl5n!6T zT8K^n=L??-iw;{dGzV-Y!zOskU~EGD{XZ8L!j{O}Q+}848rvOSkX7K!QA$wY-i%Gp zP8y$BP!qYSZ%invVH$|E?^p~ck{GetXu?d$=QWpMUN<7NfD|%GL zZ;`T9pB^K8+Hd#6xG0#DmH0ceHGlmy@Xz}?Q2%7!?}~rk?fdvhh7dPkyPov_^94*= MTtTct#4zap0oSQ@1^@s6 literal 0 HcmV?d00001 diff --git a/src/Person.ts b/src/Person.ts new file mode 100644 index 0000000..2a8ef8f --- /dev/null +++ b/src/Person.ts @@ -0,0 +1,4 @@ +export const Person = { + name: "David Hrdina Němeček", + brief: "Software developer, people manager." +}; diff --git a/src/app/components/AboutBrief.tsx b/src/app/components/AboutBrief.tsx new file mode 100644 index 0000000..d682605 --- /dev/null +++ b/src/app/components/AboutBrief.tsx @@ -0,0 +1,15 @@ +import React, { useContext } from 'react'; +import Container from 'react-bootstrap/Container'; +import Image from 'react-bootstrap/Image' +import { PersonContext } from './PersonContext'; + +export default function AboutBrief() { + const person = useContext(PersonContext) + return ( + + Photograph of the person +

{person.name}

+

{person.brief}

+
+ ) +} diff --git a/src/app/components/PersonContext.tsx b/src/app/components/PersonContext.tsx new file mode 100644 index 0000000..5c14173 --- /dev/null +++ b/src/app/components/PersonContext.tsx @@ -0,0 +1,14 @@ +'use client' +import React from 'react'; +import { createContext } from 'react'; +import { Person } from '../../Person'; + +export const PersonContext = createContext(Person); + +export function PersonProvider({ children }) { + return ( + + {children} + + ) +} \ No newline at end of file diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 2fe81d3..0e341da 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -2,11 +2,12 @@ import React from 'react' import { Inter } from 'next/font/google' import './globals.css' +import { PersonProvider } from './components/PersonContext' const inter = Inter({ subsets: ['latin'] }) export const metadata = { - title: 'David Hrdina Němeček | CV', + title: 'David Hrdina Němeček | CV.', description: 'Curriculum Vitae', } @@ -17,7 +18,11 @@ export default function RootLayout({ }) { return ( - {children} + + + {children} + + ) } diff --git a/src/app/page.tsx b/src/app/page.tsx index 3cd426f..5f855ea 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -2,10 +2,13 @@ import React from 'react'; import Container from 'react-bootstrap/Container'; import JobsHistory from './components/JobsHistory'; +import AboutBrief from './components/AboutBrief'; export default function Home() { return ( + + )