Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/fresher #3

Merged
merged 60 commits into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
c28b3c1
fix: issues with tsconfig
petertonysmith94 Jan 8, 2024
60e78b1
chore: moved logos out of source
petertonysmith94 Jan 8, 2024
911f015
feat: added logo
petertonysmith94 Jan 8, 2024
33abf36
chore: moved styled defintion
petertonysmith94 Jan 8, 2024
0b08942
chore: move assets for ease
petertonysmith94 Jan 8, 2024
0b44405
feat: added mini icon
petertonysmith94 Jan 8, 2024
a58d9d6
chore: made config easier to navigate
petertonysmith94 Jan 8, 2024
0bd39af
fix: missing svg module declaration
petertonysmith94 Jan 8, 2024
8562f33
Merge pull request #2 from petertonysmith94/feature/icons
petertonysmith94 Jan 8, 2024
868b298
chore: added vscode excludes
petertonysmith94 Jan 8, 2024
d2150de
feat: Add custom webpack config and update package.json scripts
petertonysmith94 Jan 8, 2024
1f5a74e
chore: removed stepper from pages - not a fan
petertonysmith94 Jan 8, 2024
1ce6527
chore: adding global styles
petertonysmith94 Jan 8, 2024
51b748d
docs: added some profile pages
petertonysmith94 Jan 8, 2024
750cb84
feat: hooked in da pages
petertonysmith94 Jan 8, 2024
58cd6a2
feat: fixing up the page
petertonysmith94 Jan 8, 2024
61b0c58
feat: consolidate and simplify
petertonysmith94 Jan 8, 2024
d5f73d5
fix: svg viewPoint a bit off
petertonysmith94 Jan 8, 2024
80b4a4f
feat: simplify, furthered the CSS
petertonysmith94 Jan 9, 2024
5557cc8
feat: removed contact page
petertonysmith94 Jan 9, 2024
5521d7a
feat: added projects
petertonysmith94 Jan 9, 2024
d82ef4b
feat: added assets for artist picture (including source page)
petertonysmith94 Jan 9, 2024
e569172
feat: furthered simplification efforts lol
petertonysmith94 Jan 9, 2024
5047751
assets: added two artist images
petertonysmith94 Jan 9, 2024
67bd3a8
feat: dynamic pages
petertonysmith94 Jan 9, 2024
e280071
chore: removed redundant hook (useWindow)
petertonysmith94 Jan 9, 2024
315fbd5
chore: moving advent components - ready for moving to repo
petertonysmith94 Jan 9, 2024
253ea90
fix: imports for advent-of-code
petertonysmith94 Jan 9, 2024
11dd17f
chore: removed redundant component
petertonysmith94 Jan 9, 2024
f4f829f
feat: removed old socials component
petertonysmith94 Jan 9, 2024
271eddb
feat: removed Stepper component
petertonysmith94 Jan 9, 2024
8923608
feat: Page Divider
petertonysmith94 Jan 9, 2024
c44a75e
fix: divider style
petertonysmith94 Jan 9, 2024
96bca14
chore: moved favicon to public
petertonysmith94 Jan 9, 2024
f8d73cf
docs: for creating svgs
petertonysmith94 Jan 9, 2024
a455777
feat: generated correct logo
petertonysmith94 Jan 9, 2024
6bba418
chore: removed old logo
petertonysmith94 Jan 9, 2024
e7f2c46
feat: plumbing in our assets
petertonysmith94 Jan 9, 2024
f7bcfc7
docs: fixed incorrect docs
petertonysmith94 Jan 9, 2024
2d19d18
feat: finalised hero
petertonysmith94 Jan 9, 2024
1b76bfc
docs: project - refinement
petertonysmith94 Jan 9, 2024
34e3a15
chore: moved big assets out of public folder
petertonysmith94 Jan 9, 2024
646a139
Merge pull request #4 from petertonysmith94/feature/pages
petertonysmith94 Jan 9, 2024
b9473bb
chore: removed CI pipeline
petertonysmith94 Jan 9, 2024
5227c1c
feat: added build CI
petertonysmith94 Jan 9, 2024
7d6511d
chore: build
petertonysmith94 Jan 9, 2024
597d0e3
Merge branch 'release/fresher' into feature/pages
petertonysmith94 Jan 9, 2024
f7e91a2
fix: missing packageManager from pkg.json
petertonysmith94 Jan 9, 2024
3affc5c
sad: removed advent of code
petertonysmith94 Jan 9, 2024
824432c
fix: issues with incorrect props to memo
petertonysmith94 Jan 9, 2024
d366946
feat: hooked up eslint
petertonysmith94 Jan 9, 2024
25dfcee
fix: lint error
petertonysmith94 Jan 9, 2024
23cc4e8
Merge pull request #5 from petertonysmith94/feature/pages
petertonysmith94 Jan 9, 2024
59e8a07
feat: pipeline refactor
petertonysmith94 Jan 9, 2024
713f4ca
Merge branch 'feature/pages' into release/fresher
petertonysmith94 Jan 9, 2024
f701b57
fix: pipeline
petertonysmith94 Jan 9, 2024
6f4f98c
fix: build
petertonysmith94 Jan 9, 2024
44b1ac2
fix: pipeline pls
petertonysmith94 Jan 9, 2024
67767af
docs: added some docs for GithubActions
petertonysmith94 Jan 9, 2024
ae1fa3a
feat: fixed names
petertonysmith94 Jan 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* eslint-env node */
module.exports = {
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
root: true,
env: { browser: true, es2020: true },
ignorePatterns: ['dist', '.eslintrc.cjs', 'config-overrides.js'],
};
23 changes: 23 additions & 0 deletions .github/actions/setup-pnpm/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Setup PNPM
description: Setup PNPM package manager
inputs:
node-version:
description: "The version of Node.js to use"
required: true
default: "20.x"
runs:
using: "composite"

