Skip to content

Commit

Permalink
feat: Update work info (#1085)
Browse files Browse the repository at this point in the history
feat: Update work info
  • Loading branch information
georgegillams authored Aug 24, 2024
1 parent 0bcb226 commit 67f526d
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 27 deletions.
6 changes: 5 additions & 1 deletion shared/helpers/appConfig.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// Note that these values are fixed for the client at build-time.

const { currentLevel } = require('./current-level-tmp');

// They are populated at build-time by babel, so destructuring syntax is not supported
const NODE_ENV = process.env.NODE_ENV;
const PROJECT_UNDER_TEST = process.env.PROJECT_UNDER_TEST;
Expand All @@ -17,7 +20,8 @@ const environment = {

const projectName = 'GEORGEGILLAMS';
const projectTitle = 'George Gillams';
const projectDescription = 'Personal website of George Gillams - open-source Software Engineer';
// eslint-disable-next-line max-len
const projectDescription = `Personal website of George Gillams - ${currentLevel} Software Engineer and Obstacle Race Athlete`;
const githubRepo = 'georgegillams/georgegillams.co.uk';
const githubRepoUrl = `https://github.com/${githubRepo}`;
const port = PORT || 3000;
Expand Down
7 changes: 7 additions & 0 deletions shared/helpers/current-level-tmp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const dateNow = Date.now();
const dateSept2024 = new Date('2024-09-01').getTime();
const isAfterSept2024 = dateNow > dateSept2024;
const currentLevel = isAfterSept2024 ? 'Expert' : 'Senior';
const currentLevelWithAOrAn = isAfterSept2024 ? 'an Expert' : 'a Senior';

module.exports = { currentLevel, currentLevelWithAOrAn };
7 changes: 4 additions & 3 deletions src/components/HomePageV2/WorkSection/WorkSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { AnimatedWrapperInner, AnimatedWrapperOuter, Content, StyledParagraph, W
import { breakpointSm } from '@george-gillams/components/constants/layout';
import { JS_CLASSNAME } from '@george-gillams/components/js-feature-detector';
import FakeTypeform from './fake-typeform';
import { currentLevelWithAOrAn } from 'helpers/current-level-tmp';

const HIDE_CLASS_NAME = `home-page-work-seciton__typeform--hide`;

Expand Down Expand Up @@ -34,10 +35,10 @@ const WorkSection = props => {
</style>
<Content>
<StyledParagraph>
I&#39;m a web developer at{' '}
I&#39;m {currentLevelWithAOrAn} Software Engineer at{' '}
<TextLink hrefExternal href="https://typeform.com/">
Typeform
</TextLink>{' '}
</TextLink>
.
<br />
I’m also an accessibility champion and design system enthusiast.
Expand All @@ -48,7 +49,7 @@ const WorkSection = props => {
<AnimatedWrapperOuter>
<AnimatedWrapperInner className={hasBeenMostlyInView || hasBeenFullyInView ? '' : HIDE_CLASS_NAME}>
<FakeTypeform
questionTitle="Where to?"
questionTitle="Where to next?"
links={[
{ text: 'My work', href: '/work' },
{ text: 'Typeform', href: 'https://typeform.com' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,9 @@ exports[`<Home /> should render correctly 1`] = `
<span
class="c7 c8"
>
I'm a web developer at
I'm
a Senior
Software Engineer at

<a
aria-label="Typeform (opens in a new tab)"
Expand Down Expand Up @@ -1074,7 +1076,6 @@ exports[`<Home /> should render correctly 1`] = `
</svg>
</div>
</a>

.
<br />
I’m also an accessibility champion and design system enthusiast.
Expand Down Expand Up @@ -1104,7 +1105,7 @@ exports[`<Home /> should render correctly 1`] = `
class="c19"
>
1.
Where to?
Where to next?
</span>
<div
class="c20"
Expand Down Expand Up @@ -3697,7 +3698,9 @@ exports[`<Home /> should render correctly with admin user 1`] = `
<span
class="c7 c8"
>
I'm a web developer at
I'm
a Senior
Software Engineer at

<a
aria-label="Typeform (opens in a new tab)"
Expand Down Expand Up @@ -3727,7 +3730,6 @@ exports[`<Home /> should render correctly with admin user 1`] = `
</svg>
</div>
</a>

.
<br />
I’m also an accessibility champion and design system enthusiast.
Expand Down Expand Up @@ -3757,7 +3759,7 @@ exports[`<Home /> should render correctly with admin user 1`] = `
class="c19"
>
1.
Where to?
Where to next?
</span>
<div
class="c20"
Expand Down Expand Up @@ -6350,7 +6352,9 @@ exports[`<Home /> should render correctly with no user 1`] = `
<span
class="c7 c8"
>
I'm a web developer at
I'm
a Senior
Software Engineer at

<a
aria-label="Typeform (opens in a new tab)"
Expand Down Expand Up @@ -6380,7 +6384,6 @@ exports[`<Home /> should render correctly with no user 1`] = `
</svg>
</div>
</a>

.
<br />
I’m also an accessibility champion and design system enthusiast.
Expand Down Expand Up @@ -6410,7 +6413,7 @@ exports[`<Home /> should render correctly with no user 1`] = `
class="c19"
>
1.
Where to?
Where to next?
</span>
<div
class="c20"
Expand Down Expand Up @@ -9003,7 +9006,9 @@ exports[`<Home /> should render correctly with user 1`] = `
<span
class="c7 c8"
>
I'm a web developer at
I'm
a Senior
Software Engineer at

<a
aria-label="Typeform (opens in a new tab)"
Expand Down Expand Up @@ -9033,7 +9038,6 @@ exports[`<Home /> should render correctly with user 1`] = `
</svg>
</div>
</a>

.
<br />
I’m also an accessibility champion and design system enthusiast.
Expand Down Expand Up @@ -9063,7 +9067,7 @@ exports[`<Home /> should render correctly with user 1`] = `
class="c19"
>
1.
Where to?
Where to next?
</span>
<div
class="c20"
Expand Down
21 changes: 15 additions & 6 deletions src/containers/Work/Overview/Container.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,15 @@ const Work = () => (

<SubsectionWithScroll name="Typeform">
<Paragraph>
I maintain{' '}
I&#39;m part of the Product Experience team at Typeform, building features across several ownerships to make
the product automagically fulfil the needs of every customer.
</Paragraph>
<Paragraph>
Before that, I helped to maintain{' '}
<TextLink href="https://www.typeform.com/" hrefExternal>
Typeform&#39;s
</TextLink>{' '}
public sites, including{' '}
the public site
</TextLink>
, including{' '}
<TextLink href="https://www.typeform.com/surveys/" hrefExternal>
landing pages
</TextLink>
Expand All @@ -46,12 +50,17 @@ const Work = () => (
<TextLink href="https://www.typeform.com/signup/" hrefExternal>
signup
</TextLink>
. They&#39;re built using React, Styled Components and Next.js. We have a strong focus on SEO, speed, and
empowering content creators to deliver content/experiments with as little friction as possible.
. In this team there was a strong focus on SEO and empowering content creators to deliver content/experiments
with as little friction as possible.
</Paragraph>
</SubsectionWithScroll>

<SubsectionWithScroll name="Skyscanner">
<Paragraph>
During my time at Skyscanner, I was a strong advocate for digital accessibility across our web and mobile
apps. I became the lead digital accessibility engineer in the company, which involved auditing, design
reviews, training, and knowledge sharing sessions with other companies.
</Paragraph>
<Paragraph>
<TextLink hrefExternal href="https://backpack.github.io/">
Backpack
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ exports[`<Status /> should render correctly 1`] = `
/>
<br />
Built
about 54 years ago
over 54 years ago
<br />
Started
about 54 years ago
over 54 years ago
<br />
Environment
test-node-env
Expand Down
7 changes: 4 additions & 3 deletions src/tests/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1325,7 +1325,9 @@ exports[`<HomePage /> should render correctly 1`] = `
<span
class="c9 c10"
>
I'm a web developer at
I'm
a Senior
Software Engineer at
<a
aria-label="Typeform (opens in a new tab)"
Expand Down Expand Up @@ -1355,7 +1357,6 @@ exports[`<HomePage /> should render correctly 1`] = `
</svg>
</div>
</a>
.
<br />
I’m also an accessibility champion and design system enthusiast.
Expand Down Expand Up @@ -1385,7 +1386,7 @@ exports[`<HomePage /> should render correctly 1`] = `
class="c21"
>
1.
Where to?
Where to next?
</span>
<div
class="c22"
Expand Down

0 comments on commit 67f526d

Please sign in to comment.