Jelajahi Sumber

first commit

Elliot Huxley 1 Minggu lalu
melakukan
3f0c6476f1
44 mengubah file dengan 930 tambahan dan 0 penghapusan
  1. 47 0
      Article1.html
  2. 46 0
      Article2.html
  3. 418 0
      CSS.css
  4. 21 0
      Footer.html
  5. 38 0
      Header.html
  6. 30 0
      Main.html
  7. 20 0
      Poopynuggets.js
  8. 0 0
      README.md
  9. TEMPAT SAMPAH
      favicon.ico
  10. TEMPAT SAMPAH
      images/Brownie.jpg
  11. TEMPAT SAMPAH
      images/Cookie.jpg
  12. TEMPAT SAMPAH
      images/Elliot.jpg
  13. TEMPAT SAMPAH
      images/Ewan.jpg
  14. TEMPAT SAMPAH
      images/James.jpg
  15. TEMPAT SAMPAH
      images/Logo.png
  16. TEMPAT SAMPAH
      images/Placeholder.jpg
  17. TEMPAT SAMPAH
      images/Sage.jpg
  18. TEMPAT SAMPAH
      images/Sevent1.JPG
  19. TEMPAT SAMPAH
      images/Sevent2.JPG
  20. TEMPAT SAMPAH
      images/Sevent3.JPG
  21. TEMPAT SAMPAH
      images/Sevent4.JPG
  22. TEMPAT SAMPAH
      images/Smoothie1.jpg
  23. TEMPAT SAMPAH
      images/Smoothie2.jpg
  24. TEMPAT SAMPAH
      images/Smoothie3.jpg
  25. TEMPAT SAMPAH
      images/Smoothie4.jpg
  26. TEMPAT SAMPAH
      images/Timo.jpg
  27. TEMPAT SAMPAH
      images/Toastie.jpg
  28. TEMPAT SAMPAH
      images/Uevent1.jpg
  29. TEMPAT SAMPAH
      images/Uevent2.jpg
  30. TEMPAT SAMPAH
      images/Uevent3.jpg
  31. TEMPAT SAMPAH
      images/Uevent4.jpg
  32. TEMPAT SAMPAH
      images/event1.jpg
  33. TEMPAT SAMPAH
      images/event2.jpg
  34. TEMPAT SAMPAH
      images/event3.jpg
  35. TEMPAT SAMPAH
      images/event4.jpg
  36. 3 0
      images/rdmLink.svg
  37. 24 0
      index.php
  38. 61 0
      pages/about.html
  39. 14 0
      pages/about.php
  40. 27 0
      pages/contact.html
  41. 58 0
      pages/contact.php
  42. 21 0
      pages/placeholder.html
  43. 90 0
      pages/services.html
  44. 12 0
      pages/services.php

+ 47 - 0
Article1.html

@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+<!--
+Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this template
+-->
+<html class="loaded">
+<head>
+        <link rel="stylesheet" href="CSS.css">
+        <meta charset="UTF-8">
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+        <title>Ristorante Di Montessori | Real Food for Real Minds</title>
+        <link rel="icon" href="favicon.ico" type="image/x-icon">
+</head>
+    
+    <section class="article-section">
+        <header class="article-header">
+            <p class="article-title">Week 3 Smoothie off!</p>
+            <div class="article-info">
+                <p>Author: Elliot Huxley</p>
+                <p>Date: 27th of October, 2026</p>
+            </div>
+        </header>
+        <div class="article-content">
+            <img src="images/Sevent4.JPG" class="article-image" alt="Smoothieoff">
+            <p>Today we had a smoothie off!</p>
+            <p>Our chefs put their culinary skills to the test in a competition, aiming to see who can create the best smoothie possible. </p>
+            <p>Thank you to our chefs for putting their culinary skills to the test in today's smoothie competition.</p>
+            <img src="images/Sevent1.JPG" class="article-image" alt="event1">
+            <img src="images/Sevent2.JPG" class="article-image" alt="event2">
+            <img src="images/Sevent3.JPG" class="article-image" alt="event3">
+        </div>
+            <div class="related-articles">
+                <h3>Other articles</h3>
+                <ul>
+        <li><a href="index.php?articleNo=2">Week 6 Trial Run!</a></li>
+       <!-- <li><a href="Article3.html">Article 2</a></li> -->
+                </ul>
+            </div>
+       
+    </section>
+
+    
+
+        
+           
+    
+</html> 

