basic project card and projects page setup

This commit is contained in:
Josh Ashton
2023-05-10 22:40:04 -06:00
parent 1e7af0b94b
commit 6d1099590e
108 changed files with 673 additions and 154 deletions
BIN
View File
Binary file not shown.
-8
View File
@@ -1,8 +0,0 @@
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php80” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php80___lsphp .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
+52
View File
@@ -0,0 +1,52 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- CSS only -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<link href="css/style.css" rel="stylesheet">
<title>Josh Ashton</title>
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="index.html">Josh Ashton</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav nav-fill w-100">
<a class="nav-link" href="projects">
<li class="nav-item">Projects</li>
</a>
<a class="nav-link" href="about.html">
<li class="nav-item">About</li>
</a>
<a class="nav-link" href="contact.html">
<li class="nav-item">Contact</li>
</a>
</ul>
</div>
</nav>
<p>About me</p>
</body>
<footer>
<!-- JavaScript Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
</footer>
</html>
+52
View File
@@ -0,0 +1,52 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- CSS only -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<link href="css/style.css" rel="stylesheet">
<title>Josh Ashton</title>
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="index.html">Josh Ashton</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav nav-fill w-100">
<a class="nav-link" href="projects">
<li class="nav-item">Projects</li>
</a>
<a class="nav-link" href="about.html">
<li class="nav-item">About</li>
</a>
<a class="nav-link" href="contact.html">
<li class="nav-item">Contact</li>
</a>
</ul>
</div>
</nav>
<p>Contact me</p>
</body>
<footer>
<!-- JavaScript Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
</footer>
</html>
+16 -30
View File
@@ -21,6 +21,7 @@ body {
background-position: right,center;
}
}
/* TEXT */
* {
font-family: Lato, sans-serif;
@@ -128,40 +129,11 @@ p {
padding-bottom: 1vw;
}
.cards {
display: flex;
}
.card {
flex: 1;
background-color: white;
color: #4A245E;
}
#getNewQuote {
margin-top: 5vw;
.card-text {
font-size: 2vw;
border: 5px #4A245E solid;
border-radius: 1vw;
padding: 1vw;
background-color: #4A245E;
color: white;
animation: 500ms;
}
#getNewQuote:hover {
background-color: white;
color: #4A245E;
border: 5px #4A245E solid;
}
#person {
padding: 1vw;
}
@media (max-width: 991px) {
h1 {
font-size: 12vw;
}
@@ -174,6 +146,10 @@ p {
font-size: 6vw;
}
h4 {
font-size: 4vw;
}
p, .nav-link, .nav-link > .nav-item {
font-size: 3vw;
}
@@ -181,5 +157,15 @@ p {
.nav-link > .nav-item {
font-weight: bold;
}
}
/*Buttons*/
.btn {
background-color: #4A245E;
border: none;
transition: background-color 300ms;
}
.btn:hover {
background-color: #673283;
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

-76
View File
@@ -1,76 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML5 Canvas</title>
<link rel="icon" href="https://fav.farm/🔥" />
</head>
<body>
<ul>
<li id="0" class="color">Red</li>
<li id="122" class="color">Green</li>
<li id="255" class="color">Blue</li>
</ul>
<canvas id="draw" width="800" height="800"></canvas>
<script>
let isDrawing = false;
let lastX = 0;
let lastY = 0;
const canvas = document.querySelector('#draw');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
canvas.addEventListener('mousemove', draw);
canvas.addEventListener('mouseup', () => isDrawing = false);
canvas.addEventListener('mouseout', () => isDrawing = false);
canvas.addEventListener('mousedown', (e) => {
isDrawing = true;
[lastX, lastY] = [e.offsetX, e.offsetY];
});
const ctx = canvas.getContext('2d');
ctx.strokeStyle = '#BADA55';
ctx.lineJoin = 'round';
ctx.lineCap = 'round';
const buttons = document.querySelectorAll('.color');
buttons.forEach(button => button.addEventListener('click', updateColor));
function updateColor() {
ctx.strokeStyle = `hsl(${this.id}, 100%, 50%)`;
}
function draw(e) {
if(!isDrawing) return;
ctx.beginPath();
ctx.moveTo(lastX, lastY);
[lastX, lastY] = [e.offsetX, e.offsetY];
ctx.lineTo(lastX, lastY);
ctx.stroke();
}
</script>
<style>
html, body {
margin: 0;
}
ul {
display: inline-block;
list-style-type: none;
margin: 0;
padding: 0;
}
li {
float: left;
display: block;
padding: 5px;
border: 2px solid black;
}
</style>
</body>
</html>
+38 -27
View File
@@ -5,64 +5,75 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- CSS only -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<link href="css/style.css" rel="stylesheet">
<audio>
Your browser isn't invited for super fun audio time.
</audio>
<title>Joshua Ashton</title>
<title>Josh Ashton</title>
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="">Josh Ashton</a>
<a class="navbar-brand" href="index.html">Josh Ashton</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav nav-fill w-100">
<a class="nav-link" target="_blank" href="1430">
<li class="nav-item">CSIS 1430</li>
<a class="nav-link" href="projects">
<li class="nav-item">Projects</li>
</a>
<a class="nav-link" href="about.html">
<li class="nav-item">About</li>
</a>
<a class="nav-link" href="contact.html">
<li class="nav-item">Contact</li>
</a>
</ul>
</div>
</nav>
<div class="custom-container" id="splash">
<h1 class="light-text">Hi, I'm Josh Ashton!</h1>
<h2 class="light-text">Aspiring developer at SLCC</h2>
</div>
<h3 class="light-text">Projects I'm Proud of</h3>
<div class="cards">
<div class="custom-container card">
<h4 class="dark-text">1st Project to Highlight</h4>
</div>
<div class="custom-container card">
<h4 class="dark-text">2nd Project to Highlight</h4>
</div>
<div class="custom-container card">
<h4 class="dark-text">3rd Project to Highlight</h4>
</div>
</div>
<div class="row custom-container cards">
<h3 class="light-text">Featured Projects</h3>
</body>
<div class="col">
<div class="card">
<img class="card-img-top" src="/public_html/img/dnd.png" alt="Card image cap">
<div class="card-body">
<h2 class="card-title dark-text">DnD Character Builder</h2>
<p class="dark-text">Dungeons and Dragons character builder app, developed in Java.</p>
<a target="_blank" href="https://github.com/quaxlyqueen/dnd" class="btn btn-primary">View Code on Github</a>
</div>
</div>
</div>
<div class="col">
<div class="card">
<img class="card-img-top" src="/public_html/img/graph.png" alt="Card image cap">
<div class="card-body">
<h2 class="card-title dark-text">Graph Visualizer</h2>
<p class="dark-text">Visual and interactive representation of a graph data structure, developed in Java.</p>
<a target="_blank" href="https://github.com/quaxlyqueen/2420-graph-visualizer" class="btn btn-primary">View Code on Github</a>
</div>
</div>
</div>
</div>
</body>
<footer>
<!-- JavaScript Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
<script src="js/script.js"></script>
</footer>

Before

Width:  |  Height:  |  Size: 36 MiB

After

Width:  |  Height:  |  Size: 36 MiB

Before

Width:  |  Height:  |  Size: 8.4 MiB

After

Width:  |  Height:  |  Size: 8.4 MiB

Before

Width:  |  Height:  |  Size: 2.4 MiB

After

Width:  |  Height:  |  Size: 2.4 MiB

Before

Width:  |  Height:  |  Size: 3.5 MiB

After

Width:  |  Height:  |  Size: 3.5 MiB

Before

Width:  |  Height:  |  Size: 2.0 MiB

After

Width:  |  Height:  |  Size: 2.0 MiB

Before

Width:  |  Height:  |  Size: 3.7 MiB

After

Width:  |  Height:  |  Size: 3.7 MiB

Before

Width:  |  Height:  |  Size: 6.3 MiB

After

Width:  |  Height:  |  Size: 6.3 MiB

Before

Width:  |  Height:  |  Size: 2.8 MiB

After

Width:  |  Height:  |  Size: 2.8 MiB

Before

Width:  |  Height:  |  Size: 3.2 MiB

After

Width:  |  Height:  |  Size: 3.2 MiB

@@ -23,7 +23,7 @@
<body>
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="">Josh Ashton</a>
<a class="navbar-brand" href="www.joshuaashton.com">Josh Ashton</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

Before

Width:  |  Height:  |  Size: 8.4 MiB

After

Width:  |  Height:  |  Size: 8.4 MiB

Before

Width:  |  Height:  |  Size: 2.4 MiB

After

Width:  |  Height:  |  Size: 2.4 MiB

Before

Width:  |  Height:  |  Size: 3.5 MiB

After

Width:  |  Height:  |  Size: 3.5 MiB

Before

Width:  |  Height:  |  Size: 2.0 MiB

After

Width:  |  Height:  |  Size: 2.0 MiB

Before

Width:  |  Height:  |  Size: 3.7 MiB

After

Width:  |  Height:  |  Size: 3.7 MiB

Before

Width:  |  Height:  |  Size: 6.3 MiB

After

Width:  |  Height:  |  Size: 6.3 MiB

Before

Width:  |  Height:  |  Size: 2.8 MiB

After

Width:  |  Height:  |  Size: 2.8 MiB

Before

Width:  |  Height:  |  Size: 3.2 MiB

After

Width:  |  Height:  |  Size: 3.2 MiB

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Some files were not shown because too many files have changed in this diff Show More