Skip to content

Commit 04ccfea

Browse files
committed
workflow for dev/prod
1 parent 4d9da23 commit 04ccfea

File tree

4 files changed

+3807
-47
lines changed

4 files changed

+3807
-47
lines changed

README.md

+16-10
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
# Project Website
22

33
## Description
4-
Descartaê is the easiest way to correctly discard your wastes, and this is the project Website :)
4+
Descartaê is the easiest way to correctly discard your wastes, and this is its Website :)
55

6-
## ParcelJS
7-
This project is using ParceJS the blazing fast, zero configuration web application bundler. You must have ParcelJS (https://parceljs.org) installed to build and run the project correctly.
6+
## Running
7+
This project is based on [npm](https://www.npmjs.com/)/[yarn](https://yarnpkg.com/) package manager. Just follow these steps to get it running on your machine!
88

9-
**1 - install Parcel using Yarn or npm**
9+
**1 - Install Dependencies**
1010

11-
Yarn: `yarn global add parcel-bundler`
12-
npm: `npm install -g parcel-bundler`
11+
Yarn: `yarn`
12+
npm: `npm install`
1313

14-
**2 - run the project**
14+
**2 - Running**
1515

16-
`parcel index.html`
16+
Yarn: `yarn start`
17+
npm: `npm start`
1718

18-
It will be available at: http://127.0.0.1:1234/
19+
The website will be available at: http://127.0.0.1:1234/
1920

20-
PS: Remember to run `npm install` at the root of the project before run the project.
21+
**3 - Preparing for deploy**
22+
23+
Yarn: `yarn run build`
24+
npm: `npm run build`
25+
26+
It will generate a `dist` folder, with the website ready for production.

css/style.css

+33-31
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
12
@import '../node_modules/bootstrap/dist/css/bootstrap.min.css';
3+
24
body {
3-
font-family: 'Signika', sans-serif;
5+
font-family: 'Signika', sans-serif;
46
}
57
p {
68
font-family: 'Signika', sans-serif;
@@ -15,7 +17,7 @@ p {
1517
}
1618

1719
@media (min-width: 768px) {
18-
.break-1250 {
20+
.break-1250 {
1921
width: 100%;
2022
height: 20px;
2123
}
@@ -36,7 +38,7 @@ p {
3638
.space-top {
3739
margin-top: 100px;
3840
}
39-
.btn-waitlist {
41+
.btn-waitlist {
4042
padding-left: 20px;
4143
padding-right: 20px;
4244
height: 40px;
@@ -57,7 +59,7 @@ p {
5759
background: url("../img/bg-intro/[email protected]");
5860
background-position: bottom;
5961
background-repeat: no-repeat;
60-
background-size: cover;
62+
background-size: cover;
6163
}
6264
.text-center {
6365
text-align: center;
@@ -69,22 +71,22 @@ p {
6971
.bg-intro p {
7072
color: #ffffff;
7173
}
72-
.bg-intro .input {
73-
min-width: 200px;
74+
.bg-intro .input {
75+
min-width: 200px;
7476
}
75-
.bg-intro button {
77+
.bg-intro button {
7678
width: 100px;
7779
}
78-
.O-jeito-fcil-e-prt {
80+
.O-jeito-fcil-e-prt {
7981
max-width: 400px;
80-
text-shadow: 0 0.5px 10px rgba(0, 0, 0, 0.2);
82+
text-shadow: 0 0.5px 10px rgba(0, 0, 0, 0.2);
8183
line-height: 1.63;
8284
font-size: 32px;
8385
letter-spacing: 0px;
84-
color: #ffffff;
86+
color: #ffffff;
8587
font-weight: 600;
8688
}
87-
.Encontre-os-pontos-d {
89+
.Encontre-os-pontos-d {
8890
max-width: 400px;
8991
font-size: 16px;
9092
font-weight: normal;
@@ -104,20 +106,20 @@ p {
104106
.ss-image img {
105107
object-fit: contain;
106108
max-width:100%;
107-
max-height:100%;
109+
max-height:100%;
108110
margin-top: 10px;
109111
}
110-
.types {
112+
.types {
111113
padding-top: 63px;
112114
padding-bottom: 63px;
113115
background-color: #f6f6f6;
114-
margin: auto;
116+
margin: auto;
115117
text-align: center;
116118
}
117-
.types-title {
119+
.types-title {
118120
padding-left: 30px;
119121
padding-right: 30px;
120-
margin: auto;
122+
margin: auto;
121123
font-size: 21px;
122124
font-weight: normal;
123125
font-style: normal;
@@ -127,9 +129,9 @@ p {
127129
text-align: center;
128130
color: #1b4855;
129131
}
130-
.type-name {
131-
margin: auto;
132-
font-family: 'Signika', sans-serif;
132+
.type-name {
133+
margin: auto;
134+
font-family: 'Signika', sans-serif;
133135
font-size: 13px;
134136
font-weight: normal;
135137
font-style: normal;
@@ -145,36 +147,36 @@ p {
145147
}
146148
.project {
147149
display: block;
148-
}
150+
}
149151
.mobile {
150152
display: none;
151153
}
152154
}
153155
@media (max-width: 768px) {
154156
.why {
155157
display: none;
156-
}
158+
}
157159
.project {
158160
display: none;
159161
}
160162
.mobile {
161163
display: block;
162164
}
163165
}
164-
.why {
166+
.why {
165167
padding-left: 40px;
166168
padding-right: 40px;
167169
padding-top: 63px;
168170
padding-bottom: 63px;
169171
background-color: #f6f6f6;
170-
margin: auto;
172+
margin: auto;
171173
text-align: center;
172174
}
173175
.why img {
174176
width: 100%;
175177
height: 100%;
176178
}
177-
.why-title, .project-title {
179+
.why-title, .project-title {
178180
font-size: 24px;
179181
font-weight: 600;
180182
font-style: normal;
@@ -188,13 +190,13 @@ p {
188190
width: 100%;
189191
height: 100%;
190192
}
191-
.project {
193+
.project {
192194
padding-left: 40px;
193195
padding-right: 40px;
194196
padding-top: 63px;
195197
padding-bottom: 63px;
196198
background-color: #ffffff;
197-
margin: auto;
199+
margin: auto;
198200
text-align: center;
199201
}
200202
.project-subtitle {
@@ -211,14 +213,14 @@ p {
211213
padding-left: 40px;
212214
padding-right: 40px;
213215
}
214-
.bg-foot {
215-
padding-top: 63px;
216+
.bg-foot {
217+
padding-top: 63px;
216218
background: url("../img/bg-footer.svg");
217219
background-position: bottom;
218220
background-repeat: no-repeat;
219221
background-size: cover;
220222
}
221-
.foot-desc {
223+
.foot-desc {
222224
font-size: 16px;
223225
font-weight: normal;
224226
font-style: normal;
@@ -266,7 +268,7 @@ p {
266268
#message {
267269
height: 120px;
268270
}
269-
.btn-send {
271+
.btn-send {
270272
padding-left: 20px;
271273
padding-right: 20px;
272274
height: 40px;
@@ -283,7 +285,7 @@ p {
283285
color: #ffffff;
284286
background-image: linear-gradient(163deg, #7ccb0d, #13a42f);
285287
}
286-
.foot-copy {
288+
.foot-copy {
287289
font-size: 14px;
288290
font-weight: normal;
289291
font-style: normal;

package.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,16 @@
55
"repository": "[email protected]:descartae/website.git",
66
"author": "Herlon Aguiar <[email protected]>",
77
"license": "MIT",
8+
"scripts": {
9+
"start": "parcel index.html",
10+
"build": "parcel build index.html"
11+
},
812
"dependencies": {
9-
"bootstrap": "4.0.0",
13+
"bootstrap": "4.0.0-beta.2",
1014
"jquery": "^3.3.1",
1115
"popper.js": "^1.12.9"
16+
},
17+
"devDependencies": {
18+
"parcel-bundler": "^1.6.2"
1219
}
1320
}

0 commit comments

Comments
 (0)