+ 46 - 0
Article2.html

@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<!--
+Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this template
+-->
+<html class="loaded">
+<head>
+        <link rel="stylesheet" href="CSS.css">
+        <meta charset="UTF-8">
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+        <title>Ristorante Di Montessori | Real Food for Real Minds</title>
+        <link rel="icon" href="favicon.ico" type="image/x-icon">
+</head>
+    <section class="article-section">
+        <header class="article-header">
+            <p class="article-title">Week 6 Trial Run!</p>
+            <div class="article-info">
+                <p>Author: Elliot Huxley</p>
+                <p>Date: 25th of August, 2026</p>
+            </div>
+        </header>
+        <div class="article-content">
+            <img src="images/event2.jpg" class="article-image" alt="event2">
+            <p>Today we had our first trial run for our restaurant!</p>
+            <p>The Ristorante Di Montessori team met up to do trial runs on our restaurant, learning about how to run it and finding out what could be improved. </p>
+            <p>I can gladly say that we will be ready when we open soon.</p>
+            <img src="images/event1.jpg" class="article-image" alt="event1">
+            <img src="images/event3.jpg" class="article-image" alt="event3">
+            <img src="images/event4.jpg" class="article-image" alt="event4">
+        </div>
+            <div class="related-articles">
+                <h3>Other articles</h3>
+                <ul>
+        <li><a href="index.php?articleNo=1">Week 3 Smoothie off!</a></li>
+       <!-- <li><a href="Article3.html">Article 2</a></li> -->
+                </ul>
+            </div>
+       
+    </section>
+
+    
+
+        
+           
+    
+</html> 

+ 418 - 0
CSS.css

