summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--assets/github-logo.pngbin0 -> 1028 bytes
-rw-r--r--assets/linkedin-logo.pngbin0 -> 434 bytes
-rw-r--r--assets/resume-logo.pngbin0 -> 2534 bytes
-rw-r--r--css/hamburger.css40
-rw-r--r--css/layout.css199
-rw-r--r--css/style.bak175
-rw-r--r--css/style.css0
-rw-r--r--index.bak70
-rw-r--r--index.html81
-rw-r--r--js/clock.js14
-rw-r--r--js/hamburger.js35
-rw-r--r--projects.html110
13 files changed, 725 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..485db2b
--- /dev/null
+++ b/README.md
@@ -0,0 +1 @@
+it's in the damn name
diff --git a/assets/github-logo.png b/assets/github-logo.png
new file mode 100644
index 0000000..de43dfc
--- /dev/null
+++ b/assets/github-logo.png
Binary files differ
diff --git a/assets/linkedin-logo.png b/assets/linkedin-logo.png
new file mode 100644
index 0000000..667c492
--- /dev/null
+++ b/assets/linkedin-logo.png
Binary files differ
diff --git a/assets/resume-logo.png b/assets/resume-logo.png
new file mode 100644
index 0000000..1b888d5
--- /dev/null
+++ b/assets/resume-logo.png
Binary files differ
diff --git a/css/hamburger.css b/css/hamburger.css
new file mode 100644
index 0000000..146b2bc
--- /dev/null
+++ b/css/hamburger.css
@@ -0,0 +1,40 @@
+#hamburger {
+ display: none;
+ flex-direction: column;
+ cursor: pointer;
+ background: none;
+ border: none;
+ padding: 5px;
+}
+
+#hamburger span {
+ width: 25px;
+ height: 3px;
+ background-color: var(--fg-green);
+ margin: 3px 0;
+ transition: 0.3s;
+ position: relative;
+}
+
+/* MOBILE RULES */
+/* @media screen and (max-width: 850px) { */
+@media screen and (max-width: 650px) {
+ /** hamburger animation */
+ #hamburger {
+ display: flex;
+ }
+
+ #hamburger.active span:nth-child(1) {
+ transform: rotate(-45deg) translateY(10px) translateX(-3px);
+ width: 24px;
+ height: 4px;
+ }
+ #hamburger.active span:nth-child(2) {
+ opacity: 0;
+ }
+ #hamburger.active span:nth-child(3) {
+ transform: rotate(45deg) translateY(-10px) translateX(-3px);
+ width: 24px;
+ height: 4px;
+ }
+}
diff --git a/css/layout.css b/css/layout.css
new file mode 100644
index 0000000..66037bc
--- /dev/null
+++ b/css/layout.css
@@ -0,0 +1,199 @@
+/**
+ * THIS FILE DEFINES THE STYLING OF THE SITE-WIDE LAYOUT / STRUCTURE, MEANING:
+ * - header / nav
+ * - sections
+ * - footer
+ * RULES DEFINING THE STYLE OF MORE SPECIFIC PAGE CONTENT SHOULD BE KEPT ELSEWHERE
+ */
+
+/** COLOR VARIABLES */
+:root {
+ --bg-green: #19211a;
+ --bg-green: #182118;
+ --fg-green: #e1ffdb;
+ --white: #eeeeee;
+ --page-width: 650px;
+}
+
+
+* {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+
+ background-color: var(--bg-green);
+ color: var(--fg-green);
+
+ letter-spacing: 0.01rem;
+ font-family: sans-serif;
+}
+
+
+/** HEADER + NAV STYLING */
+header {
+ position: sticky;
+ top: 0;
+ z-index: 999;
+
+ line-height: 1.5rem;
+
+ display: flex;
+ justify-content: space-between;
+ width: var(--page-width);
+ align-items: center;
+
+ height: 4.5rem;
+
+ margin: 0 auto;
+ padding: 1rem 1rem;
+}
+
+.logo {
+ font-size: 1.5rem;
+ font-weight: bold;
+ transition: color 0.5s ease;
+ color: var(--fg-green);
+ text-decoration: none;
+}
+.logo:hover {
+ color: var(--white);
+}
+
+.navLink {
+ color: var(--fg-green);
+ font-weight: bold;
+ text-decoration: none;
+}
+.navLink:hover {
+ color: var(--white);
+ text-decoration: underline;
+}
+
+.activeTab {
+ color: var(--white);
+ text-decoration: underline;
+}
+
+main {
+ margin: 0 auto;
+ padding: 0 1rem;
+ width: var(--page-width);
+}
+
+section {
+ margin: 6rem 0;
+}
+
+a:hover {
+ color: var(--white);
+}
+
+
+/** FOOTER */
+footer {
+ display: flex;
+ justify-content: space-between;
+
+ margin: 5rem auto;
+ padding: 0 1rem;
+
+ width: var(--page-width);
+
+ text-align: center;
+}
+
+
+#footer-left {
+ display: flex;
+ flex-direction: column;
+ gap: 1rem;
+
+ width: 50%;
+ align-items: flex-start;
+}
+#footer-right {
+ display: flex;
+ flex-direction: column;
+ gap: 1rem;
+
+ width: 50%;
+ align-items: flex-end;
+}
+
+/** "SKIP LINK" FOR ACCESSIBILITY / SCREEN READERS */
+.skipLink {
+ position: absolute;
+ top: -50px;
+ left: 6px;
+ background: #fff;
+ color: var(--bg-green);
+ padding: 8px;
+ text-decoration: none;
+ font-weight: bold;
+ border-radius: 4px;
+ z-index: 1000;
+}
+.skipLink:focus {
+ top: 6px;
+}
+
+
+
+/** DESKTOP RULES */
+/* @media screen and (min-width: 851px) { */
+@media screen and (min-width: 651px) {
+
+
+ header {
+ border-bottom: 1px solid var(--fg-green);
+ }
+
+ nav {
+ display: flex;
+ flex-direction: row;
+ gap: 3rem;
+
+ list-style: none;
+ }
+
+}
+
+/* MOBILE RULES */
+/* @media screen and (max-width: 850px) { */
+@media screen and (max-width: 650px) {
+ /** header */
+ header {
+ padding: 1rem 1rem;
+ border-bottom: none;
+ background-size: cover;
+ }
+
+ nav {
+ display: flex;
+ flex-direction: column;
+ position: fixed;
+ gap: 2rem;
+
+ /** this shit messay buut the nav has to be manually aligned with decimal values */
+ transition: top 0.5s ease;
+ padding: 4.8rem 0 4.8rem 0;
+ top: -13.68rem;
+ left: 0;
+
+ font-size: 2rem;
+ text-align: center;
+ border-bottom: 1px solid var(--fg-green);
+
+ box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
+ z-index: -1;
+ }
+
+ nav.active {
+ top: 2rem;
+ }
+
+
+ header, nav, main, body, section, footer { width: 100% }
+
+
+}
diff --git a/css/style.bak b/css/style.bak
new file mode 100644
index 0000000..6914e2e
--- /dev/null
+++ b/css/style.bak
@@ -0,0 +1,175 @@
+* {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+
+ background-color: var(--bg-green);
+ color: var(--fg-green);
+
+ letter-spacing: 0.01rem;
+}
+
+
+/** COLOR VARIABLES */
+:root {
+ --bg-green: #19211a;
+ --bg-green: #182118;
+ --fg-green: #e1ffdb;
+}
+
+/** HEADER + NAV STYLING */
+header {
+ position: sticky;
+ top: 0;
+ z-index: 999;
+}
+
+.banner {
+ display: flex;
+ justify-content: space-between;
+ width: 90%;
+ align-items: center;
+
+ height: 4.5rem;
+
+ margin: 0 auto;
+ padding: 1rem 0;
+}
+
+.logo {
+ font-size: 1.5rem;
+ font-weight: bold;
+ transition: color 0.5s ease;
+ color: var(--fg-green);
+ text-decoration: none;
+}
+.logo:hover {
+ color: var(--fg-green);;
+}
+
+.navLink {
+ color: var(--fg-green);
+ text-decoration: none;
+ font-weight: bold;
+ transition: color 0.5s ease;
+}
+
+.navLink:hover {
+ color: #fff;
+}
+
+/** FOOTER */
+footer {
+ display: flex;
+ justify-content: space-between;
+
+ margin: 5rem auto;
+
+ max-width: 90%;
+
+ text-align: center;
+}
+
+#footer-left {
+ width: 50%;
+ text-align: left;
+}
+#footer-right {
+ width: 50%;
+ text-align: right;
+}
+
+/** "skip link" for screen readers */
+.skipLink {
+ position: absolute;
+ top: -50px;
+ left: 6px;
+ background: #fff;
+ color: var(--bg-green);
+ padding: 8px;
+ text-decoration: none;
+ font-weight: bold;
+ border-radius: 4px;
+ z-index: 1000;
+}
+.skipLink:focus {
+ top: 6px;
+}
+
+
+
+/** DESKTOP RULES */
+@media screen and (min-width: 851px) {
+
+ header {
+ border-bottom: 1px solid var(--fg-green);
+ }
+
+ nav {
+ display: flex;
+ flex-direction: row;
+ gap: 3rem;
+
+ list-style: none;
+ }
+
+ /** content */
+ h1 {
+ font-size: 3rem;
+ }
+}
+
+/* MOBILE RULES */
+@media screen and (max-width: 850px) {
+ /** header */
+ header {
+ padding: 0;
+ width: 100%;
+
+ border-bottom: none;
+ /* background-color: blue; */
+ background-size: cover;
+ }
+
+
+ .banner {
+ /* background-color: orange; */
+ border-bottom: none;
+ }
+
+ nav {
+ display: flex;
+ flex-direction: column;
+ position: fixed;
+ gap: 2rem;
+
+ padding: 4.8rem 0 4rem 0;
+
+ transition: top 0.5s ease;
+ top: -19.5rem;
+ left: 0;
+ width: 100%;
+
+ font-size: 2rem;
+ text-align: center;
+ border-bottom: 1px solid var(--fg-green);
+
+ box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
+ z-index: -1;
+ }
+
+ nav.active {
+ top: 2rem;
+ }
+
+ /** footer */
+ footer {
+ font-size: 0.9rem;
+ }
+
+ /** content rules */
+ h1 {
+ font-size: 2.5rem;
+ }
+
+}
diff --git a/css/style.css b/css/style.css
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/css/style.css
diff --git a/index.bak b/index.bak
new file mode 100644
index 0000000..b0d8e11
--- /dev/null
+++ b/index.bak
@@ -0,0 +1,70 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <meta
+ name="description"
+ content="Simon's website"
+ />
+ <title>s-oshea</title>
+ <link href="css/style.css" rel="stylesheet" />
+ <link href="css/hamburger.css" rel="stylesheet" />
+
+ <style>
+
+ /************************************************
+ * DESKTOP RULES
+ */
+ @media screen and (min-width: 851px) {
+ }
+
+ /*
+ * MOBILE RULES
+ */
+ @media screen and (max-width: 850px) {
+ }
+ </style>
+ </head>
+ <body>
+ <a href="#main-content" class="skipLink">Skip to main content</a>
+
+ <header>
+ <div class="banner" role="banner">
+ <a href="index.html" class="logo" aria-label="Company Logo">s-oshea</a>
+
+ <button
+ id="hamburger"
+ aria-label="Toggle mobile navigation menu"
+ aria-expanded="false"
+ >
+ <span></span>
+ <span></span>
+ <span></span>
+ </button>
+
+ <nav>
+ <a class="navLink" role="navigation" href="index.html">home</a>
+ <a class="navLink" role="navigation" href="projects.html">projects</a>
+ <a class="navLink" role="navigation" href="testimonials.html"style="color: white" >testimonials</a>
+ <a class="navLink" role="navigation" href="more.html">more</a>
+ </nav>
+ </div>
+ </header>
+
+ <main id="main-content">
+ <section id="blurb">
+ page under construction
+ </section>
+ </main>
+
+ <footer>
+ <div id="footer-left">
+ <a href="">resume</a>
+ </div>
+ <div id="footer-right">
+ </div>
+ </footer>
+ <script src="js/hamburger.js"></script>
+ </body>
+</html>
+
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..a85f57f
--- /dev/null
+++ b/index.html
@@ -0,0 +1,81 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <meta
+ name="description"
+ content="Simon's website"
+ />
+ <title>s-oshea</title>
+ <link href="css/style.css" rel="stylesheet" />
+ <link href="css/layout.css" rel="stylesheet" />
+ <link href="css/hamburger.css" rel="stylesheet" />
+
+ <style>
+
+ /************************************************
+ * DESKTOP RULES
+ */
+ @media screen and (min-width: 851px) {
+ }
+
+ /*
+ * MOBILE RULES
+ */
+ @media screen and (max-width: 850px) {
+ }
+ </style>
+ </head>
+ <body>
+ <a href="#main" class="skipLink">Skip to main content</a>
+
+ <header>
+ <a href="index.html" class="logo activeTab" aria-label="Company Logo">s-oshea</a>
+
+ <button
+ id="hamburger"
+ aria-label="Toggle mobile navigation menu"
+ aria-expanded="false"
+ >
+ <span></span>
+ <span></span>
+ <span></span>
+ </button>
+
+ <nav>
+ <a class="navLink" role="navigation" href="projects.html">projects</a>
+ <a class="navLink" role="navigation" href="testimonials.html">testimonials</a>
+ <a class="navLink" role="navigation" href="more.html">more</a>
+ </nav>
+ </header>
+
+ <main id="main">
+ <section id="brief-introduction">
+ <h1>Simon O'Shea</h1>
+ <p>Full Stack Engineer @ <a href="https://eustaceconsulting.com" target="_blank">Eustace Consulting</a></p>
+ <br />
+ <p>Web + native development</p>
+ <p>Interface design + implementation</p>
+ <p>Project planning + management</p>
+ </section>
+ </main>
+
+ <footer>
+ <div id="footer-left">
+ <a href="assets/resume.pdf">resume</a>
+ <a href="https://www.linkedin.com/in/simon-o-shea/">linkedin</a>
+ <a href="https://www.github.com/sotrali">github</a>
+ </div>
+ <div id="footer-right">
+ <a href="mailto:vesspa0330@gmail.com">vesspa0330@gmail.com</a>
+ <span>207 701 6630</span>
+ <span id="clock"></span>
+ </div>
+ </footer>
+
+ <script src="js/hamburger.js"></script>
+ <script src="js/clock.js"></script>
+
+ </body>
+</html>
+
diff --git a/js/clock.js b/js/clock.js
new file mode 100644
index 0000000..ac4f5af
--- /dev/null
+++ b/js/clock.js
@@ -0,0 +1,14 @@
+// prepare footer clock
+let clock = document.getElementById("clock");
+let timeFormat = new Intl.DateTimeFormat("en-US", {
+ dateStyle: "short",
+ timeStyle: "long",
+ timeZone: "America/New_York",
+});
+
+// start clock
+clock.innerText = timeFormat.format(Date.now());
+
+setInterval(() => {
+ clock.innerText = timeFormat.format(Date.now());
+}, 1000); \ No newline at end of file
diff --git a/js/hamburger.js b/js/hamburger.js
new file mode 100644
index 0000000..1ba5a85
--- /dev/null
+++ b/js/hamburger.js
@@ -0,0 +1,35 @@
+let hamburger = document.getElementById("hamburger");
+
+// toggle hamburger menu
+hamburger.addEventListener("click", function () {
+ let navMenu = document.getElementsByTagName("nav")[0];
+ hamburger.classList.toggle("active");
+ navMenu.classList.toggle("active");
+
+ const isExpanded = navMenu.classList.contains("active");
+ hamburger.setAttribute("aria-expanded", isExpanded);
+});
+
+// close hamburger when nav link is clicked
+let navLinks = document.getElementsByClassName("navLink");
+for (let i = 0; i < navLinks.length; i++) {
+ navLinks[i].addEventListener("click", function (event) {
+ let navMenu = document.getElementsByTagName("nav")[0];
+ hamburger.classList.remove("active");
+ navMenu.classList.remove("active");
+ hamburger.setAttribute("aria-expanded", "false");
+ });
+}
+
+// close hamburger when click is outside of menu
+document.addEventListener("click", function (event) {
+ let navMenu = document.getElementsByTagName("nav")[0];
+ const clickOutside =
+ !hamburger.contains(event.target) && !navMenu.contains(event.target);
+
+ if (clickOutside && navMenu.classList.contains("active")) {
+ hamburger.classList.remove("active");
+ navMenu.classList.remove("active");
+ hamburger.setAttribute("aria-expanded", "false");
+ }
+});
diff --git a/projects.html b/projects.html
new file mode 100644
index 0000000..6ece9bd
--- /dev/null
+++ b/projects.html
@@ -0,0 +1,110 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <meta
+ name="description"
+ content="Simon's website"
+ />
+ <title>s-oshea</title>
+ <link href="css/style.css" rel="stylesheet" />
+ <link href="css/layout.css" rel="stylesheet" />
+ <link href="css/hamburger.css" rel="stylesheet" />
+
+ <style>
+
+ /************************************************
+ * DESKTOP RULES
+ */
+ @media screen and (min-width: 851px) {
+ }
+
+ /*
+ * MOBILE RULES
+ */
+ @media screen and (max-width: 850px) {
+ }
+ </style>
+ </head>
+ <body>
+ <a href="#main" class="skipLink">Skip to main content</a>
+
+ <header>
+ <a href="index.html" class="logo" aria-label="Company Logo">s-oshea</a>
+
+ <button
+ id="hamburger"
+ aria-label="Toggle mobile navigation menu"
+ aria-expanded="false"
+ >
+ <span></span>
+ <span></span>
+ <span></span>
+ </button>
+
+ <nav>
+ <a class="navLink activeTab" role="navigation" href="projects.html">projects</a>
+ <a class="navLink" role="navigation" href="testimonials.html">testimonials</a>
+ <a class="navLink" role="navigation" href="more.html">more</a>
+ </nav>
+ </header>
+
+ <main id="main">
+ <!-- project data inserted via script -->
+ </main>
+
+ <footer>
+ <div id="footer-left">
+ <a href="assets/resume.pdf">resume</a>
+ <a href="https://www.linkedin.com/in/simon-o-shea/">linkedin</a>
+ <a href="https://www.github.com/sotrali">github</a>
+ </div>
+ <div id="footer-right">
+ <a href="mailto:vesspa0330@gmail.com">vesspa0330@gmail.com</a>
+ <span>207 701 6630</span>
+ <span id="clock"></span>
+ </div>
+ </footer>
+
+ <script>
+ const projectData = {
+ "Comment Engine" : {
+ "language" : "go",
+ "url" : "",
+ "description" : ""
+ },
+ "Dynamic DNS Client" : {
+ "language" : "go",
+ "url" : "",
+ "description" : ""
+ },
+ "Color Code Conversion Tool" : {
+ "language" : "python",
+ "url" : "",
+ "description" : ""
+ },
+ }
+
+ // render all project data upon page load
+ window.onload = () => {
+ let main = document.getElementsByTagName('main')[0];
+ for (projectName of Object.keys(projectData)) {
+ main.insertAdjacentHTML('beforeend', `
+ <section>
+ <h1>${projectName}</h1>
+ <p>${projectData[projectName].language}</p>
+ <p>${projectData[projectName].description}</p>
+ </section>
+ `);
+ }
+
+ }
+
+ </script>
+
+ <script src="js/hamburger.js"></script>
+ <script src="js/clock.js"></script>
+
+ </body>
+</html>
+