Add New Note page, for the A E S T H E T I C

This commit is contained in:
Skylar Ittner 2018-11-25 19:15:00 -07:00
parent 8eb196df36
commit 0b64eb555f
4 changed files with 25 additions and 2 deletions

View File

@ -1,4 +1,5 @@
{ {
"home": "Home", "home": "Home",
"Notes": "Notes" "Notes": "Notes",
"New Note": "New Note"
} }

View File

@ -31,5 +31,18 @@ define("PAGES", [
"static/easy-markdown-editor/dist/easymde.min.js", "static/easy-markdown-editor/dist/easymde.min.js",
"static/js/editnote.js" "static/js/editnote.js"
] ]
],
"newnote" => [
"title" => "New Note",
"navbar" => false,
"icon" => "fas fa-plus",
"styles" => [
"static/easy-markdown-editor/dist/easymde.min.css",
"static/css/editnote.css"
],
"scripts" => [
"static/easy-markdown-editor/dist/easymde.min.js",
"static/js/editnote.js"
]
] ]
]); ]);

View File

@ -60,7 +60,7 @@ foreach ($colors as $c) {
</style> </style>
<div class="btn-group mb-4"> <div class="btn-group mb-4">
<a href="app.php?page=editnote" class="btn btn-success"><i class="fas fa-plus"></i> <?php $Strings->get("New note"); ?></a> <a href="app.php?page=newnote" class="btn btn-success"><i class="fas fa-plus"></i> <?php $Strings->get("New note"); ?></a>
</div> </div>
<div class="row" id="grid"> <div class="row" id="grid">

9
pages/newnote.php Normal file
View File

@ -0,0 +1,9 @@
<?php
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
require_once __DIR__ . "/editnote.php";