Skip to content

Commit

Permalink
feat: change architecture, add css base files
Browse files Browse the repository at this point in the history
  • Loading branch information
kaptn3 committed Jan 23, 2024
1 parent d1641df commit 269d2b8
Show file tree
Hide file tree
Showing 12 changed files with 75 additions and 52 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ yarn start
```

## Features
- Starting FSD architecture
- Starting module architecture
- Typescript
- Eslint & Prettier
- Support of runtime environment variables with dynamic values
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rebase-agency/cra-template",
"version": "1.1.4",
"version": "1.2.0",
"keywords": [
"react",
"create-react-app",
Expand Down
2 changes: 1 addition & 1 deletion template/src/app/App.tsx → template/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BrowserRouter, Routes, Route } from "react-router-dom";
import StartPage from "../pages";
import StartPage from "./pages";

export const App = () => {
return (
Expand Down
3 changes: 0 additions & 3 deletions template/src/app/styles/global.css

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
:root {

}
6 changes: 6 additions & 0 deletions template/src/assets/css/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
html,
body {
font-family: sans-serif;
line-height: 1.6;
font-weight: 400;
}
58 changes: 58 additions & 0 deletions template/src/assets/css/reset.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
*,
*::before,
*::after {
box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
font-weight: 400;
margin: 0;
}

a {
text-decoration: none;
color: inherit;
}

button {
border: none;
background-color: transparent;
outline: none;
padding: 0;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: inherit;
}

ol,
ul {
margin: 0;
list-style: none;
padding: 0;
}

input {
border: none;
width: 100%;
outline: none;
color: inherit;
font-size: inherit;
font-family: inherit;
padding: 0;
background-color: transparent;
}

svg,
img {
vertical-align: middle;
width: 100%;
height: auto;
}
6 changes: 6 additions & 0 deletions template/src/core/apiInstance.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import axios from "axios";
import { env } from "./env";

export const apiInstance = axios.create({
baseURL: env.API_URL ?? "",
});
4 changes: 2 additions & 2 deletions template/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import "normalize.css";

import "./shared/assets/css/reset.css";
import "./assets/css/reset.css";
import "./app/styles/global.css";

import ReactDOM from "react-dom/client";
import { App } from "./app/App";
import { App } from "./App";
import reportWebVitals from "./reportWebVitals";

const root = ReactDOM.createRoot(
Expand Down
6 changes: 0 additions & 6 deletions template/src/shared/api/axiosInstance.ts

This file was deleted.

36 changes: 0 additions & 36 deletions template/src/shared/assets/css/reset.css

This file was deleted.

1 change: 0 additions & 1 deletion template/src/shared/index.ts

This file was deleted.

0 comments on commit 269d2b8

Please sign in to comment.