Skip to content

Commit

Permalink
starting over
Browse files Browse the repository at this point in the history
  • Loading branch information
kadeska committed Dec 8, 2024
1 parent 019e3dc commit 505cb38
Show file tree
Hide file tree
Showing 21 changed files with 82 additions and 238 deletions.
1 change: 1 addition & 0 deletions Developer_Notes.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
- Note to self, make sure you update the host server code after comitting to github.


31 changes: 26 additions & 5 deletions local_test/index.php
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
<?php

$heading = '';

require "src/php/views/index.view.php";
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple Portfolio</title>
<link rel="stylesheet" href="php/css/styles.css">
</head>
<body>
<header>
<h1>My Portfolio</h1>
</header>
<div class="portfolio">
<?php
include 'portfolio.php';
foreach ($portfolio_items as $item) {
echo '<div class="portfolio-item">';
echo '<h2>' . htmlspecialchars($item['title']) . '</h2>';
echo '<p>' . htmlspecialchars($item['description']) . '</p>';
echo '<a href="' . htmlspecialchars($item['link']) . '" target="_blank">View Project</a>';
echo '</div>';
}
?>
</div>
</body>
</html>
5 changes: 0 additions & 5 deletions local_test/src/about.php

This file was deleted.

5 changes: 0 additions & 5 deletions local_test/src/contact.php

This file was deleted.

5 changes: 0 additions & 5 deletions local_test/src/help.php

This file was deleted.

5 changes: 0 additions & 5 deletions local_test/src/index.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,3 @@ function pre_r($array){
print_r($array);
// echo '</pre>';
}

require "php/views/ceramics.view.php";
36 changes: 36 additions & 0 deletions local_test/src/php/css/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
header {
background-color: #333;
color: #fff;
padding: 1rem;
text-align: center;
}
.portfolio {
display: flex;
flex-direction: column;
align-items: center;
margin: 2rem;
}
.portfolio-item {
background: #fff;
border: 1px solid #ccc;
padding: 1rem;
margin: 1rem;
width: 80%;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.portfolio-item h2 {
margin: 0;
}
.portfolio-item a {
color: #007bff;
text-decoration: none;
}
.portfolio-item a:hover {
text-decoration: underline;
}
19 changes: 19 additions & 0 deletions local_test/src/php/portfolio.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php
$portfolio_items = [
[
"title" => "Project 1",
"description" => "A description of Project 1.",
"link" => "https://example.com/project1"
],
[
"title" => "Project 2",
"description" => "A description of Project 2.",
"link" => "https://example.com/project2"
],
[
"title" => "Project 3",
"description" => "A description of Project 3.",
"link" => "https://example.com/project3"
]
];
?>
17 changes: 0 additions & 17 deletions local_test/src/php/views/about.view.php

This file was deleted.

20 changes: 0 additions & 20 deletions local_test/src/php/views/ceramics.view.php

This file was deleted.

13 changes: 0 additions & 13 deletions local_test/src/php/views/contact.view.php

This file was deleted.

13 changes: 0 additions & 13 deletions local_test/src/php/views/help.view.php

This file was deleted.

42 changes: 0 additions & 42 deletions local_test/src/php/views/index.view.php

This file was deleted.

3 changes: 0 additions & 3 deletions local_test/src/php/views/partials/footer.php

This file was deleted.

9 changes: 0 additions & 9 deletions local_test/src/php/views/partials/head.php

This file was deleted.

12 changes: 0 additions & 12 deletions local_test/src/php/views/partials/nav.php

This file was deleted.

33 changes: 0 additions & 33 deletions local_test/src/php/views/projects.view.php

This file was deleted.

39 changes: 0 additions & 39 deletions local_test/src/php/views/projects_game_design.view.php

This file was deleted.

5 changes: 0 additions & 5 deletions local_test/src/projects.php

This file was deleted.

5 changes: 0 additions & 5 deletions local_test/src/projects_game_design.php

This file was deleted.

0 comments on commit 505cb38

Please sign in to comment.