Index for default theme

This commit is contained in:
Pòsweg 2020-05-31 04:32:02 +02:00
parent e52070b3c5
commit 4c2d4bc47b
5 changed files with 62 additions and 8 deletions

View File

@ -1,7 +1,25 @@
<?php
include("include/header.php");
include("include/settings.php");
?>
<!DOCTYPE html>
<html>
<h1>LibreCat</h1>
<head>
<?php include("themes/$theme_name/index.php"); ?>
</head>
<body>
<div class="main-container">
<img class="frontpage-logo" src="/themes/<?= $theme_name?>/assets/logo_1000px.png" alt="LibreCat logo">
<h1 class="title">LibreCat</h1>
<p class="site-description"> Welcome to LibreCat!</p>
<p class="site-description">
LibreCat is a project born out of the lack of Free and
Opens Source solution for a Q&ampA service. It is licensed
under the GPLv3 license and is based on PHP and SQLite3.
No JS is used.
</p>
</div>
</body>
</html>

View File

@ -0,0 +1,23 @@
.main-container{
text-align: center;
padding: 40px;
width: 70%;
margin: auto;
}
.title{
font-weight: bold;
font-size: 4pc;
margin-bottom: 40px;
}
.frontpage-logo{
margin-bottom: 50px;
width: 300px;
}
.site-description{
margin-bottom: 10px;
font-size: 1.25pc;
text-align: left;
}

View File

@ -0,0 +1,4 @@
<?php
include("main.php");
include_css("css/index.css");
?>

View File

@ -1,3 +1,8 @@
<?php
include("main.php");
echo("<style>");
include("css/login.css");
echo("</style>");
?>

View File

@ -1,12 +1,16 @@
<?php
// for some reason inclusion of .css.php fails sometimes on browser, so i have
// to do this workaround
function include_css($path){
echo("<style>");
include($path);
echo("</style>");
}
echo("<link rel='stylesheet' type='text/css' href='/themes/minimalpunk/css/reset.css'>\n\t");
// For some reason inclusion of .css.php fails sometimes on browser, so I have
// to do this workaround
echo("<style>");
include("css/main.css");
include('css/login.css');
echo("</style>");
include_css("css/main.css");
echo("<link rel='shortcut icon' type='image/png' href='/themes/minimalpunk/assets/favicon.png'/>\n\t");
echo("<meta name='viewport' content='width=device-width, initial-scale=1.0'>\n");