diff options
| -rw-r--r-- | app.php | 17 | ||||
| -rw-r--r-- | css/all.css | 18 | ||||
| -rw-r--r-- | css/body.css | 18 | ||||
| -rw-r--r-- | css/container.css | 18 | ||||
| -rw-r--r-- | css/content.css | 18 | ||||
| -rw-r--r-- | css/footer.css | 18 | ||||
| -rw-r--r-- | css/header.css | 18 | ||||
| -rw-r--r-- | html/app.html | 18 | ||||
| -rw-r--r-- | html/footer.html | 18 | ||||
| -rw-r--r-- | html/header.html | 19 | ||||
| -rw-r--r-- | index.html | 1 | ||||
| -rw-r--r-- | php/footer.php | 17 | ||||
| -rw-r--r-- | php/replace.php | 17 | ||||
| -rw-r--r-- | php/templates.php | 17 |
14 files changed, 230 insertions, 2 deletions
@@ -1,4 +1,21 @@ <?php +/* + * GNUfault.org - GNUfault's website + * Copyright (C) 2026 Connor Thomson + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ ini_set('display_errors', 1); error_reporting(E_ALL); diff --git a/css/all.css b/css/all.css index 23c9631..1900236 100644 --- a/css/all.css +++ b/css/all.css @@ -1,3 +1,21 @@ +/* + * GNUfault.org - GNUfault's website + * Copyright (C) 2026 Connor Thomson + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + @import url("body.css"); @import url("content.css"); @import url("header.css"); diff --git a/css/body.css b/css/body.css index 54bc4f1..2d3b1ec 100644 --- a/css/body.css +++ b/css/body.css @@ -1,3 +1,21 @@ +/* + * GNUfault.org - GNUfault's website + * Copyright (C) 2026 Connor Thomson + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + * { box-sizing: border-box; } diff --git a/css/container.css b/css/container.css index aa70303..58babb8 100644 --- a/css/container.css +++ b/css/container.css @@ -1,3 +1,21 @@ +/* + * GNUfault.org - GNUfault's website + * Copyright (C) 2026 Connor Thomson + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + .container { max-width: 960px; width: 100%; diff --git a/css/content.css b/css/content.css index 07352dc..0a86b16 100644 --- a/css/content.css +++ b/css/content.css @@ -1,3 +1,21 @@ +/* + * GNUfault.org - GNUfault's website + * Copyright (C) 2026 Connor Thomson + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + .content { background-color: white; padding: 5px; diff --git a/css/footer.css b/css/footer.css index a252be8..7e3b215 100644 --- a/css/footer.css +++ b/css/footer.css @@ -1,3 +1,21 @@ +/* + * GNUfault.org - GNUfault's website + * Copyright (C) 2026 Connor Thomson + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + .footer { height: 35px; padding: 5px; diff --git a/css/header.css b/css/header.css index 09085e5..ad7afb8 100644 --- a/css/header.css +++ b/css/header.css @@ -1,3 +1,21 @@ +/* + * GNUfault.org - GNUfault's website + * Copyright (C) 2026 Connor Thomson + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + .header { background-image: linear-gradient(180deg, #12A3EB 0%, #095276 100%); display: flex; diff --git a/html/app.html b/html/app.html index 3db26fa..cc933fd 100644 --- a/html/app.html +++ b/html/app.html @@ -1,3 +1,21 @@ +<!-- + -- GNUfault.org - GNUfault's website + -- Copyright (C) 2026 Connor Thomson + -- + -- This program is free software: you can redistribute it and/or modify + -- it under the terms of the GNU Affero General Public License as published by + -- the Free Software Foundation, either version 3 of the License, or + -- (at your option) any later version. + -- + -- This program is distributed in the hope that it will be useful, + -- but WITHOUT ANY WARRANTY; without even the implied warranty of + -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + -- GNU Affero General Public License for more details. + -- + -- You should have received a copy of the GNU Affero General Public License + -- along with this program. If not, see <https://www.gnu.org/licenses/>. + --> + <!DOCTYPE html> <html lang="en"> <head> diff --git a/html/footer.html b/html/footer.html index d1599f9..3a15050 100644 --- a/html/footer.html +++ b/html/footer.html @@ -1,3 +1,21 @@ +<!-- + -- GNUfault.org - GNUfault's website + -- Copyright (C) 2026 Connor Thomson + -- + -- This program is free software: you can redistribute it and/or modify + -- it under the terms of the GNU Affero General Public License as published by + -- the Free Software Foundation, either version 3 of the License, or + -- (at your option) any later version. + -- + -- This program is distributed in the hope that it will be useful, + -- but WITHOUT ANY WARRANTY; without even the implied warranty of + -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + -- GNU Affero General Public License for more details. + -- + -- You should have received a copy of the GNU Affero General Public License + -- along with this program. If not, see <https://www.gnu.org/licenses/>. + --> + <div class="footer"> <h6>© {{YEAR}} Connor Thomson. Content licensed under the <a href=https://creativecommons.org/licenses/by-sa/4.0/>Creative Commons Attribution-ShareAlike 4.0 International</a> license unless otherwise noted.</h6> </div> diff --git a/html/header.html b/html/header.html index 98036d4..5035bfa 100644 --- a/html/header.html +++ b/html/header.html @@ -1,4 +1,21 @@ -<!-- header.html --> +<!-- + -- GNUfault.org - GNUfault's website + -- Copyright (C) 2026 Connor Thomson + -- + -- This program is free software: you can redistribute it and/or modify + -- it under the terms of the GNU Affero General Public License as published by + -- the Free Software Foundation, either version 3 of the License, or + -- (at your option) any later version. + -- + -- This program is distributed in the hope that it will be useful, + -- but WITHOUT ANY WARRANTY; without even the implied warranty of + -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + -- GNU Affero General Public License for more details. + -- + -- You should have received a copy of the GNU Affero General Public License + -- along with this program. If not, see <https://www.gnu.org/licenses/>. + --> + <div class="header"> <a href="/"> <div class="banner"> diff --git a/index.html b/index.html deleted file mode 100644 index a9e4a76..0000000 --- a/index.html +++ /dev/null @@ -1 +0,0 @@ -<p>If you can see this, the templates and that stuff is working!</p> diff --git a/php/footer.php b/php/footer.php index 4a32baf..0d9c8b6 100644 --- a/php/footer.php +++ b/php/footer.php @@ -1,4 +1,21 @@ <?php +/* + * GNUfault.org - GNUfault's website + * Copyright (C) 2026 Connor Thomson + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ require_once PHP_DIR . 'replace.php'; diff --git a/php/replace.php b/php/replace.php index 70fdd25..9cdc5bf 100644 --- a/php/replace.php +++ b/php/replace.php @@ -1,4 +1,21 @@ <?php +/* + * GNUfault.org - GNUfault's website + * Copyright (C) 2026 Connor Thomson + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ function replace(string $templatePath, array $replacements = []): string { $html = file_get_contents($templatePath); diff --git a/php/templates.php b/php/templates.php index 4ead3f8..dfd4063 100644 --- a/php/templates.php +++ b/php/templates.php @@ -1,4 +1,21 @@ <?php +/* + * GNUfault.org - GNUfault's website + * Copyright (C) 2026 Connor Thomson + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ function render_component(string $componentPath): string { ob_start(); |
