diff options
author | Minteck <contact@minteck.org> | 2022-06-16 11:37:18 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-06-16 11:37:18 +0200 |
commit | 060473d7e7da51bf372b3d2958580b8f65f4769b (patch) | |
tree | 0ccefc7dd4ba076474a09e2d8aa5aa6df83b8f20 /old/index.php | |
parent | 825a95e13bd2e712544a5ba40c739da053d90f1c (diff) | |
download | ember-060473d7e7da51bf372b3d2958580b8f65f4769b.tar.gz ember-060473d7e7da51bf372b3d2958580b8f65f4769b.tar.bz2 ember-060473d7e7da51bf372b3d2958580b8f65f4769b.zip |
This is the new Ember
Diffstat (limited to 'old/index.php')
-rw-r--r-- | old/index.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/old/index.php b/old/index.php new file mode 100644 index 0000000..1897f36 --- /dev/null +++ b/old/index.php @@ -0,0 +1,36 @@ +<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/header.php"; global $Parsedown; ?> +<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/navigation.php"; ?> + +<div id="homepage"> + <div id="hero"> + <br> + <img src="/assets/img/icon.svg" id="hero-img" alt=""> + <br> + <br> + <br> + <h1>Minteck</h1> + <h4>Your typical keyboard-addicted pony</h4> + </div> + + <br> + + <div class="container"> + <div class="row"> + <?php foreach (json_decode(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/includes/fetcher/projects.json"), true) as $project): if (!$project['archive'] && $project['showcase']): ?> + <div class="col-lg-4"> + <div class="card stylized-card"> + <div class="card-body"> + <img class="stylized-card-icon" <?php if (!isset($project["icon"])): ?>style="background: hsla(<?= hexdec(substr($project['id'], 0, 2)) ?>, 100%, 50%, 0.1) !important;"<?php endif; ?> src="<?= isset($project["icon"]) ? $project["icon"] . "?width=96" : "/assets/img/letters/" . getLetters($project['name']) . ".png" ?>" alt=""> + <h4 class="card-title"><?= $project["name"] ?></h4> + <p class="card-text"><?= preg_replace('/[|.?!;](.*)/m', '', strip_tags($Parsedown->line(trim($project["description"])))) ?></p> + <a href="/projects?<?= $project["id"] ?>" class="btn btn-outline-light">View Project</a> + <div class="small text-muted" style="margin-top:10px;">Updated <?= timeAgo($project['date']) ?></div> + </div> + </div> + </div> + <?php endif; endforeach; ?> + </div> + </div> +</div> + +<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/footer.php"; ?>
\ No newline at end of file |