-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
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. | ||
|
||
|
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> |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,5 +21,3 @@ function pre_r($array){ | |
print_r($array); | ||
// echo '</pre>'; | ||
} | ||
|
||
require "php/views/ceramics.view.php"; |
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; | ||
} |
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" | ||
] | ||
]; | ||
?> |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.