]> git.bochard.net Git - mysite.git/commitdiff
built a few layout for the index.php
authorbochard <git@bochard.net>
Sun, 2 Nov 2025 05:09:44 +0000 (13:09 +0800)
committerbochard <git@bochard.net>
Sun, 2 Nov 2025 05:09:44 +0000 (13:09 +0800)
about-me.php
guestbook.php
how-to/index.php
index.php
parts/head.php
parts/rightbox.php [deleted file]
parts/scribbles.php [deleted file]
photo-album/index.php
scripts/root.js [new file with mode: 0644]
stylesheets/root.css

index 032b4ed9dc2e77dce39e89c9a368055b5bbff77c..8b137891791fe96927ad78e64b0aad7bded08bdc 100755 (executable)
@@ -1,33 +1 @@
-<?php
-  require_once("{$_SERVER['DOCUMENT_ROOT']}/parts/head.php");
-  $pgtitle = "About me";
-  $pgdescription = "Who and what am I?";
-  head($pgtitle, $pgdescription);
-?>
-<body>    
-  <table id="tablewrapper" cellspacing="10">
-               <tbody>
-                       <tr>
-                               <td id="content">
-                                       <table>
-                                               <tbody>
-                                                       <tr>
-                                                               <?php include_once("$parts/sidebar.php");?>
 
-                                                               <td id="body">
-                                                                       <?php include_once("$parts/underconstruction.php");?>
-                                                               </td>
-                                                       </tr>
-                                                       
-                                                       <?php include_once("$parts/footer.php");?>
-                                               </tbody>
-                                       </table>
-                               </td>
-                               <td id="rightbox">
-                                       <?php include_once("$parts/rightbox.php");?>
-                               </td>
-                       </tr>
-               </tbody>
-  </table>
-</body>
-</html>
index 5957ae50adfdb4d84cc9e3404aec91cc646ba77f..8b137891791fe96927ad78e64b0aad7bded08bdc 100755 (executable)
@@ -1,34 +1 @@
-<?php
-  require_once("{$_SERVER['DOCUMENT_ROOT']}/parts/head.php");
-  $pgtitle = "My site's guestbook";
-  $pgdescription = "please fill the guestbook before you leave the site.";
-  $pgcss = ["guestbook.css"];
-  head($pgtitle, $pgdescription, $pgcss);
-?>
-<body>    
-  <table id="tablewrapper" cellspacing="10">
-               <tbody>
-                       <tr>
-                               <td id="content">
-                                       <table>
-                                               <tbody>
-                                                       <tr>
-                                                               <?php include_once("$parts/sidebar.php");?>
-                                                               
-                                                               <td id="body">
-                                                                       <iframe src="https://bochard.atabook.org"></iframe>
-                                                               </td>
-                                                       </tr>
-                                                       
-                                                       <?php include_once("$parts/footer.php");?>
-                                               </tbody>
-                                       </table>
-                               </td>
-                               <td id="rightbox">
-                                       <?php include_once("$parts/rightbox.php");?>
-                               </td>
-                       </tr>
-               </tbody>
-  </table>
-</body>
-</html>
+
index 2c9746b6e10efbd52a15eeec66d3285d6064511a..8b137891791fe96927ad78e64b0aad7bded08bdc 100755 (executable)
@@ -1,33 +1 @@
-<?php
-  require_once("{$_SERVER['DOCUMENT_ROOT']}/parts/head.php");
-  $pgtitle = "How To...";
-  $pgdescription = "some tutorials made by me.";
-  head($pgtitle, $pgdescription);
-?>
-<body>    
-  <table id="tablewrapper" cellspacing="10">
-               <tbody>
-                       <tr>
-                               <td id="content">
-                                       <table>
-                                               <tbody>
-                                                       <tr>
-                                                               <?php include_once("$parts/sidebar.php");?>
-                                                               
-                                                               <td id="body">
-                                                                       <?php include_once("$parts/underconstruction.php");?>
-                                                               </td>
-                                                       </tr>
-                                                       
-                                                       <?php include_once("$parts/footer.php");?>
-                                               </tbody>
-                                       </table>
-                               </td>
-                               <td id="rightbox">
-                                       <?php include_once("$parts/rightbox.php");?>
-                               </td>
-                       </tr>
-               </tbody>
-  </table>
-</body>
-</html>
+
index bdae313c1c6cc072e7df8ceb97b6e2593e3a9336..4f52dfd508f57998c40112d0f4ebe5b689603c98 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -1,42 +1,29 @@
 <?php\r