@@ -0,0 +1,418 @@
+/*
+Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+Click nbfs://nbhost/SystemFileSystem/Templates/Other/CascadeStyleSheet.css to edit this template
+*/
+/* 
+    Created on : 20 Sept 2024, 2:21:11 pm
+    Author     : elliot
+*/
+
+p {
+            font-size: 70%;
+            color: black;
+        }
+
+body {
+    background-color: #d4d4d4;
+    margin: 0;
+    text-align: center;
+    font-size: 40px;
+    font-family: Verdana, Helvetica;
+}
+
+.ad-poster img {
+    min-width: 300px;
+    max-width: 400px;
+    height: auto;
+    border-radius: 10px;
+    justify-content: center;
+    display: flex;
+    margin-left: 725px;
+    flex-direction: row;
+}
+.ad-poster p {
+    justify-content: center;
+    display: flex;
+    margin-left: 725px;
+    flex-direction: row;
+}
+html {
+    visibility: hidden;
+    opacity: 0;
+    transition: visibility 3s ease, opacity 3s ease;
+}
+
+html.loaded {
+    visibility: visible;
+    opacity: 1;
+}
+
+.fading-text {
+    font-size: 24px;
+    opacity: 0;
+    transition: opacity 1s ease-in-out;
+}
+
+.header {
+    justify-content: space-between;
+    align-items: center;
+    text-align: center;
+    text-transform: uppercase;
+    padding: 32px;
+    background-color: #065c65;
+    color: #fff;
+    border-bottom: 5px solid #434cf0;
+    display: flex;
+    flex-direction: row; /* Change this line */
+}
+
+.header h1 {
+    position: relative;
+    top: 0;
+    left: 0;
+}
+
+.header h2 {
+    color: #FFD700;
+    font-size: 120%;
+}
+
+.header a {
+    color: white;
+    text-decoration: none;
+    margin: 10px 0;
+    padding: 20px 20px;
+    border-radius: 25px;
+    transition: background-color 0.3s ease;
+    z-index: 1;
+}
+
+.header a:hover {
+    background-color: #054a51;
+}
+
+.biography {
+    display: flex;
+    flex-direction: column;
+    justify-content: flex-start; /* This ensures that the child elements are aligned to the left */
+    padding: 20px;
+    font-size: 75%;
+    text-align: left;
+}
+
+.biography h2 {
+    text-align: left; /* This ensures that the text within the <h2> element is left-aligned */
+}
+.biography p {
+    text-align: left; /* This ensures that the text within the <p> elements is left-aligned */
+    
+}
+
+.my-border {
+    border: 5px solid black;
+  }
+ img:hover {
+    transform: scale(1.15); /* increase size by 20% */
+    transition: transform 0.3s ease; /* smooth transition */
+        }
+.biography img {
+    min-width: 300px;
+    max-width: 400px;
+    height: auto;
+    border-radius: 10px;
+    margin-left: 20px;
+    display: flex;
+    flex-direction: row;
+}
+
+
+.link {
+    color: black;
+    text-align: center;
+    font-size: 75%;
+}
+
+.image-container {
+    display: flex;
+    gap: 10px;
+    padding: 20px;
+}
+
+
+.article-section {
+    width: 80%;
+    margin: 20px auto;
+    background-color: #fff;
+    padding: 20px;
+    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
+}
+
+.article-header {
+    display: flex;
+    justify-content: space-between;
+    align-items: center;
+    margin-bottom: 20px;
+}
+
+.article-title {
+    font-size: 44px;
+    color: #333;
+}
+
+.article-info {
+    color: #667;
+}
+
+.article-content {
+    margin-bottom: 20px;
+}
+
+.article-image {
+    height: auto;
+    width: auto;
+    margin-bottom: 10px;
+    
+}
+
+.social-media {
+    display: flex;
+    justify-content: center;
+    margin-bottom: 10px;
+}
+
+.social-media a {
+    margin: 0 5px;
+    color: #333;
+    text-decoration: none;
+}
+
+.social-media i {
+    font-size: 18px;
+}
+
+.related-articles {
+    list-style-type: none;
+    padding: 0;
+}
+
+.related-articles li {
+    margin-bottom: 5px;
+}
+
+.related-articles a {
+    color: #333;
+    text-decoration: none;
+}
+
+@media (max-width: 768px) {
+    .article-section {
+        width: 90%;
+    }
+}
+
+.image-container img {
+    max-width: 2000px;
+    height: auto;
+    border-radius: 5px;
+    align-items: center;
+}
+
+@media (max-width: 768px) {
+    .biography {
+        flex-direction: column;
+        text-align: center;
+    }
+
+    .biography img {
+        float: none;
+        width: 100%;
+    }
+
+    .biography text {
+        margin-left: 0;
+        padding-top: 20px;
+    }
+
+    .header {
+        flex-direction: column;
+        align-items: center;
+        margin: 0px -20px;
+    }
+.container {
+    display: flex;
+    flex-wrap: wrap;
+    justify-content: center;
+    padding: 20px;
+}
+
+.food-item {
+    display: flex;
+    flex-direction: column;
+    width: 400px;
+    margin: 20px;
+    background-color: #fff;
+    border-radius: 8px;
+    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
+}
+
+.image {
+    flex: 1;
+    overflow: hidden;
+}
+
+.image img {
+    min-width: 300px;
+    max-width: 400px;
+    height: auto;
+    border-radius: 10px;
+}
+
+.description {
+    flex: 1;
+    padding: 20px;
+    text-align: left;
+}
+    .header h1 {
+        position: relative;
+        top: 0;
+        left: 0;
+    }
+
+    .header h2 {
+        font-size: 120%;
+    }
+
+    .header a {
+        margin: 10px 0;
+    }
+
+    .biography {
+        padding: 10px;
+    }
+
+    .image-container {
+        padding: 10px;
+    }
+
+    img {
+        max-width: 100%;
+        margin: auto;
+        transition: transform 0.3s ease;
+    }
+}
+
+@media (min-width: 769px) {
+    .biography {
+        flex-direction: row;
+        text-align: left;
+    }
+
+    .biography img {
+        float: left;
+        width: 40%;
+        margin-right: 20px;
+    }
+
+    .biography text {
+        margin-left: 20px;
+    }
+
+    .header {
+        flex-direction: row;
+        align-items: center;
+        margin: 0px -20px;
+    }
+
+    .header h1 {
+        position: relative;
+        top: 0;
+        left: 0;
+    }
+
+    .header h2 {
+        font-size: 100%;
+    }
+
+    .header a {
+        margin: 0 10px;
+    }
+
+    .biography {
+        padding: 20px;
+    }
+
+    .image-container {
+        padding: 20px;
+    }
+
+    img {
+        max-width: 100%;
+        margin: auto;
+        transition: transform 0.3s ease;
+    }
+}
+
+h1 {
+    text-align: center;
+    font-size: 100%;
+    color: #333;
+
+}
+
+form {
+    max-width: 400px;
+    margin: auto;
+}
+label {
+    display: block;
+    margin-top: 10px;
+}
+input, textarea {
+    width: 100%;
+    padding: 8px;
+    margin-top: 5px;
+    box-sizing: border-box;
+}
+button {
+            padding: 20px 40px;
+            font-size: 120%;
+            color: white;
+            background-color: #065c65;
+            border: none;
+            cursor: pointer;
+            text-align: center;
+            text-decoration: none;
+            border-radius: 5px; /* Rounded corners */
+            transition: background-color 0.3s ease;
+    z-index: 1;
+        }
+form button {
+            padding: 20px 40px;
+            font-size: 18px;
+            color: white;
+            background-color: #065c65;
+            border: none;
+            cursor: pointer;
+            text-align: center;
+            text-decoration: none;
+            border-radius: 5px; /* Rounded corners */
+            transition: background-color 0.3s ease;
+    z-index: 1;
+        }
+
+form button:hover {
+            background-color: #054a51;
+        }
+button:hover {
+            background-color: #054a51;
+        }
+        /* Center the button horizontally */
+        .centered-button {
+            display: inline-block;
+            margin-top: -5px;
+        }
+
+/* Add some padding to the body for better spacing */
+body {
+    padding: 0 20px;
+}

