aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2024-01-06 19:16:12 -0500
committerThedro Neely <thedroneely@gmail.com>2024-01-06 19:16:12 -0500
commit6d745f1e8c7b870524e01ee7a4886db38634e2ae (patch)
tree4d5964c37fb3d66ed07e5ac0fad46a54d76e979d /app
parent3c1a341d42994efd4addb942c623bff18b2d034c (diff)
downloadthedroneely.com-6d745f1e8c7b870524e01ee7a4886db38634e2ae.tar.gz
thedroneely.com-6d745f1e8c7b870524e01ee7a4886db38634e2ae.tar.bz2
thedroneely.com-6d745f1e8c7b870524e01ee7a4886db38634e2ae.zip
app/partials: Unify headers
Make easier to maintain. Use native upload and add htm.
Diffstat (limited to 'app')
-rw-r--r--app/views/index.view.php2
-rw-r--r--app/views/partials/footer.php2
-rw-r--r--app/views/partials/head.css.php (renamed from app/views/snippets/stylesheets.php)0
-rw-r--r--app/views/partials/head.discovery.php (renamed from app/views/snippets/rss.php)0
-rw-r--r--app/views/partials/head.js.php1
-rw-r--r--app/views/partials/head.manifests.php (renamed from app/views/snippets/favicons.php)0
-rw-r--r--app/views/partials/head.meta.php11
-rw-r--r--app/views/partials/header.error.php5
-rw-r--r--app/views/partials/header.php19
-rw-r--r--app/views/partials/header.posts.php7
-rw-r--r--app/views/partials/header.resume.php22
-rw-r--r--app/views/partials/header.upload.php18
-rw-r--r--app/views/resume.view.php26
-rw-r--r--app/views/upload.view.php23
14 files changed, 72 insertions, 64 deletions
diff --git a/app/views/index.view.php b/app/views/index.view.php
index 1331140..8bfa2c1 100644
--- a/app/views/index.view.php
+++ b/app/views/index.view.php
@@ -8,7 +8,7 @@
<home-page>
<article>
- <h1>Web <em>Developer </em></h1>
+ <h1>Web <em>Developer</em></h1>
<h2>In it for the long haul</h2>
diff --git a/app/views/partials/footer.php b/app/views/partials/footer.php
index 0a7b37b..fe9d9d3 100644
--- a/app/views/partials/footer.php
+++ b/app/views/partials/footer.php
@@ -35,5 +35,3 @@
</p>
</footer>
-
-<script src="/js/app.js"></script>
diff --git a/app/views/snippets/stylesheets.php b/app/views/partials/head.css.php
index 62b2ad9..62b2ad9 100644
--- a/app/views/snippets/stylesheets.php
+++ b/app/views/partials/head.css.php
diff --git a/app/views/snippets/rss.php b/app/views/partials/head.discovery.php
index a37df92..a37df92 100644
--- a/app/views/snippets/rss.php
+++ b/app/views/partials/head.discovery.php
diff --git a/app/views/partials/head.js.php b/app/views/partials/head.js.php
new file mode 100644
index 0000000..f1ccc3a
--- /dev/null
+++ b/app/views/partials/head.js.php
@@ -0,0 +1 @@
+<script src="/js/app.js"></script>
diff --git a/app/views/snippets/favicons.php b/app/views/partials/head.manifests.php
index f052ee5..f052ee5 100644
--- a/app/views/snippets/favicons.php
+++ b/app/views/partials/head.manifests.php
diff --git a/app/views/partials/head.meta.php b/app/views/partials/head.meta.php
new file mode 100644
index 0000000..9f92e77
--- /dev/null
+++ b/app/views/partials/head.meta.php
@@ -0,0 +1,11 @@
+<title>
+ <?php echo $title = $title ?? 'Portfolio - '; ?>
+ Thedro Neely
+</title>
+
+<meta charset="utf-8">
+<meta name="robots" content="index,follow">
+<meta name="author" content="Thedro Neely">
+<meta name="description" content="Thedro's Portfolio Website">
+<meta name="keywords" content="Thedro,Neely,Portfolio,Website">
+<meta name="viewport" content="width=device-width, initial-scale=1">
diff --git a/app/views/partials/header.error.php b/app/views/partials/header.error.php
deleted file mode 100644
index 5e11869..0000000
--- a/app/views/partials/header.error.php
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/bootstrap/Bootstrap.php'; ?>
-
-<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/header.php'; ?>
-
-<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/navigator.php'; ?>
diff --git a/app/views/partials/header.php b/app/views/partials/header.php
index e5439be..c52ca19 100644
--- a/app/views/partials/header.php
+++ b/app/views/partials/header.php
@@ -1,9 +1,15 @@
<!DOCTYPE html>
-<html lang="en-us" itemscope itemtype="http://schema.org/WebPage">
+<html
+ itemscope=""
+ itemtype="http://schema.org/WebPage"
+ lang="en-us"
+>
<head>
-<title><?php echo $title = $title ?? 'Portfolio - '; ?>Thedro Neely</title>
+<title>
+ <?php echo $title = $title ?? 'Portfolio - '; ?>Thedro Neely
+</title>
<meta charset="utf-8">
<meta name="robots" content="index,follow">
@@ -12,10 +18,9 @@
<meta name="keywords" content="Thedro,Neely,Portfolio,Website">
<meta name="viewport" content="width=device-width, initial-scale=1">
-<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/rss.php'; ?>
-
-<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/favicons.php'; ?>
-
-<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/stylesheets.php'; ?>
+<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.discovery.php'; ?>
+<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.manifests.php'; ?>
+<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.css.php'; ?>
+<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.js.php'; ?>
</head>
diff --git a/app/views/partials/header.posts.php b/app/views/partials/header.posts.php
index d98d3c4..a473e24 100644
--- a/app/views/partials/header.posts.php
+++ b/app/views/partials/header.posts.php
@@ -1,6 +1,7 @@
<?php
require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/bootstrap/Bootstrap.php';
-require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/rss.php';
-require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/favicons.php';
-require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/stylesheets.php';
+require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.discovery.php';
+require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.manifests.php';
+require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.css.php';
+require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.js.php';
diff --git a/app/views/partials/header.resume.php b/app/views/partials/header.resume.php
new file mode 100644
index 0000000..92c3a41
--- /dev/null
+++ b/app/views/partials/header.resume.php
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html
+ data-page="resume"
+ lang="en-us"
+>
+
+<head>
+
+<title>Resume - Thedro Neely</title>
+
+<meta charset="utf-8">
+<meta name="description" content="Thedro's Web Development Resume">
+<meta name="keywords" content="Thedro,Neely,Portfolio,Website,Resume">
+<meta name="author" content="Thedro Neely">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<meta name="robots" content="index,follow">
+
+<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.discovery.php'; ?>
+<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.manifests.php'; ?>
+<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.css.php'; ?>
+
+</head>
diff --git a/app/views/partials/header.upload.php b/app/views/partials/header.upload.php
new file mode 100644
index 0000000..3710280
--- /dev/null
+++ b/app/views/partials/header.upload.php
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html
+ lang="en-us"
+ itemscope=""
+ itemtype="http://schema.org/WebPage"
+>
+
+<head>
+
+<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.meta.php'; ?>
+<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.discovery.php'; ?>
+<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.manifests.php'; ?>
+<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.css.php'; ?>
+<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.js.php'; ?>
+
+<script type="module" src="/js/upload.js"></script>
+
+</head>
diff --git a/app/views/resume.view.php b/app/views/resume.view.php
index dd3d3e8..ede40eb 100644
--- a/app/views/resume.view.php
+++ b/app/views/resume.view.php
@@ -1,28 +1,6 @@
-<!DOCTYPE html>
-<html lang="en-us" style="scrollbar-width: none;">
+<?php require __DIR__ . '/partials/header.resume.php'; ?>
-<head>
-
- <title>Resume - Thedro Neely</title>
-
- <meta charset="utf-8">
- <meta name="description" content="Thedro's Web Development Resume">
- <meta name="keywords" content="Thedro,Neely,Portfolio,Website,Resume">
- <meta name="author" content="Thedro Neely">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="robots" content="index,follow">
-
- <style>html::-webkit-scrollbar { height: 0; width: 0; }</style>
-
- <?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/rss.php'; ?>
-
- <?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/favicons.php'; ?>
-
- <?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/stylesheets.php'; ?>
-
-</head>
-
- <body data-resume>
+ <body data-page="resume">
<resume-page>
diff --git a/app/views/upload.view.php b/app/views/upload.view.php
index f504d5b..d4f913f 100644
--- a/app/views/upload.view.php
+++ b/app/views/upload.view.php
@@ -1,32 +1,11 @@
<?php $title = 'Upload Files - ' ?>
-<?php require __DIR__ . '/partials/header.php';?>
+<?php require __DIR__ . '/partials/header.upload.php';?>
<body>
<?php require __DIR__ . '/partials/navigator.php';?>
- <main>
- <article>
- <upload-page>
- <h1>Upload Files</h1>
- <div id="file-upload-area"></div>
- </upload-page>
- </article>
- </main>
-
- <link href="/css/uppy.min.css" rel="stylesheet">
-
- <script src="/js/uppy.min.js"></script>
-
- <script>
- var uppy = Uppy.Core()
- .use(Uppy.Url, { companionUrl: 'https://www.thedroneely.com/' })
- .use(Uppy.Webcam, {})
- .use(Uppy.Dashboard, { inline: true, target: '#file-upload-area', plugins: ['Url', 'Webcam'] })
- .use(Uppy.XHRUpload, {endpoint: '/upload/', formdata: true, fieldName: 'upload' })
- </script>
-
<?php require __DIR__ . '/partials/footer.php';?>
</body>