Make submodule
This commit is contained in:
parent
ae2e3474ec
commit
a826a7e7ee
|
@ -1,48 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<title>My Cool Guestbook!</title>
|
|
||||||
<link rel="stylesheet" href="../readable.css"</link>
|
|
||||||
<link rel="stylesheet" href="./guestbook.css"</link>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<header>
|
|
||||||
<h1>Guestbook</h1>
|
|
||||||
<p>This is a guestbook, made by fbievan</p>
|
|
||||||
</header>
|
|
||||||
<nav>
|
|
||||||
<a href="../index.html">Back Home</a>
|
|
||||||
</nav>
|
|
||||||
<main>
|
|
||||||
<form action="./submit.php" method="post">
|
|
||||||
<input type="text" name="fname" placeholder="name"></input>
|
|
||||||
<input type="text" name="fmessage" placeholder="Message"></input>
|
|
||||||
<input type="submit"></input>
|
|
||||||
</form>
|
|
||||||
<?php
|
|
||||||
$data = json_decode(file_get_contents('test.json'), true);
|
|
||||||
echo "<div>";
|
|
||||||
foreach($data as $post) {
|
|
||||||
echo '<section class="guestbookpost">';
|
|
||||||
echo "<h4>";
|
|
||||||
echo $post["name"] . "<br>";
|
|
||||||
echo "</h4>";
|
|
||||||
echo '<h4 class="date">';
|
|
||||||
echo $post["date"] . "<br>";
|
|
||||||
echo "</h4>";
|
|
||||||
echo "<p>";
|
|
||||||
echo $post["message"] . "<br>";
|
|
||||||
echo "</p>";
|
|
||||||
echo "</section>";
|
|
||||||
}
|
|
||||||
echo "</div>";
|
|
||||||
|
|
||||||
?>
|
|
||||||
</main>
|
|
||||||
<footer>
|
|
||||||
I'm cool
|
|
||||||
</footer>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
71
index.html
71
index.html
|
@ -2,42 +2,47 @@
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title></title>
|
<title>My Cool Guestbook!</title>
|
||||||
<link rel="stylesheet" href="readable.css?v1.1.0">
|
<link rel="stylesheet" href="../readable.css"</link>
|
||||||
<link rel="stylesheet" href="homepage.css">
|
<link rel="stylesheet" href="./guestbook.css"</link>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
</head>
|
</head>
|
||||||
<nav>
|
|
||||||
<a href="./index.html">Home</a>
|
|
||||||
<a href="./posts.html">Posts</a>
|
|
||||||
<a href="./guestbook/index.html">Guestbook</a>
|
|
||||||
</nav>
|
|
||||||
<body>
|
<body>
|
||||||
<h1>Fbi's Epic Blog</h1>
|
<header>
|
||||||
</main>
|
<h1>Guestbook</h1>
|
||||||
<article>
|
<p>This is a guestbook, made by fbievan</p>
|
||||||
<div class="articles">
|
</header>
|
||||||
<section>
|
<nav>
|
||||||
<a href="./post1.html">
|
<a href="../index.html">Back Home</a>
|
||||||
<h3>post 1</h2>
|
</nav>
|
||||||
</a>
|
<main>
|
||||||
This is my blog..
|
<form action="./submit.php" method="post">
|
||||||
</section>
|
<input type="text" name="fname" placeholder="name"></input>
|
||||||
<section>
|
<input type="text" name="fmessage" placeholder="Message"></input>
|
||||||
<a href="./post2.html">
|
<input type="submit"></input>
|
||||||
<h3>post 2 </h2>
|
</form>
|
||||||
</a>
|
<?php
|
||||||
This is cool
|
$data = json_decode(file_get_contents('test.json'), true);
|
||||||
</section>
|
echo "<div>";
|
||||||
<section>
|
foreach($data as $post) {
|
||||||
<a href="./post3.html">
|
echo '<section class="guestbookpost">';
|
||||||
<h3>post 3 </h2>
|
echo "<h4>";
|
||||||
</a>
|
echo $post["name"] . "<br>";
|
||||||
This is amazing
|
echo "</h4>";
|
||||||
</section>
|
echo '<h4 class="date">';
|
||||||
</div>
|
echo $post["date"] . "<br>";
|
||||||
<p>thank</p>
|
echo "</h4>";
|
||||||
</article>
|
echo "<p>";
|
||||||
|
echo $post["message"] . "<br>";
|
||||||
|
echo "</p>";
|
||||||
|
echo "</section>";
|
||||||
|
}
|
||||||
|
echo "</div>";
|
||||||
|
|
||||||
|
?>
|
||||||
</main>
|
</main>
|
||||||
|
<footer>
|
||||||
|
I'm cool
|
||||||
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue