From f1dfe8a45bf4b4829484b48b83e1500a7785e460 Mon Sep 17 00:00:00 2001 From: Meisterlala <6453306+Meisterlala@users.noreply.github.com> Date: Wed, 18 Sep 2024 15:25:26 +0200 Subject: [PATCH] partial views --- .vscode/settings.json | 5 +- www/dynamic_web_app/about.php | 6 + www/dynamic_web_app/contact.php | 5 + www/dynamic_web_app/index.php | 5 + www/dynamic_web_app/views/about.view.php | 10 ++ www/dynamic_web_app/views/contact.view.php | 10 ++ www/dynamic_web_app/views/index.view.php | 10 ++ www/dynamic_web_app/views/partials/banner.php | 5 + www/dynamic_web_app/views/partials/footer.php | 4 + www/dynamic_web_app/views/partials/head.php | 13 +++ www/dynamic_web_app/views/partials/nav.php | 108 ++++++++++++++++++ www/{first => fundamentals}/index.php | 0 www/{first => fundamentals}/index.view.php | 0 www/index.html | 3 +- 14 files changed, 181 insertions(+), 3 deletions(-) create mode 100644 www/dynamic_web_app/about.php create mode 100644 www/dynamic_web_app/contact.php create mode 100644 www/dynamic_web_app/index.php create mode 100644 www/dynamic_web_app/views/about.view.php create mode 100644 www/dynamic_web_app/views/contact.view.php create mode 100644 www/dynamic_web_app/views/index.view.php create mode 100644 www/dynamic_web_app/views/partials/banner.php create mode 100644 www/dynamic_web_app/views/partials/footer.php create mode 100644 www/dynamic_web_app/views/partials/head.php create mode 100644 www/dynamic_web_app/views/partials/nav.php rename www/{first => fundamentals}/index.php (100%) rename www/{first => fundamentals}/index.view.php (100%) diff --git a/.vscode/settings.json b/.vscode/settings.json index 3d68ee3..d028091 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,5 @@ { - "livePreview.serverRoot": "www", - "liveServer.settings.NoBrowser": true + "liveServer.settings.NoBrowser": true, + "liveServer.settings.root": "www/", + "liveServer.settings.multiRootWorkspaceName": "www" } \ No newline at end of file diff --git a/www/dynamic_web_app/about.php b/www/dynamic_web_app/about.php new file mode 100644 index 0000000..7ab6670 --- /dev/null +++ b/www/dynamic_web_app/about.php @@ -0,0 +1,6 @@ + + + + +
+
+ About page +
+
+ \ No newline at end of file diff --git a/www/dynamic_web_app/views/contact.view.php b/www/dynamic_web_app/views/contact.view.php new file mode 100644 index 0000000..a3d107c --- /dev/null +++ b/www/dynamic_web_app/views/contact.view.php @@ -0,0 +1,10 @@ + + + + +
+
+ Contact page +
+
+ \ No newline at end of file diff --git a/www/dynamic_web_app/views/index.view.php b/www/dynamic_web_app/views/index.view.php new file mode 100644 index 0000000..d4dbc09 --- /dev/null +++ b/www/dynamic_web_app/views/index.view.php @@ -0,0 +1,10 @@ + + + + +
+
+ About page +
+
+ \ No newline at end of file diff --git a/www/dynamic_web_app/views/partials/banner.php b/www/dynamic_web_app/views/partials/banner.php new file mode 100644 index 0000000..e10b468 --- /dev/null +++ b/www/dynamic_web_app/views/partials/banner.php @@ -0,0 +1,5 @@ +
+
+

+
+
\ No newline at end of file diff --git a/www/dynamic_web_app/views/partials/footer.php b/www/dynamic_web_app/views/partials/footer.php new file mode 100644 index 0000000..cefcdb1 --- /dev/null +++ b/www/dynamic_web_app/views/partials/footer.php @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/www/dynamic_web_app/views/partials/head.php b/www/dynamic_web_app/views/partials/head.php new file mode 100644 index 0000000..9c7bab1 --- /dev/null +++ b/www/dynamic_web_app/views/partials/head.php @@ -0,0 +1,13 @@ + + + + + + + + <?= $heading?> + + + + +
\ No newline at end of file diff --git a/www/dynamic_web_app/views/partials/nav.php b/www/dynamic_web_app/views/partials/nav.php new file mode 100644 index 0000000..a2372c6 --- /dev/null +++ b/www/dynamic_web_app/views/partials/nav.php @@ -0,0 +1,108 @@ + \ No newline at end of file diff --git a/www/first/index.php b/www/fundamentals/index.php similarity index 100% rename from www/first/index.php rename to www/fundamentals/index.php diff --git a/www/first/index.view.php b/www/fundamentals/index.view.php similarity index 100% rename from www/first/index.view.php rename to www/fundamentals/index.view.php diff --git a/www/index.html b/www/index.html index adefe45..173a522 100644 --- a/www/index.html +++ b/www/index.html @@ -20,7 +20,8 @@

List of all sub sites:

-

First: Demo site with recommended books

+

Fundementals: Demo site with recommended books

+

Dynamic Web App: Demo site with recommended books

-- 2.51.2