Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kexogg committed Feb 18, 2024
1 parent 5f00b4b commit 35fd9be
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 43 deletions.
32 changes: 2 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,2 @@
# 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
## Github pages demo
https://kexogg.github.io/66bit-frontend
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
</head>
Expand Down
11 changes: 1 addition & 10 deletions src/components/Dropdown/Dropdown.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

.dropdown__label::after {
content: '';
background-size: 1rem;
background: url("Dropdown.svg") no-repeat center;
background-size: 1rem;
width: 1.15rem;
aspect-ratio: 1.5;
display: inline-block;
Expand All @@ -19,17 +19,8 @@
transition: transform 0.3s;
}

.dropdown__label:has(.dropdown__checkbox:checked)::after {
transform: rotate(0deg);
}

.dropdown__label:has(.dropdown__checkbox:checked) {
color: var(--primary);
}

.dropdown__options {
z-index: 10;
/*pointer-events: none;*/
cursor: initial;
font-size: initial;
font-weight: initial;
Expand Down
3 changes: 1 addition & 2 deletions src/pages/Profile/Profile.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@
gap: 1rem;
}
.profile__title {
gap: 0rem;
gap: 0;
}

.profile__header h1 {
font-size: 20px;
line-height: 24px;
Expand Down

0 comments on commit 35fd9be

Please sign in to comment.