volt-awesome 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +73 -6
- data/app/awesome/assets/css/awesome.css +19 -85
- data/lib/volt/awesome/version.rb +1 -1
- data/screenshot.png +0 -0
- data/screenshot1.png +0 -0
- data/screenshot2.png +0 -0
- data/screenshot3.png +0 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb02d028bd409d0af3d12adb88a8332bd64941c9
|
4
|
+
data.tar.gz: 405011e2146f52c4f36e4abedab2ae84558aa7e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22630e3b042dac680f16014dece0b84ae595933dc11201e642046fd8e6a7b0b2869077e20e3e34f98794ff7a2c22d2447aa3c8ca2ef29c3e7c368307690a82ae
|
7
|
+
data.tar.gz: 060349e12a3db019b022d7e20b9bb717b765d7f577192608ee0e17b55807c3803e5b49f2bb9e3d7e1838bc1a080e6e3f30e3012f1d65e42034770c49b5bb2123
|
data/README.md
CHANGED
@@ -4,9 +4,9 @@ Awesome UI for @VoltFramework applications, based on Bootstrap 3.3.0 and Font Aw
|
|
4
4
|
|
5
5
|
Blocks of ui can be created with a few simple lines, such as `<:awesome:panel:image title="My headline" image_url="src.png" />`
|
6
6
|
|
7
|
-
|
7
|
+
This component is still in alpha but has been used successfully in deployed apps. Example from an app done at a hackathon:
|
8
8
|
|
9
|
-

|
10
10
|
|
11
11
|
|
12
12
|
## Installation
|
@@ -25,14 +25,81 @@ Or install it yourself as:
|
|
25
25
|
|
26
26
|
## Usage
|
27
27
|
|
28
|
-
|
28
|
+
### User card
|
29
|
+
```
|
30
|
+
<:awesome:panel>
|
31
|
+
<:awesome:panel:image href="{{ '/people/' + id }}" image_url="{{ lion_king.png }}" />
|
32
|
+
|
33
|
+
<:awesome:panel:profile name={{John Smith}} image_url="heri.png">Lorem ipsum dolor sit amet, consectetur adipiscing elit</:awesome:panel:profile>
|
34
|
+
|
35
|
+
<:awesome:panel:navfooter>
|
36
|
+
<:awesome:link icon="eye" href="{{ '/people/' + id }}" title="172"/>
|
37
|
+
<:awesome:link icon="comment" href="{{ '/people/' + id }}" title="34"/>
|
38
|
+
<:awesome:link icon="heart-o" href="{{ like(id) }}" title="210"/>
|
39
|
+
</:awesome:panel:navfooter>
|
40
|
+
|
41
|
+
</:awesome:panel>
|
42
|
+
```
|
43
|
+

|
44
|
+
|
45
|
+
### Forms
|
46
|
+
```
|
47
|
+
<:awesome:panel title="LOGIN TO YOUR ACCOUNT">
|
48
|
+
<h3>Email</h3>
|
49
|
+
<:awesome:field placeholder="{{ email }}" icon="user"/>
|
50
|
+
<h3>Password</h3>
|
51
|
+
<:awesome:field placeholder="{{ password }}" icon="lock"/>
|
52
|
+
|
53
|
+
...(TODO)
|
54
|
+
|
55
|
+
</:awesome:panel>
|
56
|
+
```
|
57
|
+