+ 21 - 0
Footer.html

@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<!--
+Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this template
+-->
+<head>
+    <link rel="stylesheet" href="CSS.css">
+    <script src="Poopynuggets.js"></script>
+    <title>title</title>
+</head>
+
+            <footer>
+    
+<br/>
+         <a href="https://westcoastmontessori.wa.edu.au/" class="link">Visit the official West Coast Montessori website</a>
+           <br/>
+<br/>
+
+
+             </footer>
+</body>

+ 38 - 0
Header.html

@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<!--
+Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this template
+-->
+<head>
+        <link rel="stylesheet" href="CSS.css">
+        <script src="Poopynuggets.js"></script>
+        <meta charset="UTF-8">
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+        <title>Ristorante Di Montessori | Real Food for Real Minds</title>
+</head>
+
+<main>
+
+        <div class="header">
+            <div class="centered-button">
+        <button id="myLink">Ristorante Di Montessori</button>
+    </div>
+        <a href="https://ristorantedimontessori.pfip.au/pages/about.php">About</a>
+        <a href="https://ristorantedimontessori.pfip.au/pages/services.php">Services</a>
+        <a href="https://ristorantedimontessori.pfip.au/pages/contact.php">Contact</a>
+    </div>
+        <script>
+        document.addEventListener('DOMContentLoaded', function() {
+            const fadingText = document.querySelector('.fading-text');
+            setTimeout(function() {
+                fadingText.style.opacity = 1;
+            }, 1000);
+        });
+        
+        document.getElementById('myLink').addEventListener('click', function() {
+    window.location.href = 'https://ristorantedimontessori.pfip.au/';
+  });
+        
+    </script>
+    </main>
+<body>

+ 30 - 0
Main.html

@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<!--
+Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this template
+-->
+<html class="loaded">
+<head>
+        <link rel="stylesheet" href="CSS.css">
+        <meta charset="UTF-8">
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+        <title>Ristorante Di Montessori | Real Food for Real Minds</title>
+        <link rel="icon" href="favicon.ico" type="image/x-icon">
+</head><!--
+<h1>Advertisement video</h1><p>Watch this video and discover why Ristorante Di Montessori is perfect for you.</p>
+    <video width="500" height="400" controls>
+        <source src="advertisement.mp4" type="video/mp4">
+        Your browser does not support the video tag.
+    </video>-->
+    <h1>Welcome to the Ristorante Di Montessori</h1>
+    <p>A place where we serve real food for real minds.</p>
+    <img src="images/Logo.png" alt="Logo">
+    <br/>
+    <br/>
+
+    
+
+        
+           
+    
+</html> 