-  require_once("{$_SERVER['DOCUMENT_ROOT']}/parts/head.php");\r
-  $pgtitle = "My net home";\r
-  $pgdescription = "Welcome to my site!";\r
-  head($pgtitle, $pgdescription);\r
+       require_once("{$_SERVER['DOCUMENT_ROOT']}/parts/head.php");\r
+       $pgtitle = "bochard's net home";\r
+       head($pgtitle);\r
 ?>\r
-<body>    \r
-       <table id="tablewrapper" cellspacing="10">\r
-               <tbody>\r
-                       <tr>\r
-                               <td id="content">\r
-                                       <table>\r
-                                               <tbody>\r
-                                                       <tr>\r
-                                                               <?php include_once("$parts/sidebar.php");?>\r
-                                                               \r
-                                                               <td id="body">\r
-                                                                       <img src="/images/gifs/bulblights.gif" alt="bulb lights" width="100%">\r
-                                                                       <h1>Welcome to my net home!</h1>\r
-                                                                       <blockquote>“...At the right time, I, the Lord, will make it happen”</blockquote>\r
-                                                                       <p align="right">–Isaiah 60:22 &lpar;NLT&rpar;</p>\r
-                                                                       <p>This small site is solely used for personal purpose. I publish here my personal thoughts about every day, photos I took from my own camera, recipes &lpar;soon&rpar;, programming, books I love to read, and many other things that I utmost enjoy doing in my tiny simple life. Sometimes—completely random things.</p>\r
-                                                                       <p>All things in here are created by me &lpar;some images are not mine though hahaha&rpar;, but you can freely copy and use them on your site too, just don't <a href="https://simple.wikipedia.org/wiki/Hotlinking">hotlink</a>.</p>\r
-                                                                       <p>If you ever seen that there are empty contents, it could be that because you are using an adblocker. If you will, please disable your adblocker for the meantime. Some certain things vanishes like the third-party visitor counter on the sidebar &lpar;will create my own visitor counter soon&rpar;. I would remove those things that rely on third-party websites that has trackers soon, but I'll still use them for now. Thank you!</p>\r
-                                                                       <img src="/images/gifs/chicken-ani.gif" alt="chicken" title="chikin">\r
-                                                                       <p>If ur wondering what is this chicken for...well yeah, I don't know either. It's just freaking cool.</p>\r
-                                                                       <p>Don't  forget to <em>Sign the <a href="/guestbook.php">guestbook</a></em> before you leave :&rpar;</p>\r
-                                                               </td>\r
-                                                       </tr>\r
-                                                       \r
-                                                       <?php include_once("$parts/footer.php");?>\r
-                                               </tbody>\r
-                                       </table>\r
-                               </td>\r
-                               <td id="rightbox">\r
-                                       <?php include_once("$parts/rightbox.php");?>\r
-                               </td>\r
-                       </tr>\r
-               </tbody>\r
-  </table>\r
+<body>\r
+       <center>\r
+               <table id="theholderofthings" cellspacing="0" cellpadding="0">\r
+                       <tbody>\r
+                               <tr>\r
+                                       <td valign="top" id="maintable" cellpadding="5" width="600">\r
+                                               <table width="600" cellpadding="3">\r
+                                                       <tbody>\r
+                                                               <tr>\r
+                                                                       <td colspan="2">\r
+                                                                               <center>\r
+                                                                                       <h1>welcome to bochard's net home!</h1>\r
+                                                                               </center>\r
+                                                                       </td>\r
+                                                               </tr>   \r
+                                                       </tbody>\r
+                                               </table>\r
+                                       </td>\r
+                               </tr>\r
+                       </tbody>\r
+               </table>\r
+       </center>\r
 </body>\r
 </html>\r
index acd87e1828ac2d39dd19311f8b3d593e3e54ccc2..534b78f6c3619f1d1d983fd9240ec2c49e9d2951 100755 (executable)
@@ -1,7 +1,7 @@
 <?php
 $parts = "{$_SERVER['DOCUMENT_ROOT']}/parts";
