added project files

This commit is contained in:
Andreas Schaafsma
2021-05-19 12:55:06 +02:00
parent cccec24361
commit 4766ed7fb0
61 changed files with 961 additions and 0 deletions

35
porto/index.php Normal file
View File

@@ -0,0 +1,35 @@
<?php
$paginas = ["./home", "./projecten", "./aboutme"];
$path = "";
$rootdir = "./";
$selectedLinkColor = "#ff4444";
if(isset($_GET['path'])){
$path = $_GET['path'];
$rootdir = "./";
}else{
header('Location: '."home");
}
echo('<style>#'.$path.'{color:'.$selectedLinkColor.';}</style>');
switch($path){
case 'home':
include_once("pages/home.php");
break;
case 'projecten':
include_once("pages/projecten.php");
break;
case 'aboutme':
include_once("pages/aboutme.php");
break;
case 'project':
include_once("pages/project.php");
break;
default:
include_once("pages/404.php");
break;
}
?>