+ 20 - 0
Poopynuggets.js

@@ -0,0 +1,20 @@
+/* 
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Other/javascript.js to edit this template
+ */
+
+
+function hello()
+{
+    alert("https://doti.pfip.au/Interestprojects/Interestprojects.html");
+}
+
+function Secret()
+{
+    alert("If you found this, good job.");
+}
+
+function bad()
+{
+    alert("Do not download random files from the internet unless you know what you are doing.");
+}

+ 0 - 0
README.md


TEMPAT SAMPAH
favicon.ico


TEMPAT SAMPAH
images/Brownie.jpg


TEMPAT SAMPAH
images/Cookie.jpg


TEMPAT SAMPAH
images/Elliot.jpg


TEMPAT SAMPAH
images/Ewan.jpg


TEMPAT SAMPAH
images/James.jpg


TEMPAT SAMPAH
images/Logo.png


TEMPAT SAMPAH
images/Placeholder.jpg


TEMPAT SAMPAH
images/Sage.jpg


TEMPAT SAMPAH
images/Sevent1.JPG


TEMPAT SAMPAH
images/Sevent2.JPG


TEMPAT SAMPAH
images/Sevent3.JPG


TEMPAT SAMPAH
images/Sevent4.JPG


TEMPAT SAMPAH
images/Smoothie1.jpg


TEMPAT SAMPAH
images/Smoothie2.jpg


TEMPAT SAMPAH
images/Smoothie3.jpg


TEMPAT SAMPAH
images/Smoothie4.jpg


TEMPAT SAMPAH
images/Timo.jpg


TEMPAT SAMPAH
images/Toastie.jpg


TEMPAT SAMPAH
images/Uevent1.jpg


TEMPAT SAMPAH
images/Uevent2.jpg


TEMPAT SAMPAH
images/Uevent3.jpg


TEMPAT SAMPAH
images/Uevent4.jpg


TEMPAT SAMPAH
images/event1.jpg


TEMPAT SAMPAH
images/event2.jpg


TEMPAT SAMPAH
images/event3.jpg


TEMPAT SAMPAH
images/event4.jpg


File diff ditekan karena terlalu besar
+ 3 - 0
images/rdmLink.svg


+ 24 - 0
index.php

@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<!--
+Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+Click nbfs://nbhost/SystemFileSystem/Templates/Project/PHP/PHPProject.php to edit this template
+-->
+<?PHP
+
+echo file_get_contents("Header.html");
+
+echo file_get_contents("Main.html");
+
+$articleNo = filter_input(INPUT_GET,'articleNo');
+
+if(!isset($articleNo)){
+    
+    
+echo file_get_contents("Article1.html");
+    
+}elseif(is_numeric($articleNo)){
+    echo file_get_contents("Article$articleNo.html");
+}
+
+
+echo file_get_contents("Footer.html");

+ 61 - 0
pages/about.html

