diff options
Diffstat (limited to 'projects')
-rw-r--r-- | projects/index.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/projects/index.php b/projects/index.php new file mode 100644 index 0000000..4521314 --- /dev/null +++ b/projects/index.php @@ -0,0 +1,24 @@ +<?php $title = "Projects"; require_once $_SERVER["DOCUMENT_ROOT"] . "/includes/gui/header.php"; ?> + +<div class="container"> + <br> + <h1>Projects</h1> + <br> + + <div class="row"> + <?php foreach (json_decode(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/data/projects.json"), true) as $project): ?> + <div class="col"> + <div class="card stylized-card"> + <div class="card-body"> + <img class="stylized-card-icon" src="<?= $project["icon"] ?>" alt=""> + <h4 class="card-title"><?= $project["name"] ?></h4> + <p class="card-text"><?= $project["description"] ?></p> + <a href="<?= $project["source"] ?>" target="_blank" class="btn btn-outline-light">View Project</a> + </div> + </div> + </div> + <?php endforeach; ?> + </div> +</div> + +<?php require_once $_SERVER["DOCUMENT_ROOT"] . "/includes/gui/footer.php"; ?>
\ No newline at end of file |