Back to home

react/

node

Version: 0.2.30

Last Updated: Unknown


Lift - React

Layout

# key name # key name react: # building for node - node: # scafold the files files: - name: FileOne # Define what components are required # 1. Checks js-storage first # 2. If not, creates component components: - Text - NotificationBottom # Sets up the layout for the file itself # Import to go in and save with prettier layout: - name: div className: container-testing # Sets children layout: - name: div className: block-four layout: - name: h1 className: heading-one value: Heading One # can define prop-types proptypes: - name: string - id: string.isRequired # define reducers required reducers: - Offers - Profile # define the actions to use with Redux Saga actions: - getName - setName # Create tue second file and repeat - name: FileTwo components: - NotificationBottom proptypes: - name: string - id: string.isRequired reducers: - Offers - Profile actions: - getName - setName routes: - PageOne - PageTwo - PageThree

Module files

1// Flat Colours
2$c-blue: #3498DB;
3$c-green: #2ECC71;
4$c-purple: #9B59B6;
5$c-yellow: #F1C40F;
6$c-orange: #F39C12;
7$c-red: #E74C3C;
8
9// Flat Colours
10$c-light-grey: #ECF0F1;
11$c-grey: #BDC3C7;
12
13// Basics
14$c-black: #000;
15$c-white: #FFF;
16
17// Setting the states
18$c-primary: <%= cPrimary %>;
19$c-secondary: <%= cSecondary %>;
20
21$c-link: <%= cLink %>;
22$c-info: <%= cInfo %>;
23$c-success: <%= cSuccess %>;
24$c-error: <%= cError %>;
25$c-warning: <%= cWarning %>;
26$c-light: <%= cLight %>;
27$c-dark: <%= cDark %>;
28
29.bg-primary {
30 background-color: $c-primary;
31 &.-hover {
32 @include backgroundColor($c-primary);
33 }
34}
35
36.c-primary {
37 color: $c-primary;
38 &.-hover {
39 @include color($c-primary);
40 }
41}
42
43.bg-secondary {
44 background-color: $c-secondary;
45 &.-hover {
46 @include backgroundColor($c-secondary);
47 }
48}
49
50.c-secondary {
51 color: $c-secondary;
52 &.-hover {
53 @include color($c-secondary);
54 }
55}
56
57// Black and whites
58
59.bg-black {
60 background-color: $c-black;
61}
62
63.c-black {
64 color: $c-black;
65}
66
67.bg-white {
68 background-color: $c-white;
69}
70
71.c-white {
72 color: $c-white;
73}
74
75// Other
76
77.bg-link {
78 background-color: $c-link;
79}
80
81.c-link {
82 color: $c-link;
83}
84
85.bg-info {
86 background-color: $c-info;
87}
88
89.c-info {
90 color: $c-info;
91}
92
93.bg-success {
94 background-color: $c-success;
95}
96
97.c-success {
98 color: $c-success;
99}
100
101.bg-error {
102 background-color: $c-error;
103}
104
105.c-error {
106 color: $c-error;
107}
108
109.bg-warning {
110 background-color: $c-warning;
111}
112
113.c-warning {
114 color: $c-warning;
115}
116
117.bg-light {
118 background-color: $c-light;
119}
120
121.c-light {
122 color: $c-light;
123}
124
125.bg-dark {
126 background-color: $c-dark;
127}
128
129.c-dark {
130 color: $c-dark;
131}
132
133// Base colours -- may remove
134
135.bg-blue {
136 background-color: $c-blue;
137 &.-hover {
138 @include backgroundColor($c-blue);
139 }
140}
141
142.c-blue {
143 color: $c-blue;
144 &.-hover {
145 @include color($c-blue);
146 }
147}
148
149.bg-green {
150 background-color: $c-green;
151 &.-hover {
152 @include backgroundColor($c-green);
153 }
154}
155
156.c-green {
157 color: $c-green;
158 &.-hover {
159 @include color($c-green);
160 }
161}
162
163.bg-purple {
164 background-color: $c-purple;
165 &.-hover {
166 @include backgroundColor($c-purple);
167 }
168}
169
170.c-purple {
171 color: $c-purple;
172 &.-hover {
173 @include color($c-purple);
174 }
175
176}
177
178.bg-yellow {
179 background-color: $c-yellow;
180 &.-hover {
181 @include backgroundColor($c-yellow);
182 }
183}
184
185.c-yellow {
186 color: $c-yellow;
187 &.-hover {
188 @include color($c-yellow);
189 }
190}
191
192.bg-orange {
193 background-color: $c-orange;
194 &.-hover {
195 @include backgroundColor($c-orange);
196 }
197}
198
199.c-orange {
200 color: $c-orange;
201 &.-hover {
202 @include color($c-orange);
203 }
204}
205
206.bg-red {
207 background-color: $c-red;
208 &.-hover {
209 @include backgroundColor($c-red);
210 }
211}
212
213.c-red {
214 color: $c-red;
215 &.-hover {
216 @include color($c-red);
217 }
218}
219
220.bg-light-grey {
221 background-color: $c-light-grey;
222 &.-hover {
223 @include backgroundColor($c-light-grey);
224 }
225}
226
227.c-light-grey {
228 color: $c-light-grey;
229 &.-hover {
230 @include color($c-light-grey);
231 }
232}
233
234.bg-grey {
235 background-color: $c-grey;
236 &.-hover {
237 @include backgroundColor($c-grey);
238 }
239}
240
241.c-grey {
242 color: $c-grey;
243 &.-hover {
244 @include color($c-grey);
245 }
246}

Install


Lift generate


Repository

https://github.com/okeeffed/pkg-lift-react

Sections