summaryrefslogtreecommitdiff
path: root/src/web/_views/header.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/_views/header.php')
-rw-r--r--src/web/_views/header.php43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/web/_views/header.php b/src/web/_views/header.php
new file mode 100644
index 0000000..b037038
--- /dev/null
+++ b/src/web/_views/header.php
@@ -0,0 +1,43 @@
+<?php /* Copyright (c) 2024 Freya Murphy */ ?>
+<?php
+ $this->view('head', $data);
+ echo $this->main->link_css('css/main.css');
+ $legacy = $this->main->get_ie_version() <= 7;
+?>
+</head>
+<body>
+<?php if($legacy): ?>
+<center>
+<?php else: ?>
+<div class="center">
+<?php endif; ?>
+ <div id="header" role="banner" aria-label="banner">
+ <?=image('img/headerLogo', 'alt_website_logo', size: '200')?>
+ <div class="content">
+ <h1 class="logo-text">
+ <?=lang('first_name')?>
+ </h1>
+ <div role="navigation">
+ <ul id="nav">
+ <li><?=ilang('action_home',
+ href: $this->main->get_url('home'),
+ container: 'h2'
+ )?></li>
+ <li><?=ilang('action_projects',
+ href: $this->main->get_url('projects'),
+ container: 'h2'
+ )?></li>
+ <li><?=ilang('action_blog',
+ href: $this->main->get_url('blog'),
+ container: 'h2'
+ )?></li>
+ </ul>
+ </div>
+ </div>
+ </div>
+<?php if($legacy): ?>
+ <div id="main" class="legacy" role="main">
+<?php else: ?>
+ <div id="main" role="main" aria-label="main">
+<?php endif; ?>
+ <div id="container">