Added about page.
The assets directory should store any pictures that the site uses. Removed lingering directory
This commit is contained in:
parent
6b30a2a506
commit
1c927a643b
23
about.php
Normal file
23
about.php
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* About team page.
|
||||||
|
*/
|
||||||
|
require_once "lib/AboutView.php";
|
||||||
|
$view = new AboutView();
|
||||||
|
$view->setTitle("Meet the Team");
|
||||||
|
?>
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<?php
|
||||||
|
echo $view->head();
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<?php
|
||||||
|
echo $view->header();
|
||||||
|
echo $view->page();
|
||||||
|
echo $view->footer();
|
||||||
|
?>
|
||||||
|
</body>
|
||||||
|
</html>
|
0
assets/images-here.txt
Normal file
0
assets/images-here.txt
Normal file
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once 'lib/View.php';
|
require_once 'lib/LandingView.php';
|
||||||
$view = new View();
|
$view = new LandingView();
|
||||||
$view->setTitle("CSE 435 Group 6")
|
$view->setTitle("CSE 435 Group 6")
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
48
lib/AboutView.php
Normal file
48
lib/AboutView.php
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
<?php
|
||||||
|
require_once "View.php";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by PhpStorm.
|
||||||
|
* User: sean
|
||||||
|
* Date: 10/26/17
|
||||||
|
* Time: 7:50 PM
|
||||||
|
*/
|
||||||
|
class AboutView extends View
|
||||||
|
{
|
||||||
|
|
||||||
|
public function page()
|
||||||
|
{
|
||||||
|
$body = <<<HTML
|
||||||
|
<h1>Roster:</h1>
|
||||||
|
<div class="team">
|
||||||
|
<div class="member">
|
||||||
|
<h2>Project Manager - James</h2>
|
||||||
|
<p>
|
||||||
|
blurb.
|
||||||
|
</p> </div>
|
||||||
|
<div class="member">
|
||||||
|
<h2>Artifacts Manager - Sean</h2>
|
||||||
|
<p>
|
||||||
|
blurb.
|
||||||
|
</p> </div>
|
||||||
|
<div class="member">
|
||||||
|
<h2>Project Facilitator - Stephen</h2>
|
||||||
|
<p>
|
||||||
|
blurb.
|
||||||
|
</p> </div>
|
||||||
|
<div class="member">
|
||||||
|
<h2>Safety/Security Engineer - Logan</h2>
|
||||||
|
<p>
|
||||||
|
blurb.
|
||||||
|
</p> </div>
|
||||||
|
<div class="member">
|
||||||
|
<h2>Domain Expert/Customer Liaison - Colin</h2>
|
||||||
|
<p>
|
||||||
|
blurb.
|
||||||
|
</p> </div>
|
||||||
|
</div>
|
||||||
|
HTML;
|
||||||
|
return $body;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -1,86 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by PhpStorm.
|
|
||||||
* User: sean
|
|
||||||
* Date: 5/26/17
|
|
||||||
* Time: 8:57 PM
|
|
||||||
*/
|
|
||||||
class View
|
|
||||||
{
|
|
||||||
|
|
||||||
public function __construct() {
|
|
||||||
$this->addNav("Home", "./");
|
|
||||||
$this->addNav("About Me", "aboutme.php");
|
|
||||||
$this->addNav("Experience", "experience.php");
|
|
||||||
$this->addNav("Game", "game.php");
|
|
||||||
}
|
|
||||||
|
|
||||||
public function head(){
|
|
||||||
|
|
||||||
$html = <<<HTML
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>$this->title</title>
|
|
||||||
<link href="style/default.css" rel="stylesheet" type="text/css">
|
|
||||||
HTML;
|
|
||||||
|
|
||||||
return $html;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public function header(){
|
|
||||||
|
|
||||||
$html = <<<HTML
|
|
||||||
<header>
|
|
||||||
<h1>$this->title</h1>
|
|
||||||
<nav><p class="nav-bar">|
|
|
||||||
HTML;
|
|
||||||
foreach($this->links as $link){
|
|
||||||
$name = $link['name'];
|
|
||||||
$to = $link['link'];
|
|
||||||
$html .= " <a href='$to'>$name</a> |";
|
|
||||||
}
|
|
||||||
$html .= <<<HTML
|
|
||||||
</p></nav>
|
|
||||||
</header>
|
|
||||||
HTML;
|
|
||||||
|
|
||||||
return $html;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public function page(){
|
|
||||||
|
|
||||||
$html = <<<HTML
|
|
||||||
<div class="card">
|
|
||||||
<p>CONTENT COMING SOON!</p>
|
|
||||||
</div>
|
|
||||||
HTML;
|
|
||||||
|
|
||||||
return $html;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public function addNav($name, $link){
|
|
||||||
$this->links[] = array("name" => $name, "link" => $link);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function footer(){
|
|
||||||
|
|
||||||
$html = <<<HTML
|
|
||||||
<footer>
|
|
||||||
</footer>
|
|
||||||
HTML;
|
|
||||||
|
|
||||||
return $html;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setTitle($title){
|
|
||||||
$this->title = $title;
|
|
||||||
}
|
|
||||||
|
|
||||||
private $links = array();
|
|
||||||
private $title = "Not Set!";
|
|
||||||
|
|
||||||
}
|
|
19
lib/LandingView.php
Normal file
19
lib/LandingView.php
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
require_once "View.php";
|
||||||
|
/**
|
||||||
|
* Created by PhpStorm.
|
||||||
|
* User: sean
|
||||||
|
* Date: 10/26/17
|
||||||
|
* Time: 7:52 PM
|
||||||
|
*/
|
||||||
|
class LandingView extends View
|
||||||
|
{
|
||||||
|
public function page()
|
||||||
|
{
|
||||||
|
$body = <<<HTML
|
||||||
|
<h1>Paint Defect Reporting!</h1>
|
||||||
|
<p>Find those defects, boys!</p>
|
||||||
|
HTML;
|
||||||
|
return $body;
|
||||||
|
}
|
||||||
|
}
|
13
lib/View.php
13
lib/View.php
@ -12,7 +12,7 @@ class View
|
|||||||
public function __construct() {
|
public function __construct() {
|
||||||
$this->addNav("Home", "./");
|
$this->addNav("Home", "./");
|
||||||
$this->addNav("Progress", "./");
|
$this->addNav("Progress", "./");
|
||||||
$this->addNav("Meet The Team", "./");
|
$this->addNav("Meet The Team", "./about.php");
|
||||||
$this->addNav("Course Site", "https://cse.msu.edu/~cse435/");
|
$this->addNav("Course Site", "https://cse.msu.edu/~cse435/");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -52,16 +52,7 @@ HTML;
|
|||||||
public function page(){
|
public function page(){
|
||||||
|
|
||||||
$html = <<<HTML
|
$html = <<<HTML
|
||||||
<div class="card">
|
<p>Content coming soon...</p>
|
||||||
<h2>Roster:</h2>
|
|
||||||
<ul>
|
|
||||||
<li>Project Manager - James</li>
|
|
||||||
<li>Artifacts Manager - Sean</li>
|
|
||||||
<li>Project Facilitator- Stephen</li>
|
|
||||||
<li>Safety/Security Engineer - Logan</li>
|
|
||||||
<li>Domain Expert/Customer Liaison - Colin</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
HTML;
|
HTML;
|
||||||
|
|
||||||
return $html;
|
return $html;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user