Skip to content

Commit

Permalink
php: Create index.php and frednora.php
Browse files Browse the repository at this point in the history
  • Loading branch information
frednora committed Jul 1, 2024
1 parent 9e546fe commit eba1556
Show file tree
Hide file tree
Showing 3 changed files with 143 additions and 0 deletions.
26 changes: 26 additions & 0 deletions assets/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>

<html lang="en">

<head>
<meta charset="UTF-8">
<title>Assets</title>
<meta
name="viewport"
content="width=device-width; initial-scale=1.0">
<meta
name="description"
content="This is the place where You can find resources for this webpage.">
<meta
name="author"
content="Fred Nora">
<link href="./css/gramado.css" rel="stylesheet">
</head>

<body>
<header class="gramado-header">
<br>This is the place where You can find resources for this webpage.
</header>
</body>

</html>
113 changes: 113 additions & 0 deletions frednora.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
<!DOCTYPE html>
<!-- Document created by Fred Nora -->
<!-- Credits: A. de Regt -->

<html lang="en">

<head>
<meta charset="UTF-8">
<meta
name="viewport"
content="width=device-width, initial-scale=1.0">
<meta
name="description"
content="This app is a fork from Christmas2020 app, created by A. de Regt.">
<meta
name="author"
content="A de Regt">

<title>Christmas <?php echo date("Y"); ?></title>
<style>
/*
body {
background-color: green
}
*/

.core {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border-radius: .33rem;
padding: 10px;
background-color: lightyellow; /*#44ab44;*/
box-shadow: 10px 10px lightgray;
text-align: center;
}

.button {
border: solid black 1px;
border-radius: .25rem;
padding: 10px;
color: black;
text-decoration: auto;
text-align: center;
}

.noicon {
padding-left: 30px;
}

.iconpos {
}

.button:hover{
background-color: lightyellow;
}
</style>

<!-- Prefetch -->
<link rel="dns-prefetch" href="https://github.com/"/>

<!-- Includes -->
<link href="./assets/css/gramado.css" rel="stylesheet">

</head>

<body>

<div class="core">
<!-- Header -->
<h1>Fred Nora's PHP application</h1>

<br>
<?php
$files = scandir(getcwd());
foreach ($files as $file)
{
if ( is_dir($file) && ctype_alnum($file) )
{
?>

<!-- Button -->
<br/>
<a href="/<?php echo $file; ?>/index.html"><?php echo $file; ?>/</a>

<?php
}
}
?>

<!-- Button -->
<br/>
<br/>
<a
class="button"
href="https://github.com/frednora/frednora.github.io">
<img class="iconpos"
width="20"
height="20"
src="https://github.com/fluidicon.png"> See code at GitHub
</a>

<br/>
<br/>
<br/>
</div>

<!-- Cool scripts goes here! -->
<script src="./assets/js/gramado.js"></script>
</body>

</html>
4 changes: 4 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php
define('USE_XXX', true);
require('./frednora.php');
?>

0 comments on commit eba1556

Please sign in to comment.