Skip to content

Commit 3b81662

Browse files
committed
Add (fav)icon and heading style
1 parent d7b7092 commit 3b81662

18 files changed

+106
-18
lines changed

docs/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Installation
1818
------------
1919

2020
### Docker (PHP built-in server)
21-
1. Run `docker run -p 5000:5000 samueltallet/mongodb-php-gui`.<br>
21+
1. Execute `docker run --rm -p 5000:5000 samueltallet/mongodb-php-gui`<br>
2222
2. Open your browser at this address: http://127.0.0.1:5000/ to access GUI.<br>
2323
3. If your MongoDB is running on localhost, use 172.17.0.1 as host to login.
2424

@@ -31,11 +31,10 @@ Installation
3131
6. Optionnaly, if you want to query DB with SQL, you must have [Java JDK](https://jdk.java.net/) installed.
3232
7. Open your browser at Apache server URL to access GUI.
3333

34-
Thanks
35-
------
34+
Credits
35+
-------
3636

37-
❤️ Thanks to [Limber](https://github.com/nimbly/Limber), [Capsule](https://github.com/nimbly/Capsule), [Font Awesome](https://fontawesome.com/), [Bootstrap](https://getbootstrap.com/), [CodeMirror](https://github.com/codemirror/codemirror) and [JsonView](https://github.com/pgrabovets/json-view).<br>
38-
Thanks also to [MongoDB PHP library](https://github.com/mongodb/mongo-php-library), [vis.js](https://github.com/visjs) and [SQL to MongoDB Query Converter](https://github.com/vincentrussell/sql-to-mongo-db-query-converter). ❤️
37+
This GUI uses [Limber](https://github.com/nimbly/Limber), [Capsule](https://github.com/nimbly/Capsule), [Font Awesome](https://fontawesome.com/), [Bootstrap](https://getbootstrap.com/), [CodeMirror](https://github.com/codemirror/codemirror), [JsonView](https://github.com/pgrabovets/json-view), [MongoDB PHP library](https://github.com/mongodb/mongo-php-library), [vis.js](https://github.com/visjs) and [SQL to MongoDB Query Converter](https://github.com/vincentrussell/sql-to-mongo-db-query-converter). Leaf icon was made by [Freepik](https://www.freepik.com) from [Flaticon](https://www.flaticon.com).
3938

4039
Copyright
4140
---------

index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
*
1919
* @var string
2020
*/
21-
define('MPG_APP_VERSION', '1.1.4');
21+
define('MPG_APP_VERSION', '1.1.5');
2222

2323
/**
2424
* Development mode?
2525
*
26-
* @var string
26+
* @var boolean
2727
*/
2828
define('MPG_DEV_MODE', false);
2929

@@ -69,7 +69,7 @@
6969
* Base URL. XXX Without trailing slash.
7070
*
7171
* @var string
72-
* @example http://127.0.0.1:5000/mongo
72+
* @example //127.0.0.1:5000/mongo
7373
*/
7474
define('MPG_BASE_URL', $baseUrl);
7575

static/css/mpg.css

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
:root {
2+
3+
--mpg-color-light: #7bcc29;
4+
--mpg-color-regular: #6eb825;
5+
--mpg-color-dark: #5dad1d;
6+
7+
}
8+
9+
body {
10+
11+
font-family: Arial, sans-serif;
12+
13+
}
14+
115
.navbar {
216

317
margin-bottom: 10px;
@@ -24,9 +38,15 @@
2438

2539
}
2640

27-
.bg-mongodb {
41+
.bg-dark {
2842

29-
background-color: #13aa52;
43+
background-color: var(--mpg-color-dark) !important;
44+
45+
}
46+
47+
.navbar-brand {
48+
49+
font-family: Ubuntu, ubuntu-medium;
3050

3151
}
3252

@@ -38,6 +58,8 @@
3858

3959
padding: 5px;
4060

61+
color: white !important;
62+
4163
}
4264

4365
.navbar.menu-expanded .navbar-brand {
@@ -85,6 +107,14 @@
85107

86108
}
87109

110+
@media screen and (min-width: 768px) and (max-width: 1199px) {
111+
112+
.navbar-brand-icon {
113+
display: none;
114+
}
115+
116+
}
117+
88118
#menu-toggle-button {
89119

90120
border: none;
@@ -239,6 +269,20 @@ button, input {
239269

240270
}
241271

272+
.btn-success {
273+
274+
background-color: var(--mpg-color-regular);
275+
border-color: var(--mpg-color-regular);
276+
277+
}
278+
279+
.btn-success:hover, .btn-success:focus {
280+
281+
background-color: var(--mpg-color-dark);
282+
border-color: var(--mpg-color-dark);
283+
284+
}
285+
242286
#mpg-output-column, #mpg-indexes-column {
243287

244288
margin-top: 15px;

static/css/mpg.login.css

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/**
32
* @see https://teamtreehouse.com/community/shake-effect-with-javascript-only
43
*/
@@ -22,7 +21,7 @@
2221
}
2322

2423
.apply-shake {
25-
animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
24+
animation: shake 0.82s cubic-bezier(.36, .07, .19, .97) both;
2625
}
2726

2827
/**
@@ -41,6 +40,12 @@ html, body {
4140

4241
}
4342

43+
body {
44+
45+
font-family: Arial, sans-serif;
46+
47+
}
48+
4449
.alert {
4550

4651
max-width: 290px;
@@ -57,12 +62,17 @@ html, body {
5762

5863
}
5964

65+
.card-header-name {
66+
67+
font-family: Ubuntu, ubuntu-medium;
68+
69+
}
6070

61-
.input-group-prepend span {
71+
.input-group-text {
6272

6373
width: 40px;
6474

65-
background-color: #13aa52;
75+
background-color: #5dad1d;
6676
color: white;
6777

6878
border: 0 !important;

static/css/ubuntu-font.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@font-face {
2+
3+
font-family: 'ubuntu-medium';
4+
src: url('../fonts/ubuntu-medium-webfont.woff2') format('woff2'),
5+
url('../fonts/ubuntu-medium-webfont.woff') format('woff');
6+
font-weight: normal;
7+
font-style: normal;
8+
9+
}

static/fonts/Ubuntu-Medium.ttf

278 KB
Binary file not shown.
35.9 KB
Binary file not shown.
27.9 KB
Binary file not shown.

static/images/alt-leaf-icon.svg

Lines changed: 1 addition & 0 deletions
Loading

static/images/favicon-32x32.png

1.37 KB
Loading

0 commit comments

Comments
 (0)