-function head($pgtitle, $pgdescription = null, $pgcss = []){?>
-  <!DOCTYPE html>
+function head($pgtitle, $pgdescription = null, $pgcss = [], $pgjs = []){?>
+  <!doctype html>
   <html lang="en">
   <head>
       <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
@@ -20,5 +20,10 @@ function head($pgtitle, $pgdescription = null, $pgcss = []){?>
     <?php foreach($pgcss as $filename):?>
       <link rel="stylesheet" href="<?= htmlspecialchars("/stylesheets/$filename?v="), filemtime("{$_SERVER['DOCUMENT_ROOT']}/stylesheets/$filename");?>">
     <?php endforeach;?>
+    
+    <script type="text/javascript" src="/scripts/root.js?v=<?= filemtime("{$_SERVER['DOCUMENT_ROOT']}/scripts/root.js");?>">
+    <?php foreach($pgjs as $filename):?>
+      <script type="text/javascript" src="<?= htmlspecialchars("/scripts/$filename?v="), filemtime("{$_SERVER['DOCUMENT_ROOT']}/scripts/$filename");?>">
+    <?php endforeach;?>
   </head>
 <?php }
diff --git a/parts/rightbox.php b/parts/rightbox.php
deleted file mode 100755 (executable)
index ad0cd13..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<table>
-       <tbody>
-               <tr>
-                       <td>
-                               <strong>Tutorials</strong>
-                               <ul>  
-                                       <li><a href="/how-to" title="I haven't though of anything to teach yet. If you have suggestions, consider sending an email.">Nothing yet...</a></li>
-                               </ul>
-                               <hr>
-                               <strong>New Photos!</strong>
-                               <ul>  
-                                       <li><a href="/photo-album" title="pix">Nothing yet...</a></li>
-                               </ul>
-                       </td>
-               </tr>
-       </tbody>
-</table>
diff --git a/parts/scribbles.php b/parts/scribbles.php
deleted file mode 100755 (executable)
index 7f8c5bd..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-  // $journals = glob("{$_SERVER['DOCUMENT_ROOT']}/journal/*");
-
-  // foreach($journals as $journal){
-  //   $strippedURL = strstr($journal, 'journal/');
-  //   $fileName = pathinfo($journal, PATHINFO_FILENAME);
-  //   echo "<li><a href=\"http://www.bochard.net/{$strippedURL}\">$fileName</a></li>\n";
-  // }
-?>
index 431e0c706e1bc9caa6a991913b2bec9d3a682ff8..8b137891791fe96927ad78e64b0aad7bded08bdc 100755 (executable)
@@ -1,33 +1 @@
-<?php
-  require_once("{$_SERVER['DOCUMENT_ROOT']}/parts/head.php");
-  $pgtitle = "My Photo Album";
-  $pgdescription = "collection of snaps taken from my camera of various things I see in my life.";
-  head($pgtitle, $pgdescription);
-?>
-<body>    
-  <table id="tablewrapper" cellspacing="10">
-               <tbody>
-                       <tr>
-                               <td id="content">
-                                       <table>
-                                               <tbody>
-                                                       <tr>
-                                                               <?php include_once("$parts/sidebar.php");?>
 
-                                                               <td id="body">
-                                                                       <?php include_once("$parts/underconstruction.php");?>
-                                                               </td>
-                                                       </tr>
-                                                       
-                                                       <?php include_once("$parts/footer.php");?>
-                                               </tbody>
-                                       </table>
-                               </td>
-                               <td id="rightbox">
-                                       <?php include_once("$parts/rightbox.php");?>
-                               </td>
-                       </tr>
-               </tbody>
-  </table>
-</body>
-</html>
diff --git a/scripts/root.js b/scripts/root.js
new file mode 100644 (file)
index 0000000..e69de29
index 8b137891791fe96927ad78e64b0aad7bded08bdc..0d64216267d76b50a3925885bbaa7a422f31b0e0 100755 (executable)
@@ -1 +1,7 @@
-
+* {
+       font-family: Monospace;
+}
+body {
+       background-image: url('/images/backgrounds/clouds.gif');
+       background-repeat: repeat;
+}