Skip to content

Commit

Permalink
fix: deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
multivoltage committed Feb 15, 2024
1 parent 08db5fc commit cddab7f
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 38 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Deploy static content to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
branches: ['main']

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -17,7 +17,7 @@ permissions:

# Allow one concurrent deployment
concurrency:
group: "pages"
group: 'pages'
cancel-in-progress: true

jobs:
Expand All @@ -34,7 +34,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build
Expand All @@ -45,7 +45,7 @@ jobs:
uses: actions/upload-pages-artifact@v2
with:
# Upload dist repository
path: "./dist"
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
30 changes: 0 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +0,0 @@
# React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

- Configure the top-level `parserOptions` property like this:

```js
export default {
// other rules...
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
}
```

- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,8 @@
"eslint-plugin-react-refresh": "^0.4.5",
"typescript": "^5.2.2",
"vite": "^5.1.0"
},
"engines": {
"node": "18"
}
}
6 changes: 5 additions & 1 deletion src/components/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const Content = styled(animated.div)`
width: 100%;
height: 100%;
transform-style: preserve-3d;
perspective: 500px;
`;

const Card = styled.div`
Expand Down Expand Up @@ -96,7 +97,10 @@ export const ContentShared = styled.div`
border-radius: 14px;
background: #9c27b0;
border: 6px solid #009688;
border: 3px solid #009688;
@media (min-width: 768px) {
border-width: 6px;
}
`;

const ContentFront = styled(ContentShared)`
Expand Down
6 changes: 5 additions & 1 deletion src/components/countdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,9 @@ const Container = styled.div`
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: 1fr;
grid-column-gap: 2rem;
grid-column-gap: 1rem;

@media (min-width: 768px) {
grid-column-gap: 2rem;
}
`;
4 changes: 2 additions & 2 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ body {
#root {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
padding: 1rem;
text-align: center;
}

* {
box-sizing: border-box;
box-sizing: border-box!important;
}

0 comments on commit cddab7f

Please sign in to comment.