From ef96bd935b254c5a15364da098bc8a506b412bcc Mon Sep 17 00:00:00 2001 From: xaseiresh Date: Tue, 30 May 2023 00:10:43 +0200 Subject: [PATCH] feat: :sparkles: add basic first website nibbles --- .htaccess | 6 ++++++ index.php | 11 +++++++++++ src/dergstyle.css | 14 ++++++++++++++ templates/about.html | 3 +++ templates/index.html | 15 +++++++++++++++ templates/root.dergplate | 18 ++++++++++++++++++ 6 files changed, 67 insertions(+) create mode 100644 .htaccess create mode 100644 index.php create mode 100644 src/dergstyle.css create mode 100644 templates/about.html create mode 100644 templates/index.html create mode 100644 templates/root.dergplate diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..1e79fc5 --- /dev/null +++ b/.htaccess @@ -0,0 +1,6 @@ + +RedirectMatch 404 /\.git + +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} -f +RewriteRule (.*) /src/$0 [END] diff --git a/index.php b/index.php new file mode 100644 index 0000000..0b7c7f4 --- /dev/null +++ b/index.php @@ -0,0 +1,11 @@ +render('index.html',[ + "a_variable" => "is very spicy. In a good way." +]); +?> diff --git a/src/dergstyle.css b/src/dergstyle.css new file mode 100644 index 0000000..9001622 --- /dev/null +++ b/src/dergstyle.css @@ -0,0 +1,14 @@ + +body { + color: #ddd; + background: #151515; +} + +#big_title { + text-align: center; + margin-bottom: 0.3em; +} +#title_separator { + height: 2px; + background-color: #ddd; +} diff --git a/templates/about.html b/templates/about.html new file mode 100644 index 0000000..c8bd6f5 --- /dev/null +++ b/templates/about.html @@ -0,0 +1,3 @@ + + +{{ }} diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..53bde4e --- /dev/null +++ b/templates/index.html @@ -0,0 +1,15 @@ + + + + Lucidragons' Fire + + + +

The dergsite

+
+ + + + diff --git a/templates/root.dergplate b/templates/root.dergplate new file mode 100644 index 0000000..fa4e62b --- /dev/null +++ b/templates/root.dergplate @@ -0,0 +1,18 @@ + + + PHP Test + + + Hello World

'; + + require 'src/templater.php'; + + $test = new TemplateFillout('test.dergplate'); + + $test->render(); + + ?> + +