From c95ced87b5d948b3544659e5020bd8564b8992f0 Mon Sep 17 00:00:00 2001 From: Sean Joseph Date: Wed, 25 Oct 2017 12:43:25 -0400 Subject: [PATCH] Initial website --- index.php | 20 ++++++++++ lib/Homepage/View.php | 86 +++++++++++++++++++++++++++++++++++++++ lib/View.php | 93 +++++++++++++++++++++++++++++++++++++++++++ style/default.css | 55 +++++++++++++++++++++++++ version.php | 5 +++ 5 files changed, 259 insertions(+) create mode 100644 index.php create mode 100644 lib/Homepage/View.php create mode 100644 lib/View.php create mode 100644 style/default.css create mode 100644 version.php diff --git a/index.php b/index.php new file mode 100644 index 0000000..ce1a5f5 --- /dev/null +++ b/index.php @@ -0,0 +1,20 @@ +setTitle("CSE 435 Group 6") +?> + + + + head(); + ?> + + + header(); + echo $view->page(); + echo $view->footer(); + ?> + + diff --git a/lib/Homepage/View.php b/lib/Homepage/View.php new file mode 100644 index 0000000..b56e8c7 --- /dev/null +++ b/lib/Homepage/View.php @@ -0,0 +1,86 @@ +addNav("Home", "./"); + $this->addNav("About Me", "aboutme.php"); + $this->addNav("Experience", "experience.php"); + $this->addNav("Game", "game.php"); + } + + public function head(){ + + $html = << + $this->title + +HTML; + + return $html; + + } + + public function header(){ + + $html = << +

$this->title

+ + +HTML; + + return $html; + + } + + public function page(){ + + $html = << +

CONTENT COMING SOON!

+ +HTML; + + return $html; + + } + + public function addNav($name, $link){ + $this->links[] = array("name" => $name, "link" => $link); + } + + public function footer(){ + + $html = << + +HTML; + + return $html; + + } + + public function setTitle($title){ + $this->title = $title; + } + + private $links = array(); + private $title = "Not Set!"; + +} diff --git a/lib/View.php b/lib/View.php new file mode 100644 index 0000000..42bd227 --- /dev/null +++ b/lib/View.php @@ -0,0 +1,93 @@ +addNav("Home", "./"); + $this->addNav("Progress", "./"); + $this->addNav("Meet The Team", "./"); + $this->addNav("Course Site", "https://cse.msu.edu/~cse435/"); + } + + public function head(){ + + $html = << + $this->title + +HTML; + + return $html; + + } + + public function header(){ + + $html = << +

$this->title

+ + +HTML; + + return $html; + + } + + public function page(){ + + $html = << +

Roster:

+ + +HTML; + + return $html; + + } + + public function addNav($name, $link){ + $this->links[] = array("name" => $name, "link" => $link); + } + + public function footer(){ + + $html = << + +HTML; + + return $html; + + } + + public function setTitle($title){ + $this->title = $title; + } + + private $links = array(); + private $title = "Not Set!"; + +} diff --git a/style/default.css b/style/default.css new file mode 100644 index 0000000..e26108d --- /dev/null +++ b/style/default.css @@ -0,0 +1,55 @@ +html, body, div, span, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +abbr, address, cite, code, +del, dfn, em, img, ins, kbd, q, samp, +small, strong, sub, sup, var, +b, i, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td, +article, aside, canvas, details, figcaption, figure, +footer, header, hgroup, menu, nav, section, summary, +time, mark, audio, video +{ + + margin:0; + padding:0; + border:0; + outline:0; + font-size:100%; + vertical-align:baseline; + background:transparent; +} + +body { + background : lightgrey; +} + +header { + padding-top: 1em; + background : white; + text-align: center; + line-height: 3em; +} + +header h1 { + font-size : 2em; +} + +nav a{ + color : darkgray; + font-style: normal; + text-decoration : none; + background : inherit; +} + +nav a:hover{ + color : black; + background: lightgrey; + font-size:1.1em; +} + +div.card{ + border:thick black; + display:inline-block; +} diff --git a/version.php b/version.php new file mode 100644 index 0000000..bfd698b --- /dev/null +++ b/version.php @@ -0,0 +1,5 @@ +"; +echo phpversion(); +echo ""; +