-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenvironment.txt
More file actions
70 lines (51 loc) · 1.32 KB
/
environment.txt
File metadata and controls
70 lines (51 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
- npx create-next-app@latest
✔ What is your project named? … FrontMarket
✔ Would you like to use TypeScript? … No / Yes
✔ Would you like to use ESLint? … No / Yes
✔ Would you like to use Tailwind CSS? … No / Yes
✔ Would you like to use `src/` directory? … No / Yes
✔ Would you like to use App Router? (recommended) … No / Yes
✔ Would you like to customize the default import alias (@/*)? … No / Yes
- npm install styled-components@latest
- npm run dev
CLEAN THE FOLDERS
* favicon.ico (Delete)
* globals.css
erase all and leave the following code:
:root {
--max-width: 1100px;
--border-radius: 12px;
}
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
html,
body {
max-width: 100vw;
overflow-x: hidden;
}
* page.module.css
.main {}
* page.module.css (deixar apenas)
.main {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
padding: 6rem;
min-height: 100vh;
}
* styled components
go to next.config.js e add
/** @type {import('next').NextConfig} */
const nextConfig = {
compiler: { styledComponents: true }
};
export default nextConfig;
API GraphQL Consumntion
npm install (inside the folder)
npm start (inside the folder)
Instalar o axios e react-query
npm install axios react-query