Add my test project up to this point.
This commit is contained in:
8
pages/body_close.php
Normal file
8
pages/body_close.php
Normal file
@ -0,0 +1,8 @@
|
||||
#!/bin/php
|
||||
|
||||
<?php
|
||||
include "footer.php"
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
12
pages/body_open.php
Normal file
12
pages/body_open.php
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/php
|
||||
|
||||
<?php
|
||||
include "header.php"
|
||||
?>
|
||||
|
||||
<body>
|
||||
|
||||
<?php
|
||||
include "menu.php"
|
||||
?>
|
||||
|
3
pages/footer.php
Normal file
3
pages/footer.php
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/php
|
||||
<h6> Copyright $year </h6>
|
||||
|
1
pages/head.php
Normal file
1
pages/head.php
Normal file
@ -0,0 +1 @@
|
||||
DELETEME
|
7
pages/header.php
Normal file
7
pages/header.php
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/php
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
</head>
|
||||
|
17
pages/home.js
Executable file
17
pages/home.js
Executable file
@ -0,0 +1,17 @@
|
||||
/*
|
||||
2022-09-14 Return an example web page.
|
||||
|
||||
Maybe this should this be Node or PHP/BASH? Doing HTML in Node seems gross.
|
||||
*/
|
||||
|
||||
class Include {
|
||||
constructor () { }
|
||||
async load (request, response) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
include = new Include();
|
||||
|
||||
module.exports = include;
|
||||
|
14
pages/home.php
Executable file
14
pages/home.php
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/php
|
||||
|
||||
<?php
|
||||
include "body_open.php";
|
||||
?>
|
||||
|
||||
<h1> Welcome! </h1>
|
||||
|
||||
<p> This is a test. It can be ignored. :) </p>
|
||||
|
||||
<?php
|
||||
include "body_close.php";
|
||||
?>
|
||||
|
42
pages/main.css
Normal file
42
pages/main.css
Normal file
@ -0,0 +1,42 @@
|
||||
/* 2022-09-14 CSS for the website. */
|
||||
/* https://www.w3schools.com/Css/css_rwd_grid.asp */
|
||||
|
||||
/* Enable dynamic stuffs */
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Page Sections */
|
||||
.menu {
|
||||
width: 25%;
|
||||
float: left;
|
||||
}
|
||||
.main {
|
||||
width: 75%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-1 {width: 8.33%;}
|
||||
.col-2 {width: 16.66%;}
|
||||
.col-3 {width: 25%;}
|
||||
.col-4 {width: 33.33%;}
|
||||
.col-5 {width: 41.66%;}
|
||||
.col-6 {width: 50%;}
|
||||
.col-7 {width: 58.33%;}
|
||||
.col-8 {width: 66.66%;}
|
||||
.col-9 {width: 75%;}
|
||||
.col-10 {width: 83.33%;}
|
||||
.col-11 {width: 91.66%;}
|
||||
.col-12 {width: 100%;}
|
||||
|
||||
[class*="col-"] {
|
||||
float: left;
|
||||
padding: 15px;
|
||||
border: 1px solid red;
|
||||
}
|
||||
|
||||
.row::after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: table;
|
||||
}
|
5
pages/menu.php
Normal file
5
pages/menu.php
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/php
|
||||
|
||||
<ul>
|
||||
<li> <a href=""> Home </a> </li>
|
||||
</ul>
|
0
pages/notice.js
Executable file
0
pages/notice.js
Executable file
Reference in New Issue
Block a user