@@ -0,0 +1,61 @@
+<!DOCTYPE html>
+<!--
+Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this template
+-->
+<html class="loaded">
+<head>
+        <link rel="stylesheet" href="../CSS.css">
+        <meta charset="UTF-8">
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+        <title>Ristorante Di Montessori | Real Food for Real Minds</title>
+</head>
+    <body>
+    
+        <h1>Meet the team</h1>
+        <div class="biography">
+        <img src="../images/Elliot.jpg" alt="Photo of Elliot">
+        <div>
+            <h2>Elliot - Marketing</h2>
+            <p>Elliot is part of Marketing and has made posters advertising the Ristorante Di Montessori. He also made this website for you to enjoy!</p>
+            
+        </div>
+    </div>
+        
+        <div class="my-border"></div>
+        <div class="biography">
+        <img src="../images/Sage.jpg" alt="Photo of Manager">
+        <div>
+            <h2>Sage - Manager</h2>
+            <p>Sage is the proud manager of the Ristorante Di Montessori and demonstrates great leadership for the team.</p>
+        </div>
+    </div>
+        <div class="my-border"></div>
+        <div class="biography">
+        <img src="../images/Ewan.jpg" alt="Photo of Ewan">
+        <div>
+            <h2>Ewan - Assistant Manager</h2>
+            <p>Ewan is the assistant manager of the Ristorante Di Montessori.</p>
+        </div>
+    </div>
+        <div class="my-border"></div>
+        <div class="biography">
+        <img src="../images/Timo.jpg" alt="Photo of Timo">
+        <div>
+            <h2>Timo - Chef</h2>
+            <p>Timo is one of our chefs of the Ristorante Di Montessori.</p>
+        </div>
+    </div>
+        <div class="my-border"></div>
+        <div class="biography">
+        <img src="../images/James.jpg" alt="Photo of James">
+        <div>
+            <h2>Mr James - Teacher</h2>
+            <p>Mr James is the teacher supervising the Ristorante Di Montessori team.</p>
+        </div>
+    </div>
+        
+        </body>
+           
+    
+</html> 

+ 14 - 0
pages/about.php

@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<!--
+Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this template
+-->
+<?PHP
+
+echo file_get_contents("../Header.html");
+
+echo file_get_contents("../pages/about.html");
+
+echo file_get_contents("../Footer.html");
+
+   

+ 27 - 0
pages/contact.html

@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html class="loaded" lang="en">
+<head>
+    <meta charset="UTF-8">
+    <link rel="stylesheet" href="../CSS.css">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>Contact Us</title>
+    
+</head>
+<body>
+
+<h2>Contact Us</h2>
+<form action="contact.php" method="post">
+    <label for="name">Name:</label>
+    <input type="text" id="name" name="name" required>
+
+    <label for="email">Email:</label>
+    <input type="email" id="email" name="email" required>
+
+    <label for="message">Message:</label>
+    <textarea id="message" name="message" rows="4" required></textarea>
+
+    <button type="submit">Send</button>
+</form>
+
+</body>
+</html>

+ 58 - 0
pages/contact.php

@@ -0,0 +1,58 @@
+<?php
+
+$name = filter_input(INPUT_POST, "name");
+$email = filter_input(INPUT_POST, "email");
+$message = filter_input(INPUT_POST, "message");
+echo file_get_contents("../Header.html");
+if(empty($name)&&empty($email)&&empty($message))
+{
+    echo file_get_contents('contact.html');
+    echo file_get_contents("../Footer.html");
+    exit;
+}
+
+// Define a recipient email
+$to = 'elliot@pfip.au'; // Must be set to a @pfip.au address due to security restrictions.
+
+// Get form data. - Removed due to duplicate php doc. GJH
+//$name = htmlspecialchars($_POST['name']);
+//$email = htmlspecialchars($_POST['email']);
+//$message = htmlspecialchars($_POST['message']);
+
+// Validate input
+$isValid = true;
+
+if (empty($name)) {
+    $isValid = false;
+    $errorMessages['name'] = 'Name is required.';
+}
+
+if (empty($email) || !filter_var($email, FILTER_VALIDATE_EMAIL)) {
+    $isValid = false;
+    $errorMessages['email'] = 'Invalid email address.';
+}
+
+if (empty($message)) {
+    $isValid = false;
+    $errorMessages['message'] = 'Message is required.';
+}
+
+// Send email if form is valid
+if ($isValid) {
+    $subject = 'Contact Us Form Submission';
+    $headers = "From: " . $email;
+
+    if (mail($to, $subject, $message, $headers)) {
+        echo "Your message has been sent successfully!";
+    } else {
+        echo "There was an error sending your message. Please try again later.";
+    }
+} else {
+    // Display error messages
+    echo "<h2>Error</h2>";
+    foreach ($errorMessages as $message) {
+        echo "<p>$message</p>";
+    }
+}
+
+echo file_get_contents("../Footer.html");

+ 21 - 0
pages/placeholder.html