steps:
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Use Node.js 🔧
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}

# Version supplied from package.json.packageManager fields
# https://github.com/pnpm/action-setup/tree/v2/?tab=readme-ov-file#version
- name: Use PNPM 🔧
uses: pnpm/action-setup@v2
57 changes: 57 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: 🏗️ Build
on:
push:
branches:
- main
- release/**
pull_request:
branches:
- main
- release/**

permissions:
contents: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v3

- name: 🏗️ PNPM Setup
uses: ./.github/actions/setup-pnpm

- name: 🔧 Install Dependencies
run: pnpm install

- name: 🔨 Build
run: pnpm run build

- name: 📦 Upload Build Artifact
uses: actions/upload-artifact@v2
with:
name: "build-artifact-${{ github.sha }}"
path: build

deploy:
needs: [build]
runs-on: ubuntu-latest
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v3

- name: 📦 Download Build Artifact
uses: actions/download-artifact@v2
with:
name: "build-artifact-${{ github.sha }}"
path: build

- name: 🔺 Publish our Build Artifacts
uses: actions/upload-pages-artifact@v2
with:
name: github-pages
path: build
87 changes: 0 additions & 87 deletions .github/workflows/deployment.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"files.exclude": {
"**/.git": true,
"node_modules": true,
"build": true
}
}
54 changes: 17 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,26 @@
# Getting Started with Create React App
# P

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## Getting started

## Available Scripts
```sh
pnpm install
```

In the project directory, you can run:
## Documentation

### `pnpm start`
- Converting our SVG to PNG (move into commands)

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
```sh
# https://www.npmjs.com/package/svg2png
rm ./public/logo.192.png
svg2png ./public/favicon.svg --width=192 --height=192 --output="./public/logo.192.png"
```

The page will reload if you make edits.\
You will also see any lint errors in the console.
- SVG Based Favicons

### `pnpm test`
[Source1](https://medium.com/swlh/are-you-using-svg-favicons-yet-a-guide-for-modern-browsers-836a6aace3df)

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
- GitHub Actions

### `pnpm run build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `pnpm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).
[Reusable Workflows](https://docs.github.com/en/actions/learn-github-actions/reusing-workflows)
[Reusable Workflows Examples](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-an-action-in-the-same-repository-as-the-workflow)
Binary file added assets/shubham-dhage-pringle-layers.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/shubham-dhage-sphere-center.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/shubham-dhage-sphere-offset-left.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions config-overrides.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* Provides a way to add custom webpack config
*
* @param {*} config webpack config
* @param {*} env the environment
*/
module.exports = function override(config, env) {
config.module.rules.push({
test: /\.md$/,
type: 'asset/source',
})

return config;
}
16 changes: 11 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"version": "0.1.0",
"private": true,
"homepage": "https://petertonysmith94.github.io/",
"packageManager": "[email protected]",
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-markdown": "^8.0.7",
"react-scripts": "5.0.1",
"styled-components": "^6.0.4",
"ts-md5": "^1.3.1",
"typescript": "^4.9.5",
"web-vitals": "^2.1.4"
},
"devDependencies": {
Expand All @@ -21,12 +21,18 @@
"@types/node": "^16.18.38",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"gh-pages": "^5.0.0"
"@typescript-eslint/eslint-plugin": "^6.18.1",
"@typescript-eslint/parser": "^6.18.1",
"eslint": "^8.56.0",
"gh-pages": "^5.0.0",
"react-app-rewired": "^2.2.1",
"typescript": "^4.9.5"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"start": "react-app-rewired start",
"build": "react-app-rewired build",
"test": "react-app-rewired test",
"lint": "eslint . --ext .ts,.tsx",
"eject": "react-scripts eject",
"deploy": "gh-pages -d build"
},
Expand Down
Loading
Loading