Home page can display the list of all projects in www
This commit is contained in:
@@ -14,10 +14,9 @@ if (!empty($_GET['q'])) {
|
|||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="shortcut icon" href="https://i.imgur.com/ky9oqct.png" type="image/png">
|
|
||||||
<title>Laragon</title>
|
<title>Laragon</title>
|
||||||
<link href="https://fonts.googleapis.com/css?family=Karla:400" rel="stylesheet" type="text/css">
|
<link href="https://fonts.googleapis.com/css?family=Karla:400" rel="stylesheet" type="text/css">
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css" integrity="sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA==" crossorigin="anonymous" />
|
<link rel="shortcut icon" href="https://i.imgur.com/ky9oqct.png" type="image/png">
|
||||||
<style>
|
<style>
|
||||||
*,
|
*,
|
||||||
:before *,
|
:before *,
|
||||||
@@ -35,7 +34,8 @@ if (!empty($_GET['q'])) {
|
|||||||
|
|
||||||
header,
|
header,
|
||||||
main,
|
main,
|
||||||
nav {
|
nav,
|
||||||
|
aside {
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
max-width: 1200px;
|
max-width: 1200px;
|
||||||
@@ -79,17 +79,13 @@ if (!empty($_GET['q'])) {
|
|||||||
a {
|
a {
|
||||||
color: #37ADFF;
|
color: #37ADFF;
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover {
|
a:hover {
|
||||||
color: red;
|
color: red;
|
||||||
}
|
|
||||||
|
|
||||||
a:after {
|
|
||||||
font-family: 'Font Awesome 5 Free';
|
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
margin-left: 1rem;
|
transition: 300ms;
|
||||||
content: '\f35d';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main a {
|
main a {
|
||||||
@@ -101,6 +97,16 @@ if (!empty($_GET['q'])) {
|
|||||||
margin: 1rem 0;
|
margin: 1rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nav a:after {
|
||||||
|
content: '→';
|
||||||
|
margin-left: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert {
|
||||||
|
color: red;
|
||||||
|
font-weight: 900;
|
||||||
|
}
|
||||||
|
|
||||||
@media (min-width: 650px) {
|
@media (min-width: 650px) {
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 10rem;
|
font-size: 10rem;
|
||||||
@@ -111,7 +117,7 @@ if (!empty($_GET['q'])) {
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<img class="header__item header--logo" src="https://i.imgur.com/ky9oqct.png" alt="Laragon logo">
|
<img class="header__item header--logo" src="https://i.imgur.com/ky9oqct.png" alt="Offline">
|
||||||
<h1 class="header__item header--title" title="Laragon">Laragon</h1>
|
<h1 class="header__item header--title" title="Laragon">Laragon</h1>
|
||||||
</header>
|
</header>
|
||||||
<main>
|
<main>
|
||||||
@@ -128,21 +134,34 @@ if (!empty($_GET['q'])) {
|
|||||||
<a title="Getting Started" href="https://laragon.org/docs">Getting Started</a>
|
<a title="Getting Started" href="https://laragon.org/docs">Getting Started</a>
|
||||||
</p>
|
</p>
|
||||||
</main>
|
</main>
|
||||||
|
<?php
|
||||||
|
$dirList = glob('*', GLOB_ONLYDIR);
|
||||||
|
if ($dirList != NULL) :
|
||||||
|
?>
|
||||||
<nav>
|
<nav>
|
||||||
<ul>
|
<ul>
|
||||||
<?php
|
<?php
|
||||||
$variable = scandir('.');
|
foreach ($dirList as $key => $value) :
|
||||||
foreach ($variable as $key => $value) :
|
|
||||||
if ($value != 'desktop.ini' && $value != '.' && $value != '..') :
|
|
||||||
$link = 'https://' . $value . '.test';
|
$link = 'https://' . $value . '.test';
|
||||||
?>
|
?>
|
||||||
<a href="<?php echo $link; ?>" target="_blank"><?php echo $link; ?></a>
|
<a href="<?php echo $link; ?>" target="_blank"><?php echo $link; ?></a>
|
||||||
<?php
|
<?php
|
||||||
endif;
|
|
||||||
endforeach;
|
endforeach;
|
||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
<?php
|
||||||
|
else :
|
||||||
|
?>
|
||||||
|
<aside>
|
||||||
|
<p class="alert">There are no directories, create your first project now</p>
|
||||||
|
<div>
|
||||||
|
<img src="https://i.imgur.com/3Sgu8XI.png" alt="Offline">
|
||||||
|
</div>
|
||||||
|
</aside>
|
||||||
|
<?php
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user