@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<!--
+Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this template
+-->
+<html class="loaded">
+<head>
+        <link rel="stylesheet" href="../CSS.css">
+        <meta charset="UTF-8">
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+        <title>Ristorante Di Montessori | Real Food for Real Minds</title>
+</head>
+    <body>
+    
+        <h1>Something Amazing Is Coming Soon</h1>
+        <p>We are working hard to build a brand new online experience for you. Please check back later for updates.
+        </p>
+        </body>
+           
+    
+</html> 

+ 90 - 0
pages/services.html

@@ -0,0 +1,90 @@
+<!DOCTYPE html>
+<!--
+Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this template
+-->
+<html class="loaded">
+<head>
+        <link rel="stylesheet" href="../CSS.css">
+        <meta charset="UTF-8">
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+        <title>Ristorante Di Montessori | Real Food for Real Minds</title>
+        
+</head>
+<body><h1>A word for parents</h1>
+        <p>We know how stressful it is to rush with packing lunchboxes, which is why we’ve designed our meals to be the perfect solution for school lunches. Freshly prepared, wholesome and ready to go—we handle the nutrition so you can focus on the start of your day. No prep, no mess, just delicious food your kids will actually love.
+        </p>
+        
+    <div class="my-border"></div><br/>
+        <h1>The Menu</h1>
+        <p>Our restaurant offers a variety of dishes for you to try.</p>
+        <p><b>Warning:</b> Images shown are for illustration purposes only and may not represent the real product!</p>
+        
+        <div class="container">
+    <div class="food-item">
+        <div class="image">
+            <img src="../images/Toastie.jpg" alt="Toastie">
+        </div>
+        <div class="description">
+            <h2>Ham, cheese and tomato toastie</h2>
+            <p>This sandwich is toasted to perfection. Price is $3.</p>
+            <h2>Ham and cheese toastie</h2>
+            <p>This sandwich is toasted to perfection but has less tomato. Price is $2.50.</p>
+            <h2>Cheese and tomato toastie</h2>
+            <p>This sandwich is toasted to perfection but has less ham. Price is $2.</p>
+        </div>
+    </div><div class="my-border"></div><br/><div class="food-item">
+        <div class="image">
+            <img src="../images/Cookie.jpg" alt="Cookie">
+        </div>
+        <div class="description">
+            <h2>Cookies</h2>
+            <p>When life gives you lemons, toss them aside and eat some cookies instead. Price is $1 per cookie.</p>
+        </div>
+    </div><div class="my-border"></div><br/>
+        </div>
+        <h1>Smoothies</h1>
+        <p>All smoothies are $4.50 each.</p>
+        <div class="container">
+    <div class="food-item">
+        <div class="image">
+            <img src="../images/Smoothie1.jpg" alt="Smoothie1">
+        </div>
+        <div class="description">
+            <h2>Banana and honey</h2>
+            <p>Experience the perfect blend of sweet, creamy and refreshing.</p>
+        </div>
+    </div><div class="my-border"></div><br/>
+    <div class="food-item">
+        <div class="image">
+            <img src="../images/Smoothie2.jpg" alt="Smoothie2">
+        </div>
+        <div class="description">
+            <h2>Blueberry</h2>
+            <p>This smoothie is the perfect way to cool down.</p>
+        </div>
+    </div><div class="my-border"></div><br/>
+    <div class="food-item">
+        <div class="image">
+            <img src="../images/Smoothie3.jpg" alt="Smoothie3">
+        </div>
+        <div class="description">
+            <h2>Strawberry</h2>
+            <p>Packed with the perfect amount of strawberries for a burst of flavour.</p>
+        </div>
+    </div><div class="my-border"></div><br/>
+    <div class="food-item">
+        <div class="image">
+            <img src="../images/Smoothie4.jpg" alt="Smoothie4">
+        </div>
+        <div class="description">
+            <h2>Mango</h2>
+            <p>A vibrant, tropical escape blending sun-ripened sweetness, velvety creaminess and pure refreshment.</p>
+        </div>
+    </div><div class="my-border"></div><br/>
+        </div>
+        
+        </body>
+           
+    
+</html> 

+ 12 - 0
pages/services.php

@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<!--
+Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this template
+-->
+<?PHP
+
+echo file_get_contents("../Header.html");
+
+echo file_get_contents("../pages/services.html");
+
+echo file_get_contents("../Footer.html");

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini