Skip to content

Commit 0f53268

Browse files
committed
Fix on-the-fly cv generation, update node
1 parent 2cddbd6 commit 0f53268

File tree

21 files changed

+70
-1240
lines changed

21 files changed

+70
-1240
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup Node
2323
uses: actions/setup-node@v2
2424
with:
25-
node-version: '14'
25+
node-version: '18.12.1'
2626
cache: 'yarn'
2727

2828
- name: Install packages

.github/workflows/test.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v16.14.0
1+
v18.12.1

cypress.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

cypress/fixtures/example.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

cypress/integration/landing.spec.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

cypress/plugins/index.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

cypress/support/index.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

cypress/tsconfig.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,12 @@
1212
"clean": "yarn workspace @teimurjan/landing clean",
1313
"codegen": "yarn workspace @teimurjan/gql-types codegen",
1414
"typecheck": "yarn workspaces run typecheck",
15-
"lint": "eslint workspaces/*/src",
16-
"cy:open": "cypress open",
17-
"cy:run": "cypress run",
18-
"cy:percy:run": "percy exec -- cypress run",
19-
"test:e2e": "start-server-and-test develop http://localhost:2525 cy:open",
20-
"test:e2e:ci": "start-server-and-test develop http://localhost:2525 cy:percy:run"
15+
"lint": "eslint workspaces/*/src"
2116
},
2217
"dependencies": {
23-
"@percy/cli": "^1.0.0-beta.70",
24-
"@percy/cypress": "^3.1.1",
25-
"@testing-library/cypress": "^8.0.2",
2618
"@typescript-eslint/eslint-plugin": "^4.0.0",
2719
"@typescript-eslint/parser": "^4.0.0",
2820
"babel-eslint": "^10.0.0",
29-
"cypress": "^9.0.0",
3021
"eslint": "^7.5.0",
3122
"eslint-config-prettier": "^8.3.0",
3223
"eslint-config-react-app": "^6.0.0",
@@ -37,7 +28,6 @@
3728
"eslint-plugin-react": "^7.20.3",
3829
"eslint-plugin-react-hooks": "^4.0.8",
3930
"prettier": "^2.4.1",
40-
"start-server-and-test": "^1.14.0",
4131
"typescript": "^4.4.4"
4232
},
4333
"resolutions": {

workspaces/gql-types/.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v18.12.1

workspaces/landing/.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v18.12.1

workspaces/landing/config/gatsby-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import path from 'path'
22

33
const ASSETS_PATH = path.resolve('./src/assets/')
44
const GRAPH_CMS_URL =
5-
'https://api-eu-central-1.graphcms.com/v2/ckuqwop6l1gvq01xqb8y0dsj3/master'
5+
'https://api-eu-central-1.hygraph.com/v2/ckuqwop6l1gvq01xqb8y0dsj3/master'
66

77
module.exports = {
88
siteMetadata: {

workspaces/resume/.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v18.12.1

workspaces/resume/src/Resume.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { resolve } from 'path'
21
import {
32
Page,
43
Text,
@@ -22,14 +21,18 @@ import SkillItem from './components/skill-item'
2221
import PublicationItem from './components/publication-item'
2322
import ConferenceItem from './components/conference-item'
2423
import ExperienceItem from './components/experience-item'
24+
import ShareTechTTF from './assets/fonts/ShareTech-Regular.ttf'
25+
import ShareTechMonoTTF from './assets/fonts/ShareTechMono-Regular.ttf'
2526

2627
Font.register({
2728
family: 'ShareTech',
28-
src: resolve(__dirname, './assets/fonts/ShareTech-Regular.ttf'),
29+
format: 'truetype',
30+
src: ShareTechTTF,
2931
})
3032
Font.register({
3133
family: 'ShareTechMono',
32-
src: resolve(__dirname, './assets/fonts/ShareTechMono-Regular.ttf'),
34+
format: 'truetype',
35+
src: ShareTechMonoTTF,
3336
})
3437

3538
const styles = StyleSheet.create({
@@ -41,13 +44,14 @@ const styles = StyleSheet.create({
4144
},
4245
wrapper: {
4346
width: '100%',
44-
padding: '0 20px',
47+
padding: '0 16px',
4548
},
4649
container: {
4750
backgroundColor: theme.colors.resume.white,
4851
padding: '16px 20px',
4952
width: '100%',
5053
height: '100%',
54+
marginBottom: 16,
5155
},
5256
horizontalDivider: {
5357
height: 1,

workspaces/resume/src/components/header/Header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const styles = StyleSheet.create({
55
header: {
66
backgroundColor: theme.colors.resume.green,
77
width: '100%',
8-
padding: '20px 20px 0 20px',
8+
padding: '16px 16px 0 16px',
99
textAlign: 'center',
1010
textTransform: 'uppercase',
1111
fontFamily: 'ShareTechMono',
@@ -18,7 +18,7 @@ const styles = StyleSheet.create({
1818
headerTitle: {
1919
fontSize: 30,
2020
},
21-
headerSubtitle: { fontSize: 14 },
21+
headerSubtitle: { fontSize: 14, marginTop: 8 },
2222
})
2323

2424
interface Props {

workspaces/resume/src/components/profile/Profile.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const styles = StyleSheet.create({
88
textDecoration: 'underline',
99
textTransform: 'uppercase',
1010
textAlign: 'center',
11-
marginBottom: 15,
11+
marginBottom: 12,
1212
},
1313
profileText: {
1414
textAlign: 'center',

workspaces/resume/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"extends": "../../tsconfig.json",
3+
"files": ["./ttf.d.ts"],
34
"include": ["./src"]
45
}

workspaces/resume/ttf.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
declare module '*.ttf' {
2+
const content: string
3+
export default content
4+
}

workspaces/utils/.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v18.12.1

0 commit comments

Comments
 (0)