Skip to content

Commit b21fc70

Browse files
committed
New options layout, drag'n'drop improvements, new logo, few fixes
1 parent 3ec266e commit b21fc70

24 files changed

+293
-145
lines changed

README.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,19 @@ Extension is available on [Chrome Web Store](https://chrome.google.com/webstore/
1515

1616
## Roadmap
1717

18-
### 0.3.0
19-
[ ] Google search widget
18+
### 0.4.0
19+
[ ] Weather widget
2020

21-
### 0.2.0
21+
### 0.3.0
2222
[ ] Most visited widget
2323

24-
### 0.1.2
24+
### 0.2.0
25+
[x] New logo
26+
[x] New layout
2527
[x] Removing widgets
26-
[ ] Bugfix: Drag'n'drop improvements
28+
[x] Bugfix: Drag'n'drop improvements
29+
[x] Fix: Remove used categories from select when adding widget
30+
[x] Bugfix: Clear storage widgets when change background after added widget
2731

2832
### 0.1.1
2933
[x] Bugfix: Removing storage after Chrome updated

_locales/en/messages.json

+14-8
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"chrome_extension_name": {
33
"message": "Fast new tab"
44
},
5-
"chrome_extension_shortName": {
6-
"message": "Fast new tab"
7-
},
85
"chrome_extension_description": {
96
"message": "Personalize your new tab page with widgets and custom background"
107
},
118
"widget_saved": {
129
"message": "Widget has been saved"
1310
},
11+
"widget_saved_failed_dnd_bad_handler": {
12+
"message": "You must use the drag icon to moving widgets"
13+
},
1414
"settings_saved": {
1515
"message": "Settings has been saved"
1616
},
@@ -29,17 +29,23 @@
2929
"widget_settings_field_columns_label": {
3030
"message": "Number of clumns"
3131
},
32-
"widget_settings_field_backgroundGallery_label": {
32+
"widget_settings_submit": {
33+
"message": "Save settings"
34+
},
35+
"widget_settings_background_title": {
36+
"message": "Background"
37+
},
38+
"widget_settings_background_field_backgroundGallery_label": {
3339
"message": "Background from the gallery"
3440
},
35-
"widget_settings_field_backgroundUrl_label": {
41+
"widget_settings_background_field_backgroundUrl_label": {
3642
"message": "Background from URL"
3743
},
38-
"widget_settings_field_backgroundUrl_help": {
44+
"widget_settings_background_field_backgroundUrl_help": {
3945
"message": "Background file must be less than 5MB"
4046
},
41-
"widget_settings_submit": {
42-
"message": "Save settings"
47+
"widget_settings_background_submit": {
48+
"message": "Save background"
4349
},
4450
"widget_bookmarks_title": {
4551
"message": "Bookmarks widget"

_locales/pl/messages.json

+14-8
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"chrome_extension_name": {
33
"message": "Fast new tab"
44
},
5-
"chrome_extension_shortName": {
6-
"message": "Fast new tab"
7-
},
85
"chrome_extension_description": {
96
"message": "Personalizuj nową kartę chrome przy użyciu widgetów i własnego tła"
107
},
118
"widget_saved": {
129
"message": "Widget został zapisany"
1310
},
11+
"widget_saved_failed_dnd_bad_handler": {
12+
"message": "Musisz przenosić widgety przy pomocy ikony"
13+
},
1414
"settings_saved": {
1515
"message": "Ustawienia zostały zapisane"
1616
},
@@ -29,17 +29,23 @@
2929
"widget_settings_field_columns_label": {
3030
"message": "Ilość kolumn"
3131
},
32-
"widget_settings_field_backgroundGallery_label": {
32+
"widget_settings_submit": {
33+
"message": "Zapisz ustawienia"
34+
},
35+
"widget_settings_background_title": {
36+
"message": "Tło nowej karty"
37+
},
38+
"widget_settings_background_field_backgroundGallery_label": {
3339
"message": "Tło z galerii"
3440
},
35-
"widget_settings_field_backgroundUrl_label": {
41+
"widget_settings_background_field_backgroundUrl_label": {
3642
"message": "Tło z adresu URL"
3743
},
38-
"widget_settings_field_backgroundUrl_help": {
44+
"widget_settings_background_field_backgroundUrl_help": {
3945
"message": "Zdjęcie nie może mieć więcej niż 5MB"
4046
},
41-
"widget_settings_submit": {
42-
"message": "Zapisz ustawienia"
47+
"widget_settings_background_submit": {
48+
"message": "Zapisz tło"
4349
},
4450
"widget_bookmarks_title": {
4551
"message": "Widget zakładek"

css/common.css

+15-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/newtab.css

+12-5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
body {
2+
height: 100vh;
3+
overflow-y: hidden;
4+
}
15
.container {
26
width: 1100px;
37
margin: 0 auto;
@@ -28,7 +32,7 @@ ul {
2832
}
2933

3034
li {
31-
line-height: 1.5rem;
35+
line-height: 1.75rem;
3236
}
3337

3438
#bookmarks {
@@ -40,7 +44,7 @@ li {
4044
position: relative;
4145
width: 310px;
4246
background: #ffffff;
43-
border-radius: 2px;
47+
border-radius: .5rem;
4448
padding: 1rem;
4549
margin-bottom: 1rem;
4650
}
@@ -53,9 +57,12 @@ li {
5357
padding: 0;
5458
margin: 0;
5559
font-size: 1.2rem;
56-
color: #666666;
60+
color: #999999;
5761
font-weight: normal;
5862
}
63+
.card .header h2 i {
64+
font-size: 1rem;
65+
}
5966
.card .header .toolbar {
6067
font-size: 1rem;
6168
margin-left: auto;
@@ -85,8 +92,8 @@ body.dropdown .col:hover {
8592
right: 0;
8693
font-size: 1.5rem;
8794
background: #ffffff;
88-
padding: .5rem 1rem;
89-
border-bottom-left-radius: 2px;
95+
padding: 1rem 1rem;
96+
border-bottom-left-radius: .5rem;
9097
color: #666666;
9198
}
9299
#actions i {

css/options.css

+85-54
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
1-
.container {
2-
width: 100%;
3-
}
4-
.row {
5-
display: flex;
6-
flex-wrap: wrap;
7-
}
8-
.col {
9-
flex-grow: 1;
10-
flex-basis: 0;
11-
max-width: 100%;
12-
padding: .75rem;
1+
body {
2+
background: #efefef;
133
}
14-
154
a, a:active, a:link {
165
color: #444444;
176
text-decoration: none;
@@ -27,6 +16,24 @@ li {
2716
line-height: 1.5rem;
2817
}
2918

19+
.container {
20+
width: 100%;
21+
}
22+
.row {
23+
display: flex;
24+
flex-wrap: wrap;
25+
}
26+
.col {
27+
flex-grow: 1;
28+
flex-basis: 0;
29+
max-width: 100%;
30+
padding: 1rem;
31+
}
32+
33+
#settings .card {
34+
background: transparent;
35+
}
36+
3037
#bookmarks {
3138
display: flex;
3239
justify-content: center;
@@ -35,100 +42,124 @@ li {
3542
.card {
3643
float: none;
3744
flex-direction: column;
38-
background: #ffffff;
3945
padding: 0;
4046
margin-bottom: 1rem;
41-
border-radius: .25rem;
42-
box-shadow: 0 1px 3px 0 #d4d4d5, 0 0 0 1px #d4d4d5;
4347
}
4448
.card .header {
4549
font-size: 1.2rem;
46-
color: #666666;
50+
color: #999999;
4751
display: flex;
4852
padding: .5rem 1rem;
49-
border-bottom: 1px solid rgba(0,0,0,.05);
5053
}
5154
.card .header h2 {
5255
padding: 0;
5356
margin: 0;
54-
font-size: 1.2rem;
55-
color: #666666;
57+
font-size: 1rem;
5658
font-weight: normal;
5759
}
60+
.card .header h2 i {
61+
padding-right: .5rem;
62+
}
5863
.card .header .toolbar {
5964
margin-left: auto;
6065
}
6166
.card .body {
6267
flex-grow: 1;
63-
padding: .5rem 1rem;
68+
padding: 1rem;
69+
background: #ffffff;
70+
border-radius: .5rem;
71+
box-shadow: 0 1px 16px 0 #dfdfdf;
6472
}
65-
.card .footer {
73+
.card .body .footer {
6674
flex-grow: 1;
67-
border-top: 1px solid rgba(0,0,0,.05);
68-
padding: .5rem 1rem;
75+
padding-top: 2rem;
6976
}
7077

7178
.form {
7279

7380
}
74-
.form .field {
75-
clear: both;
81+
.form .control {
7682
padding-bottom: 1rem;
7783
}
78-
.form .field:last-child {
84+
.form .control:last-child {
7985
padding-bottom: 0;
8086
}
81-
.form .field > label {
82-
display: block;
83-
margin: 0 0 .28571429rem 0;
84-
color: rgba(0,0,0,.87);
85-
font-size: .92857143rem;
87+
.form .control .field {
88+
clear: both;
89+
display: flex;
90+
justify-content: space-between;
91+
flex-wrap: nowrap;
92+
93+
}
94+
.form .control .field > label {
95+
font-size: .8rem;
96+
color: #666666;
8697
font-weight: 700;
98+
flex-basis: auto;
99+
line-height: 2rem;
87100
}
88-
.form .field > input {
89-
width: 100%;
90-
display: block;
101+
.form .control .field > input {
102+
padding: 0 .5rem;
91103
height: 2rem;
92-
padding: 0 .25rem;
93104
box-shadow: none;
94105
border: 1px solid rgba(34,36,38,.15);
95-
border-radius: .25rem;
106+
border-radius: .5rem;
96107
line-height: 1rem;
97108
transition: box-shadow .1s ease, width .1s ease, -webkit-box-shadow .1s ease;
98109
}
99-
.form .field > select {
100-
width: 100%;
101-
display: block;
110+
.form .control .field > select {
102111
white-space: normal;
103112
cursor: pointer;
104113
height: 2rem;
105-
padding: 0 1rem;
106114
box-shadow: none;
107115
border: 1px solid rgba(34,36,38,.15);
108-
border-radius: .25rem;
116+
border-radius: .5rem;
109117
line-height: 1rem;
110118
transition: box-shadow .1s ease, width .1s ease, -webkit-box-shadow .1s ease;
111119
}
112-
.form .field span.help {
120+
.form .control span.help {
121+
display: block;
113122
font-size: .7rem;
114-
color: #666666;
123+
color: #999999;
124+
padding: .25rem 0 0 0;
115125
}
116-
.form .field .gallery {
117-
126+
.form .gallery {
127+
display: flex;
128+
flex-wrap: wrap;
129+
padding-bottom: 1rem;
118130
}
119-
.form .field .gallery img.image {
120-
height: 100px;
131+
.form .gallery .image {
121132
margin-right: .5rem;
122133
margin-bottom: .5rem;
134+
flex-direction: column;
135+
border-radius: .5rem;
136+
height: 100px;
137+
width: 160px;
138+
position: relative;
139+
background-repeat: no-repeat;
140+
background-size: contain;
141+
cursor: pointer;
123142
}
124-
.form .field .gallery img.image.selected {
125-
border: 2px solid #db2828;
126-
box-sizing: border-box;
127-
}
128-
129-
143+
.form .gallery .image.selected {
130144

145+
}
146+
.form .gallery .image.selected .check-icon {
147+
color: #ffffff;
148+
border-radius: 1rem;
149+
display: block;
150+
position: absolute;
151+
top: calc(50% - 1rem);
152+
left: calc(50% - 1rem);
153+
background: #e94e49;
154+
width: 2rem;
155+
height: 2rem;
156+
line-height: 2rem;
157+
text-align: center;
158+
font-size: 2rem;
159+
}
160+
.form .gallery .image.selected .check-icon .i {
131161

162+
}
132163

133164

134165

docs/images/icon.afdesign

-14.7 KB
Binary file not shown.

docs/images/preview1.jpg

-893 KB
Loading

docs/images/preview2.jpg

41.8 KB
Loading

images/background/1.jpg

-791 KB
Loading

images/background/2.jpg

396 KB
Loading

images/background/3.jpg

-111 KB
Loading

images/background/4.jpg

-822 KB
Loading

images/background/5.jpg

-1.46 MB
Loading

images/background/6.jpg

710 KB
Loading

images/background/7.jpg

305 KB
Loading

images/icon/icon128.png

-3.29 KB
Loading

images/icon/icon16.png

-111 Bytes
Loading

images/icon/icon48.png

-965 Bytes
Loading

0 commit comments

Comments
 (0)