myrails 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +74 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/myrails +3 -0
- data/bin/setup +8 -0
- data/lib/myrails/templates/assets/animate.scss +3340 -0
- data/lib/myrails/templates/assets/application.css.sass +6 -0
- data/lib/myrails/templates/assets/application.js +10 -0
- data/lib/myrails/templates/assets/bootstrap_themes/cerulean.scss +11 -0
- data/lib/myrails/templates/assets/bootstrap_themes/cosmo.scss +11 -0
- data/lib/myrails/templates/assets/bootstrap_themes/cyborg.scss +11 -0
- data/lib/myrails/templates/assets/bootstrap_themes/darkly.scss +11 -0
- data/lib/myrails/templates/assets/bootstrap_themes/flatly.scss +11 -0
- data/lib/myrails/templates/assets/bootstrap_themes/journal.scss +11 -0
- data/lib/myrails/templates/assets/bootstrap_themes/lumen.scss +11 -0
- data/lib/myrails/templates/assets/bootstrap_themes/paper.scss +11 -0
- data/lib/myrails/templates/assets/bootstrap_themes/readable.scss +11 -0
- data/lib/myrails/templates/assets/bootstrap_themes/sandstone.scss +11 -0
- data/lib/myrails/templates/assets/bootstrap_themes/simplex.scss +11 -0
- data/lib/myrails/templates/assets/bootstrap_themes/slate.scss +11 -0
- data/lib/myrails/templates/assets/bootstrap_themes/spacelab.scss +11 -0
- data/lib/myrails/templates/assets/bootstrap_themes/superhero.scss +11 -0
- data/lib/myrails/templates/assets/bootstrap_themes/united.scss +11 -0
- data/lib/myrails/templates/assets/bootstrap_themes/yeti.scss +11 -0
- data/lib/myrails/templates/assets/will_paginate.scss +104 -0
- data/lib/myrails/templates/db/mysql_database.yml +55 -0
- data/lib/myrails/templates/db/sqlite3_database.yml +28 -0
- data/lib/myrails/templates/heroku/Procfile +1 -0
- data/lib/myrails/templates/heroku/puma.rb +15 -0
- data/lib/myrails/templates/layout/_error_messages.html.haml +6 -0
- data/lib/myrails/templates/layout/_info_messages.html.haml +9 -0
- data/lib/myrails/templates/layout/_nav.html.haml +24 -0
- data/lib/myrails/templates/layout/_success_message.html.haml +3 -0
- data/lib/myrails/templates/layout/application.html.haml +14 -0
- data/lib/myrails/templates/layout/footers/css/footer-distributed-with-address-and-phones.scss +168 -0
- data/lib/myrails/templates/layout/footers/css/footer-distributed-with-contact-form.scss +200 -0
- data/lib/myrails/templates/layout/footers/css/footer-distributed-with-search.scss +140 -0
- data/lib/myrails/templates/layout/footers/css/footer-distributed.scss +74 -0
- data/lib/myrails/templates/layout/footers/footer-distributed-with-address-and-phones.html.haml +45 -0
- data/lib/myrails/templates/layout/footers/footer-distributed-with-contact-form.html.haml +33 -0
- data/lib/myrails/templates/layout/footers/footer-distributed-with-search.html.haml +19 -0
- data/lib/myrails/templates/layout/footers/footer-distributed.html.haml +24 -0
- data/lib/myrails/templates/mailer/dev_mail_interceptor.rb +27 -0
- data/lib/myrails/templates/mailer/sendgrid.rb +8 -0
- data/lib/myrails/templates/presenters/base.rb +33 -0
- data/lib/myrails/templates/presenters/presenter.rb +19 -0
- data/lib/myrails/templates/presenters/presenter_config.rb +4 -0
- data/lib/myrails/templates/presenters/presenter_spec.rb +17 -0
- data/lib/myrails/templates/rails/application_helper.rb +49 -0
- data/lib/myrails/templates/rails/controller.rb +12 -0
- data/lib/myrails/templates/rails/model.rb +2 -0
- data/lib/myrails/templates/rails/pundit.rb +26 -0
- data/lib/myrails/templates/rspec/controller.rb +98 -0
- data/lib/myrails/templates/rspec/database_cleaner.rb +18 -0
- data/lib/myrails/templates/rspec/devise.rb +38 -0
- data/lib/myrails/templates/rspec/factory.rb +5 -0
- data/lib/myrails/templates/rspec/factory_girl.rb +3 -0
- data/lib/myrails/templates/rspec/files.rb +3 -0
- data/lib/myrails/templates/rspec/javascript.rb +8 -0
- data/lib/myrails/templates/rspec/mailer.rb +7 -0
- data/lib/myrails/templates/rspec/model.rb +5 -0
- data/lib/myrails/templates/rspec/pundit.rb +28 -0
- data/lib/myrails/templates/rspec/pundit_matchers.rb +47 -0
- data/lib/myrails/templates/rspec/router.rb +7 -0
- data/lib/myrails/templates/rspec/shoulda_matchers.rb +16 -0
- data/lib/myrails/templates/rspec/silence_backtrace.rb +8 -0
- data/lib/myrails/templates/ui/index.html.haml +6 -0
- data/lib/myrails/templates/ui/ui_controller.rb +8 -0
- data/lib/myrails/version.rb +3 -0
- data/lib/myrails.rb +399 -0
- data/myrails.gemspec +37 -0
- data/spec/controllers/sam_controller_spec.rb +98 -0
- data/spec/myrails_spec.rb +11 -0
- data/spec/spec_helper.rb +2 -0
- metadata +197 -0
@@ -0,0 +1,168 @@
|
|
1
|
+
.footer-distributed{
|
2
|
+
background-color: #292c2f;
|
3
|
+
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12);
|
4
|
+
box-sizing: border-box;
|
5
|
+
width: 100%;
|
6
|
+
text-align: left;
|
7
|
+
font: bold 16px sans-serif;
|
8
|
+
|
9
|
+
padding: 55px 50px;
|
10
|
+
margin-top: 80px;
|
11
|
+
}
|
12
|
+
|
13
|
+
.footer-distributed .footer-left,
|
14
|
+
.footer-distributed .footer-center,
|
15
|
+
.footer-distributed .footer-right{
|
16
|
+
display: inline-block;
|
17
|
+
vertical-align: top;
|
18
|
+
}
|
19
|
+
|
20
|
+
/* Footer left */
|
21
|
+
|
22
|
+
.footer-distributed .footer-left{
|
23
|
+
width: 40%;
|
24
|
+
}
|
25
|
+
|
26
|
+
/* The company logo */
|
27
|
+
|
28
|
+
.footer-distributed h3{
|
29
|
+
color: #ffffff;
|
30
|
+
font: normal 36px 'Cookie', cursive;
|
31
|
+
margin: 0;
|
32
|
+
}
|
33
|
+
|
34
|
+
.footer-distributed h3 span{
|
35
|
+
color: #5383d3;
|
36
|
+
}
|
37
|
+
|
38
|
+
/* Footer links */
|
39
|
+
|
40
|
+
.footer-distributed .footer-links{
|
41
|
+
color: #ffffff;
|
42
|
+
margin: 20px 0 12px;
|
43
|
+
padding: 0;
|
44
|
+
}
|
45
|
+
|
46
|
+
.footer-distributed .footer-links a{
|
47
|
+
display:inline-block;
|
48
|
+
line-height: 1.8;
|
49
|
+
text-decoration: none;
|
50
|
+
color: inherit;
|
51
|
+
}
|
52
|
+
|
53
|
+
.footer-distributed .footer-company-name{
|
54
|
+
color: #8f9296;
|
55
|
+
font-size: 14px;
|
56
|
+
font-weight: normal;
|
57
|
+
margin: 0;
|
58
|
+
}
|
59
|
+
|
60
|
+
/* Footer Center */
|
61
|
+
|
62
|
+
.footer-distributed .footer-center{
|
63
|
+
width: 35%;
|
64
|
+
}
|
65
|
+
|
66
|
+
.footer-distributed .footer-center i{
|
67
|
+
background-color: #33383b;
|
68
|
+
color: #ffffff;
|
69
|
+
font-size: 25px;
|
70
|
+
width: 38px;
|
71
|
+
height: 38px;
|
72
|
+
border-radius: 50%;
|
73
|
+
text-align: center;
|
74
|
+
line-height: 42px;
|
75
|
+
margin: 10px 15px;
|
76
|
+
vertical-align: middle;
|
77
|
+
}
|
78
|
+
|
79
|
+
.footer-distributed .footer-center i.fa-envelope{
|
80
|
+
font-size: 17px;
|
81
|
+
line-height: 38px;
|
82
|
+
}
|
83
|
+
|
84
|
+
.footer-distributed .footer-center p{
|
85
|
+
display: inline-block;
|
86
|
+
color: #ffffff;
|
87
|
+
vertical-align: middle;
|
88
|
+
margin:0;
|
89
|
+
}
|
90
|
+
|
91
|
+
.footer-distributed .footer-center p span{
|
92
|
+
display:block;
|
93
|
+
font-weight: normal;
|
94
|
+
font-size:14px;
|
95
|
+
line-height:2;
|
96
|
+
}
|
97
|
+
|
98
|
+
.footer-distributed .footer-center p a{
|
99
|
+
color: #5383d3;
|
100
|
+
text-decoration: none;;
|
101
|
+
}
|
102
|
+
|
103
|
+
|
104
|
+
/* Footer Right */
|
105
|
+
|
106
|
+
.footer-distributed .footer-right{
|
107
|
+
width: 20%;
|
108
|
+
}
|
109
|
+
|
110
|
+
.footer-distributed .footer-company-about{
|
111
|
+
line-height: 20px;
|
112
|
+
color: #92999f;
|
113
|
+
font-size: 13px;
|
114
|
+
font-weight: normal;
|
115
|
+
margin: 0;
|
116
|
+
}
|
117
|
+
|
118
|
+
.footer-distributed .footer-company-about span{
|
119
|
+
display: block;
|
120
|
+
color: #ffffff;
|
121
|
+
font-size: 14px;
|
122
|
+
font-weight: bold;
|
123
|
+
margin-bottom: 20px;
|
124
|
+
}
|
125
|
+
|
126
|
+
.footer-distributed .footer-icons{
|
127
|
+
margin-top: 25px;
|
128
|
+
}
|
129
|
+
|
130
|
+
.footer-distributed .footer-icons a{
|
131
|
+
display: inline-block;
|
132
|
+
width: 35px;
|
133
|
+
height: 35px;
|
134
|
+
cursor: pointer;
|
135
|
+
background-color: #33383b;
|
136
|
+
border-radius: 2px;
|
137
|
+
|
138
|
+
font-size: 20px;
|
139
|
+
color: #ffffff;
|
140
|
+
text-align: center;
|
141
|
+
line-height: 35px;
|
142
|
+
|
143
|
+
margin-right: 3px;
|
144
|
+
margin-bottom: 5px;
|
145
|
+
}
|
146
|
+
|
147
|
+
/* If you don't want the footer to be responsive, remove these media queries */
|
148
|
+
|
149
|
+
@media (max-width: 880px) {
|
150
|
+
|
151
|
+
.footer-distributed{
|
152
|
+
font: bold 14px sans-serif;
|
153
|
+
}
|
154
|
+
|
155
|
+
.footer-distributed .footer-left,
|
156
|
+
.footer-distributed .footer-center,
|
157
|
+
.footer-distributed .footer-right{
|
158
|
+
display: block;
|
159
|
+
width: 100%;
|
160
|
+
margin-bottom: 40px;
|
161
|
+
text-align: center;
|
162
|
+
}
|
163
|
+
|
164
|
+
.footer-distributed .footer-center i{
|
165
|
+
margin-left: 0;
|
166
|
+
}
|
167
|
+
|
168
|
+
}
|
@@ -0,0 +1,200 @@
|
|
1
|
+
.footer-distributed{
|
2
|
+
background-color: #292c2f;
|
3
|
+
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12);
|
4
|
+
box-sizing: border-box;
|
5
|
+
width: 100%;
|
6
|
+
font: bold 16px sans-serif;
|
7
|
+
text-align: left;
|
8
|
+
|
9
|
+
padding: 50px 60px 40px;
|
10
|
+
margin-top: 80px;
|
11
|
+
overflow: hidden;
|
12
|
+
}
|
13
|
+
|
14
|
+
/* Footer left */
|
15
|
+
|
16
|
+
.footer-distributed .footer-left{
|
17
|
+
float: left;
|
18
|
+
}
|
19
|
+
|
20
|
+
/* The company logo */
|
21
|
+
|
22
|
+
.footer-distributed h3{
|
23
|
+
color: #ffffff;
|
24
|
+
font: normal 36px 'Cookie', cursive;
|
25
|
+
margin: 0 0 10px;
|
26
|
+
}
|
27
|
+
|
28
|
+
.footer-distributed h3 span{
|
29
|
+
color: #5383d3;
|
30
|
+
}
|
31
|
+
|
32
|
+
/* Footer links */
|
33
|
+
|
34
|
+
.footer-distributed .footer-links{
|
35
|
+
color: #ffffff;
|
36
|
+
margin: 0 0 10px;
|
37
|
+
padding: 0;
|
38
|
+
}
|
39
|
+
|
40
|
+
.footer-distributed .footer-links a{
|
41
|
+
display:inline-block;
|
42
|
+
line-height: 1.8;
|
43
|
+
text-decoration: none;
|
44
|
+
color: inherit;
|
45
|
+
}
|
46
|
+
|
47
|
+
.footer-distributed .footer-company-name{
|
48
|
+
color: #8f9296;
|
49
|
+
font-size: 14px;
|
50
|
+
font-weight: normal;
|
51
|
+
margin: 0;
|
52
|
+
}
|
53
|
+
|
54
|
+
/* Footer social icons */
|
55
|
+
|
56
|
+
.footer-distributed .footer-icons{
|
57
|
+
margin-top: 40px;
|
58
|
+
}
|
59
|
+
|
60
|
+
.footer-distributed .footer-icons a{
|
61
|
+
display: inline-block;
|
62
|
+
width: 35px;
|
63
|
+
height: 35px;
|
64
|
+
cursor: pointer;
|
65
|
+
background-color: #33383b;
|
66
|
+
border-radius: 2px;
|
67
|
+
|
68
|
+
font-size: 20px;
|
69
|
+
color: #ffffff;
|
70
|
+
text-align: center;
|
71
|
+
line-height: 35px;
|
72
|
+
|
73
|
+
margin-right: 3px;
|
74
|
+
margin-bottom: 5px;
|
75
|
+
}
|
76
|
+
|
77
|
+
/* Footer Right */
|
78
|
+
|
79
|
+
.footer-distributed .footer-right{
|
80
|
+
float: right;
|
81
|
+
}
|
82
|
+
|
83
|
+
.footer-distributed .footer-right p{
|
84
|
+
display: inline-block;
|
85
|
+
vertical-align: top;
|
86
|
+
margin: 15px 42px 0 0;
|
87
|
+
color: #ffffff;
|
88
|
+
}
|
89
|
+
|
90
|
+
/* The contact form */
|
91
|
+
|
92
|
+
.footer-distributed form{
|
93
|
+
display: inline-block;
|
94
|
+
}
|
95
|
+
|
96
|
+
.footer-distributed form input,
|
97
|
+
.footer-distributed form textarea{
|
98
|
+
display: block;
|
99
|
+
border-radius: 3px;
|
100
|
+
box-sizing: border-box;
|
101
|
+
background-color: #1f2022;
|
102
|
+
box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.1);
|
103
|
+
border: none;
|
104
|
+
resize: none;
|
105
|
+
|
106
|
+
font: inherit;
|
107
|
+
font-size: 14px;
|
108
|
+
font-weight: normal;
|
109
|
+
color: #d1d2d2;
|
110
|
+
|
111
|
+
width: 400px;
|
112
|
+
padding: 18px;
|
113
|
+
}
|
114
|
+
|
115
|
+
.footer-distributed ::-webkit-input-placeholder {
|
116
|
+
color: #5c666b;
|
117
|
+
}
|
118
|
+
|
119
|
+
.footer-distributed ::-moz-placeholder {
|
120
|
+
color: #5c666b;
|
121
|
+
opacity: 1;
|
122
|
+
}
|
123
|
+
|
124
|
+
.footer-distributed :-ms-input-placeholder{
|
125
|
+
color: #5c666b;
|
126
|
+
}
|
127
|
+
|
128
|
+
|
129
|
+
.footer-distributed form input{
|
130
|
+
height: 55px;
|
131
|
+
margin-bottom: 15px;
|
132
|
+
}
|
133
|
+
|
134
|
+
.footer-distributed form textarea{
|
135
|
+
height: 100px;
|
136
|
+
margin-bottom: 20px;
|
137
|
+
}
|
138
|
+
|
139
|
+
.footer-distributed form button{
|
140
|
+
border-radius: 3px;
|
141
|
+
background-color: #33383b;
|
142
|
+
color: #ffffff;
|
143
|
+
border: 0;
|
144
|
+
padding: 15px 50px;
|
145
|
+
font-weight: bold;
|
146
|
+
float: right;
|
147
|
+
}
|
148
|
+
|
149
|
+
/* If you don't want the footer to be responsive, remove these media queries */
|
150
|
+
|
151
|
+
@media (max-width: 1000px) {
|
152
|
+
|
153
|
+
.footer-distributed {
|
154
|
+
font: bold 14px sans-serif;
|
155
|
+
}
|
156
|
+
|
157
|
+
.footer-distributed .footer-company-name{
|
158
|
+
font-size: 12px;
|
159
|
+
}
|
160
|
+
|
161
|
+
.footer-distributed form input,
|
162
|
+
.footer-distributed form textarea{
|
163
|
+
width: 250px;
|
164
|
+
}
|
165
|
+
|
166
|
+
.footer-distributed form button{
|
167
|
+
padding: 10px 35px;
|
168
|
+
}
|
169
|
+
|
170
|
+
}
|
171
|
+
|
172
|
+
@media (max-width: 800px) {
|
173
|
+
|
174
|
+
.footer-distributed{
|
175
|
+
padding: 30px;
|
176
|
+
}
|
177
|
+
|
178
|
+
.footer-distributed .footer-left,
|
179
|
+
.footer-distributed .footer-right{
|
180
|
+
float: none;
|
181
|
+
max-width: 300px;
|
182
|
+
margin: 0 auto;
|
183
|
+
}
|
184
|
+
|
185
|
+
.footer-distributed .footer-left{
|
186
|
+
margin-bottom: 40px;
|
187
|
+
}
|
188
|
+
|
189
|
+
.footer-distributed form{
|
190
|
+
margin-top: 30px;
|
191
|
+
}
|
192
|
+
|
193
|
+
.footer-distributed form{
|
194
|
+
display: block;
|
195
|
+
}
|
196
|
+
|
197
|
+
.footer-distributed form button{
|
198
|
+
float: none;
|
199
|
+
}
|
200
|
+
}
|
@@ -0,0 +1,140 @@
|
|
1
|
+
.footer-distributed{
|
2
|
+
background-color: #292c2f;
|
3
|
+
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12);
|
4
|
+
box-sizing: border-box;
|
5
|
+
width: 100%;
|
6
|
+
font: bold 16px sans-serif;
|
7
|
+
text-align: left;
|
8
|
+
|
9
|
+
padding: 50px 60px;
|
10
|
+
margin-top: 80px;
|
11
|
+
overflow: hidden;
|
12
|
+
}
|
13
|
+
|
14
|
+
/* Footer left */
|
15
|
+
|
16
|
+
.footer-distributed .footer-left{
|
17
|
+
float: left;
|
18
|
+
}
|
19
|
+
|
20
|
+
.footer-distributed .footer-links{
|
21
|
+
color: #ffffff;
|
22
|
+
margin: 0 0 10px;
|
23
|
+
padding: 0;
|
24
|
+
}
|
25
|
+
|
26
|
+
.footer-distributed .footer-links a{
|
27
|
+
display:inline-block;
|
28
|
+
line-height: 1.8;
|
29
|
+
text-decoration: none;
|
30
|
+
color: inherit;
|
31
|
+
}
|
32
|
+
|
33
|
+
.footer-distributed .footer-company-name{
|
34
|
+
color: #8f9296;
|
35
|
+
font-size: 14px;
|
36
|
+
font-weight: normal;
|
37
|
+
margin: 0;
|
38
|
+
}
|
39
|
+
|
40
|
+
|
41
|
+
/* Footer right */
|
42
|
+
|
43
|
+
.footer-distributed .footer-right{
|
44
|
+
float: right;
|
45
|
+
}
|
46
|
+
|
47
|
+
/* The search form */
|
48
|
+
|
49
|
+
.footer-distributed form{
|
50
|
+
position: relative;
|
51
|
+
}
|
52
|
+
|
53
|
+
.footer-distributed form input{
|
54
|
+
display: block;
|
55
|
+
border-radius: 3px;
|
56
|
+
box-sizing: border-box;
|
57
|
+
background-color: #1f2022;
|
58
|
+
box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.1);
|
59
|
+
border: none;
|
60
|
+
|
61
|
+
font: inherit;
|
62
|
+
font-size: 14px;
|
63
|
+
font-weight: normal;
|
64
|
+
color: #d1d2d2;
|
65
|
+
|
66
|
+
width: 500px;
|
67
|
+
padding: 18px 50px 18px 18px;
|
68
|
+
}
|
69
|
+
|
70
|
+
.footer-distributed form input:focus{
|
71
|
+
outline: none;
|
72
|
+
}
|
73
|
+
|
74
|
+
/* Changing the placeholder color */
|
75
|
+
|
76
|
+
.footer-distributed form input::-webkit-input-placeholder {
|
77
|
+
color: #5c666b;
|
78
|
+
}
|
79
|
+
|
80
|
+
.footer-distributed form input::-moz-placeholder {
|
81
|
+
opacity: 1;
|
82
|
+
color: #5c666b;
|
83
|
+
}
|
84
|
+
|
85
|
+
.footer-distributed form input:-ms-input-placeholder{
|
86
|
+
color: #5c666b;
|
87
|
+
}
|
88
|
+
|
89
|
+
/* The magnify glass icon */
|
90
|
+
|
91
|
+
.footer-distributed form i{
|
92
|
+
width: 18px;
|
93
|
+
height: 18px;
|
94
|
+
position: absolute;
|
95
|
+
top: 16px;
|
96
|
+
right: 18px;
|
97
|
+
|
98
|
+
color: #d1d2d2;
|
99
|
+
font-size: 18px;
|
100
|
+
}
|
101
|
+
|
102
|
+
/* If you don't want the footer to be responsive, remove these media queries */
|
103
|
+
|
104
|
+
@media (max-width: 1000px) {
|
105
|
+
|
106
|
+
.footer-distributed form input{
|
107
|
+
width: 300px;
|
108
|
+
}
|
109
|
+
|
110
|
+
}
|
111
|
+
|
112
|
+
@media (max-width: 800px) {
|
113
|
+
|
114
|
+
.footer-distributed{
|
115
|
+
padding: 30px;
|
116
|
+
text-align: center;
|
117
|
+
font: bold 14px sans-serif;
|
118
|
+
}
|
119
|
+
|
120
|
+
.footer-distributed .footer-company-name{
|
121
|
+
margin-top: 10px;
|
122
|
+
font-size: 12px;
|
123
|
+
}
|
124
|
+
|
125
|
+
.footer-distributed .footer-left,
|
126
|
+
.footer-distributed .footer-right{
|
127
|
+
float: none;
|
128
|
+
max-width: 300px;
|
129
|
+
margin: 0 auto;
|
130
|
+
}
|
131
|
+
|
132
|
+
.footer-distributed .footer-left{
|
133
|
+
margin-bottom: 20px;
|
134
|
+
}
|
135
|
+
|
136
|
+
.footer-distributed form input{
|
137
|
+
width: 100%;
|
138
|
+
}
|
139
|
+
|
140
|
+
}
|
@@ -0,0 +1,74 @@
|
|
1
|
+
.footer-distributed{
|
2
|
+
background-color: #292c2f;
|
3
|
+
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12);
|
4
|
+
box-sizing: border-box;
|
5
|
+
width: 100%;
|
6
|
+
text-align: left;
|
7
|
+
font: normal 16px sans-serif;
|
8
|
+
|
9
|
+
padding: 45px 50px;
|
10
|
+
margin-top: 80px;
|
11
|
+
}
|
12
|
+
|
13
|
+
.footer-distributed .footer-left p{
|
14
|
+
color: #8f9296;
|
15
|
+
font-size: 14px;
|
16
|
+
margin: 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
/* Footer links */
|
20
|
+
|
21
|
+
.footer-distributed p.footer-links{
|
22
|
+
font-size:18px;
|
23
|
+
font-weight: bold;
|
24
|
+
color: #ffffff;
|
25
|
+
margin: 0 0 10px;
|
26
|
+
padding: 0;
|
27
|
+
}
|
28
|
+
|
29
|
+
.footer-distributed p.footer-links a{
|
30
|
+
display:inline-block;
|
31
|
+
line-height: 1.8;
|
32
|
+
text-decoration: none;
|
33
|
+
color: inherit;
|
34
|
+
}
|
35
|
+
|
36
|
+
.footer-distributed .footer-right{
|
37
|
+
float: right;
|
38
|
+
margin-top: 6px;
|
39
|
+
max-width: 180px;
|
40
|
+
}
|
41
|
+
|
42
|
+
.footer-distributed .footer-right a{
|
43
|
+
display: inline-block;
|
44
|
+
width: 35px;
|
45
|
+
height: 35px;
|
46
|
+
background-color: #33383b;
|
47
|
+
border-radius: 2px;
|
48
|
+
|
49
|
+
font-size: 20px;
|
50
|
+
color: #ffffff;
|
51
|
+
text-align: center;
|
52
|
+
line-height: 35px;
|
53
|
+
|
54
|
+
margin-left: 3px;
|
55
|
+
}
|
56
|
+
|
57
|
+
/* If you don't want the footer to be responsive, remove these media queries */
|
58
|
+
|
59
|
+
@media (max-width: 600px) {
|
60
|
+
|
61
|
+
.footer-distributed .footer-left,
|
62
|
+
.footer-distributed .footer-right{
|
63
|
+
text-align: center;
|
64
|
+
}
|
65
|
+
|
66
|
+
.footer-distributed .footer-right{
|
67
|
+
float: none;
|
68
|
+
margin: 0 auto 20px;
|
69
|
+
}
|
70
|
+
|
71
|
+
.footer-distributed .footer-left p.footer-links{
|
72
|
+
line-height: 1.8;
|
73
|
+
}
|
74
|
+
}
|
data/lib/myrails/templates/layout/footers/footer-distributed-with-address-and-phones.html.haml
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
|
2
|
+
%footer.footer-distributed
|
3
|
+
.footer-left
|
4
|
+
%h3
|
5
|
+
Company
|
6
|
+
%span logo
|
7
|
+
%p.footer-links
|
8
|
+
%a{:href => "#"} Home
|
9
|
+
·
|
10
|
+
%a{:href => "#"} Blog
|
11
|
+
·
|
12
|
+
%a{:href => "#"} Pricing
|
13
|
+
·
|
14
|
+
%a{:href => "#"} About
|
15
|
+
·
|
16
|
+
%a{:href => "#"} Faq
|
17
|
+
·
|
18
|
+
%a{:href => "#"} Contact
|
19
|
+
%p.footer-company-name Company Name © #{Date.today.year}
|
20
|
+
.footer-center
|
21
|
+
%div
|
22
|
+
%i.fa.fa-map-marker
|
23
|
+
%p
|
24
|
+
%span 21 Revolution Street
|
25
|
+
Paris, France
|
26
|
+
%div
|
27
|
+
%i.fa.fa-phone
|
28
|
+
%p +1 555 123456
|
29
|
+
%div
|
30
|
+
%i.fa.fa-envelope
|
31
|
+
%p
|
32
|
+
%a{:href => "mailto:support@company.com"} support@company.com
|
33
|
+
.footer-right
|
34
|
+
%p.footer-company-about
|
35
|
+
%span About the company
|
36
|
+
Lorem ipsum dolor sit amet, consectateur adispicing elit. Fusce euismod convallis velit, eu auctor lacus vehicula sit amet.
|
37
|
+
.footer-icons
|
38
|
+
%a{:href => "#"}
|
39
|
+
%i.fa.fa-facebook
|
40
|
+
%a{:href => "#"}
|
41
|
+
%i.fa.fa-twitter
|
42
|
+
%a{:href => "#"}
|
43
|
+
%i.fa.fa-linkedin
|
44
|
+
%a{:href => "#"}
|
45
|
+
%i.fa.fa-github
|
@@ -0,0 +1,33 @@
|
|
1
|
+
%footer.footer-distributed
|
2
|
+
.footer-left
|
3
|
+
%h3
|
4
|
+
Company
|
5
|
+
%span logo
|
6
|
+
%p.footer-links
|
7
|
+
%a{:href => "#"} Home
|
8
|
+
·
|
9
|
+
%a{:href => "#"} Blog
|
10
|
+
·
|
11
|
+
%a{:href => "#"} Pricing
|
12
|
+
·
|
13
|
+
%a{:href => "#"} About
|
14
|
+
·
|
15
|
+
%a{:href => "#"} Faq
|
16
|
+
·
|
17
|
+
%a{:href => "#"} Contact
|
18
|
+
%p.footer-company-name Company Name © #{Date.today.year}
|
19
|
+
.footer-icons
|
20
|
+
%a{:href => "#"}
|
21
|
+
%i.fa.fa-facebook
|
22
|
+
%a{:href => "#"}
|
23
|
+
%i.fa.fa-twitter
|
24
|
+
%a{:href => "#"}
|
25
|
+
%i.fa.fa-linkedin
|
26
|
+
%a{:href => "#"}
|
27
|
+
%i.fa.fa-github
|
28
|
+
.footer-right
|
29
|
+
%p Contact Us
|
30
|
+
%form{:action => "#", :method => "post"}
|
31
|
+
%input{:name => "email", :placeholder => "Email", :type => "text"}/
|
32
|
+
%textarea{:name => "message", :placeholder => "Message"}
|
33
|
+
%button Send
|
@@ -0,0 +1,19 @@
|
|
1
|
+
%footer.footer-distributed
|
2
|
+
.footer-left
|
3
|
+
%p.footer-links
|
4
|
+
%a{:href => "#"} Home
|
5
|
+
·
|
6
|
+
%a{:href => "#"} Blog
|
7
|
+
·
|
8
|
+
%a{:href => "#"} Pricing
|
9
|
+
·
|
10
|
+
%a{:href => "#"} About
|
11
|
+
·
|
12
|
+
%a{:href => "#"} Faq
|
13
|
+
·
|
14
|
+
%a{:href => "#"} Contact
|
15
|
+
%p.footer-company-name Company Name © #{Date.today.year}
|
16
|
+
.footer-right
|
17
|
+
%form{:action => "#", :method => "get"}
|
18
|
+
%input{:name => "search", :placeholder => "Search our website"}/
|
19
|
+
%i.fa.fa-search
|
@@ -0,0 +1,24 @@
|
|
1
|
+
%footer.footer-distributed
|
2
|
+
.footer-right
|
3
|
+
%a{:href => "#"}
|
4
|
+
%i.fa.fa-facebook
|
5
|
+
%a{:href => "#"}
|
6
|
+
%i.fa.fa-twitter
|
7
|
+
%a{:href => "#"}
|
8
|
+
%i.fa.fa-linkedin
|
9
|
+
%a{:href => "#"}
|
10
|
+
%i.fa.fa-github
|
11
|
+
.footer-left
|
12
|
+
%p.footer-links
|
13
|
+
%a{:href => "#"} Home
|
14
|
+
·
|
15
|
+
%a{:href => "#"} Blog
|
16
|
+
·
|
17
|
+
%a{:href => "#"} Pricing
|
18
|
+
·
|
19
|
+
%a{:href => "#"} About
|
20
|
+
·
|
21
|
+
%a{:href => "#"} Faq
|
22
|
+
·
|
23
|
+
%a{:href => "#"} Contact
|
24
|
+
%p Company Name © #{Date.today.year}
|