|
58
|
+
|
59
|
+
### Dashboard
|
60
|
+
```
|
61
|
+
<:awesome:panel title="DATA TRANSFER">
|
62
|
+
<:awesome:panel:image image_url="{{ graph_image_url }}" />
|
63
|
+
|
64
|
+
<:awesome:panel:info>
|
65
|
+
<:awesome:panel:infoicon title="video" number="62%" />
|
66
|
+
<:awesome:panel:infoicon title="photo" number="21%" />
|
67
|
+
<:awesome:panel:infoicon title="audio" number="10%" />
|
68
|
+
</:awesome:panel:info>
|
69
|
+
|
70
|
+
|
71
|
+
<:awesome:panel:navfooter>
|
72
|
+
<:awesome:link icon="cloud-upload" href="{{ '/projects/' + id }}" title="Upload files"/>
|
73
|
+
<:awesome:link icon="share-alt" href="{{ '/pledges/' + id }}" title="share link"/>
|
74
|
+
<:awesome:link icon="history" href="{{ '/pledges/' + id }}" title="back up"/>
|
75
|
+
</:awesome:panel:navfooter>
|
76
|
+
|
77
|
+
</:awesome:panel>
|
78
|
+
```
|
79
|
+

|
80
|
+
|
81
|
+
### Real-life Volt app
|
82
|
+
```
|
83
|
+
<:awesome:panel>
|
84
|
+
<:awesome:panel:image href="{{ '/projects/' + id }}" image_url="{{ picture }}" />
|
85
|
+
|
86
|
+
<:awesome:panel:text title={{objective}}>{{ description }}</:awesome:panel:text>
|
87
|
+
|
88
|
+
<:awesome:panel:info>
|
89
|
+
<:awesome:panel:infoicon title="Required" number="{{monthly_amount}}" />
|
90
|
+
<:awesome:panel:infoicon title="Duration" number="{{total_duration}}" />
|
91
|
+
<:awesome:panel:infoicon title="Category" number="{{category}}" />
|
92
|
+
</:awesome:panel:info>
|
93
|
+
|
94
|
+
</:awesome:panel>
|
95
|
+
```
|
96
|
+
We get:
|
97
|
+

