This repository has been archived on 2023-05-27. You can view files and clone it, but cannot push or open issues or pull requests.
site/src/index.php

67 lines
2.1 KiB
PHP
Raw Normal View History

2022-11-23 20:56:06 +00:00
<!DOCTYPE html>
2022-11-26 04:40:11 +00:00
<html lang="en">
2022-11-23 20:56:06 +00:00
<head>
<?php include 'common/include.php' ?>
<?php include 'common/git.php' ?>
2022-11-23 20:56:06 +00:00
<title>Tyler Perkins - Home</title>
2022-11-26 01:33:57 +00:00
<link rel="stylesheet" href="index.css">
2022-11-23 20:56:06 +00:00
</head>
<body>
<?php include 'common/header.php' ?>
2022-11-26 01:33:57 +00:00
<div class="centered top-fade">
2022-12-01 22:56:59 +00:00
<!--<a class="clickable-div" href="about.php"> -->
<div class="index-item single-column tagline-link">
<h1>Hi, I'm Tyler</h1>
<p>I'm a software developer and tinkerer</p>
<?php
$remote_addr = $_SERVER['REMOTE_ADDR'];
$forwarded_addr = $_SERVER['REMOTE_ADDR'];
$home_addr = gethostbyname("gluttony.clortox.com");
if($remote_addr == $home_addr)
echo "<p>Hello from within the home network!</p>"
?>
</div>
<!--</a>-->
2022-11-26 01:33:57 +00:00
</div>
<div class="centered">
<div class="index-item soft-background articles-box">
<div class="index-column">
<h3>Projects</h3>
<div>
<?php
$result = getRecentProjects();
array_splice($result, 6, -1);
foreach($result as $item){
if($item["private"])
continue;
$name = $item["name"];
$url = $item["html_url"];
$lang = $item["language"];
$description = $item["description"];
//build out the html
echo '<a class="git-clickable-div" href="' . $url . '">';
echo '<p>' . $name . ' - ' . $description . '</p>';
echo '</a>';
}
?>
</div>
2022-11-26 01:33:57 +00:00
</div>
<div class="index-column">
<h3>Articles</h3>
<p>To be implemented</p>
2022-11-26 01:33:57 +00:00
</div>
</div>
</div>
2022-11-23 20:56:06 +00:00
<?php include 'common/footer.php' ?>
</body>
</html>