|
98
|
+
|
29
99
|
|
30
100
|
## TODO
|
31
101
|
|
32
|
-
* better neutral example
|
33
102
|
* graphs (pie chart, line chart, bar chart)
|
34
|
-
* social media icons
|
35
|
-
* re-do login UI for volt apps
|
36
103
|
|
37
104
|
|
38
105
|
## Contributing
|
@@ -1,13 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
.footer, .header {
|
4
|
-
border-top:none;
|
5
|
-
}
|
6
|
-
|
7
|
-
.weather {
|
8
|
-
margin:0 -30px;
|
9
|
-
}
|
10
|
-
|
1
|
+
.footer, .header { border-top:none;}
|
2
|
+
.weather { margin:0 -30px;}
|
11
3
|
@font-face{font-family:weather;src:url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/93/artill_clean_icons-webfont.eot);src:url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/93/artill_clean_icons-webfont.eot?#iefix) format('embedded-opentype'),url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/93/artill_clean_icons-webfont.woff) format('woff'),url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/93/artill_clean_icons-webfont.ttf) format('truetype'),url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/93/artill_clean_icons-webfont.svg#artill_clean_weather_iconsRg) format('svg');font-weight:400;font-style:normal}html{width:100%;height:100%}body{font:14px 'Open Sans',"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;color:#8F7F70;background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2RlYzhiYiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjMxJSIgc3RvcC1jb2xvcj0iI2FjOGU3NCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjY2JSIgc3RvcC1jb2xvcj0iI2JkYTI4NSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM4NzZkNTIiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+) fixed;background:-moz-linear-gradient(top,#dec8bb 0,#ac8e74 31%,#bda285 66%,#876d52 100%) fixed;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#dec8bb),color-stop(31%,#ac8e74),color-stop(66%,#bda285),color-stop(100%,#876d52)) fixed;background:-webkit-linear-gradient(top,#dec8bb 0,#ac8e74 31%,#bda285 66%,#876d52 100%) fixed;background:-o-linear-gradient(top,#dec8bb 0,#ac8e74 31%,#bda285 66%,#876d52 100%) fixed;background:-ms-linear-gradient(top,#dec8bb 0,#ac8e74 31%,#bda285 66%,#876d52 100%) fixed;background:linear-gradient(to bottom,#dec8bb 0,#ac8e74 31%,#bda285 66%,#876d52 100%) fixed;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dec8bb', endColorstr='#876d52', GradientType=0)}
|
12
4
|
.panel{border:none;font-shadow:0 1px 1px rgba(0,0,0,.25);border-radius:5px}
|
13
5
|
.panel-body{padding:20px}.panel-heading{border-top-left-radius:5px;border-top-right-radius:5px}.panel-footer{border-bottom-right-radius:5px;border-bottom-left-radius:5px;font-size:.9em;text-align:center}
|
@@ -56,94 +48,36 @@ img { width: 100%;}
|
|
56
48
|
@media (min-width: 1200px) { .container {max-width:500px;} } @media (min-width: 768px) and (max-width: 979px){ .container {width:auto;} }
|
57
49
|
@media (min-width: 1200px) { .movie-panel .flickr-photo, .yelp-photo, .movie-photo {width:530px;} } @media (min-width: 768px) and (max-width: 979px){ .movie-panel .flickr-photo, .yelp-photo, .movie-photo {max-width:100%;} } #tagline { font-size: 14px;}
|
58
50
|
h5.comments {margin-top:0}
|
59
|
-
.gmap {
|
60
|
-
padding:0;
|
61
|
-
margin-bottom:-3px;
|
62
|
-
}
|
51
|
+
.gmap { padding:0; margin-bottom:-3px;}
|
63
52
|
#weather-widget h5 { font-size: 1.25em;}
|
64
53
|
@media (min-width: 650px) {.container { width: 500px; }}
|
65
54
|
@media (max-width: 649px) {.container { width: auto; }}
|
66
55
|
@media screen and (max-device-width:640px) and (-webkit-device-pixel-ratio: 3) {.container { width: auto; } }
|
67
56
|
.gMapsiFrame { position: relative; padding-bottom: 75%; height: 0; overflow: hidden;}
|
68
57
|
.gMapsiFrame iframe { position: absolute;top: 0;left: 0;width: 100% !important;height: 100% !important;}
|
69
|
-
|
70
58
|
a.dropdown-toggle {color:#55BC75;font:1.25em;}
|
71
59
|
ul.user-menu {list-style-type: none;padding:0}
|
72
|
-
.dropdown-menu {
|
73
|
-
left: 35%;
|
74
|
-
}
|
75
|
-
|
60
|
+
.dropdown-menu { left: 35%;}
|
76
61
|
#searchForm .panel-body { padding:0 0 20px 0 }
|
77
|
-
|
78
62
|
#loading_status {text-align: center}
|
79
63
|
#loading_status img{width: 50px}
|
80
|
-
|
81
64
|
h1#site-logo{margin:5px 0}
|
82
65
|
h1#site-logo img{width: 156px;height: 75px}
|
83
|
-
#nav-widget a button.highlight {
|
84
|
-
|
85
|
-
}
|
86
|
-
|
87
|
-
.panel-image {
|
88
|
-
padding:0;
|
89
|
-
background-size: cover;
|
90
|
-
}
|
91
|
-
.panel-heading.panel-image {
|
92
|
-
border-top-left-radius: 5px;
|
93
|
-
border-top-right-radius: 5px;
|
94
|
-
}
|
66
|
+
#nav-widget a button.highlight { color: #E56E4C;}
|
67
|
+
.panel-image { padding:0;background-size: cover;}
|
68
|
+
.panel-heading.panel-image { border-top-left-radius: 5px; border-top-right-radius: 5px;}
|
95
69
|
.panel .description { padding:0 20px 20px 20px; }
|
96
|
-
.panel {
|
97
|
-
|
98
|
-
box-shadow: 0 2px 2px rgba(0, 0, 0, .2) }
|
99
|
-
|
70
|
+
.panel { box-shadow: 0 2px 2px rgba(0, 0, 0, .2) }
|
100
71
|
.profile .img-circle { width:110px}
|
101
72
|
.profile .media-heading { color: #5B5147;}
|
102
|
-
|
103
|
-
|
104
|
-
.panel-footer.info {
|
105
|
-
|
106
|
-
|
107
|
-
margin
|
108
|
-
}
|
109
|
-
.panel-footer.
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
}
|
114
|
-
.panel-footer.info li:not(:first-child) {
|
115
|
-
border-left: 1px solid #fff;
|
116
|
-
}
|
117
|
-
.panel-footer.info li:first-child{
|
118
|
-
margin-right: 1px;
|
119
|
-
border-top: 4px solid #4DAF7C
|
120
|
-
}
|
121
|
-
.panel-footer.info li:last-child{
|
122
|
-
margin-left: 1px;
|
123
|
-
border-top: 4px solid #EAC85D;
|
124
|
-
}
|
125
|
-
.panel-footer.info li h3 {
|
126
|
-
margin: 3px 0 0 0;
|
127
|
-
font-size: 30px;
|
128
|
-
}
|
129
|
-
|
130
|
-
.panel-text {
|
131
|
-
padding:0 20px 20px 20px;
|
132
|
-
}
|
133
|
-
|
134
|
-
.actions.panel-footer.navfooter .btn-group .btn {
|
135
|
-
background-color: #776B5F;
|
136
|
-
border-top: 3px solid #6d6257;
|
137
|
-
color:white;
|
138
|
-
padding:20px 0;
|
139
|
-
}
|
140
|
-
.actions.panel-footer.navfooter a small {
|
141
|
-
text-transform: uppercase;
|
142
|
-
}
|
143
|
-
.actions.panel-footer.navfooter .btn-group > .btn:not(:first-child) {
|
144
|
-
border-left: 0px solid #776B5F;
|
145
|
-
}
|
146
|
-
|
147
|
-
.media > .pull-left {
|
148
|
-
padding: 0 30px;
|
149
|
-
}
|
73
|
+
.panel-footer.info { padding:0; background-color: #fff; margin-top:3px;}
|
74
|
+
.panel-footer.info li { background-color: #F5F0EC;padding: 20px 0; border-top: 4px solid #E25331;}
|
75
|
+
.panel-footer.info li:not(:first-child) { border-left: 1px solid #fff;}
|
76
|
+
.panel-footer.info li:first-child{ margin-right: 1px;border-top: 4px solid #4DAF7C;}
|
77
|
+
.panel-footer.info li:last-child{ margin-left: 1px;border-top: 4px solid #EAC85D;}
|
78
|
+
.panel-footer.info li h3 { margin: 3px 0 0 0; font-size: 30px;}
|
79
|
+
.panel-text { padding:0 20px 20px 20px;}
|
80
|
+
.actions.panel-footer.navfooter .btn-group .btn { background-color: #776B5F; border-top: 3px solid #6d6257;color:white;padding:20px 0;}
|
81
|
+
.actions.panel-footer.navfooter a small { text-transform: uppercase;}
|
82
|
+
.actions.panel-footer.navfooter .btn-group > .btn:not(:first-child) { border-left: 0px solid #776B5F;}
|
83
|
+
.media > .pull-left { padding: 0 30px;}
|
data/lib/volt/awesome/version.rb
CHANGED
data/screenshot.png
CHANGED
Binary file
|
data/screenshot1.png
ADDED
Binary file
|
data/screenshot2.png
ADDED
Binary file
|
data/screenshot3.png
ADDED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: volt-awesome
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- heri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: volt
|
@@ -243,6 +243,9 @@ files:
|
|
243
243
|
- lib/volt/awesome.rb
|
244
244
|
- lib/volt/awesome/version.rb
|
245
245
|
- screenshot.png
|
246
|
+
- screenshot1.png
|
247
|
+
- screenshot2.png
|
248
|
+
- screenshot3.png
|
246
249
|
- spec/dummy/.gitignore
|
247
250
|
- spec/dummy/README.md
|
248
251
|
- spec/dummy/app/main/assets/css/app.css.scss
|