Einrückungen und Zeilenumbrüche vereinheitlicht
This commit is contained in:
@@ -240,6 +240,7 @@ body {
|
|||||||
.search-container {
|
.search-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-toggle {
|
.menu-toggle {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
}
|
}
|
||||||
@@ -298,8 +299,12 @@ body {
|
|||||||
|
|
||||||
/* Add floating animation for icons */
|
/* Add floating animation for icons */
|
||||||
@keyframes float {
|
@keyframes float {
|
||||||
0%, 100% { transform: translateY(0); }
|
0%, 100% {
|
||||||
50% { transform: translateY(-10px); }
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
transform: translateY(-10px);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.theme-toggle:hover {
|
.theme-toggle:hover {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/* Corporate Design Colors */
|
/* Corporate Design Colors */
|
||||||
:root {
|
:root {
|
||||||
--primary-color: #5265A0; /* HSGG Blau */
|
--primary-color: #5265A0; /* HSGG Blau */
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ class SubjectData
|
|||||||
$subjectDirectory = "config/subjects/$subjectId";
|
$subjectDirectory = "config/subjects/$subjectId";
|
||||||
$filename = "$subjectDirectory/properties.json";
|
$filename = "$subjectDirectory/properties.json";
|
||||||
$data = Util::parseJsonFromFile($filename);
|
$data = Util::parseJsonFromFile($filename);
|
||||||
if(!isset($data)) {
|
if (!isset($data)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ class TopicData
|
|||||||
$topicsDirectory = "config/subjects/$subjectId/topics";
|
$topicsDirectory = "config/subjects/$subjectId/topics";
|
||||||
$topicDataDirectory = "$topicsDirectory/$topicId";
|
$topicDataDirectory = "$topicsDirectory/$topicId";
|
||||||
$data = Util::parseJsonFromFile("$topicDataDirectory/properties.json");
|
$data = Util::parseJsonFromFile("$topicDataDirectory/properties.json");
|
||||||
if(!isset($data)) {
|
if (!isset($data)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ class Util
|
|||||||
static function parseJsonFromFile(string $filename): mixed
|
static function parseJsonFromFile(string $filename): mixed
|
||||||
{
|
{
|
||||||
$content = self::readFileContent($filename);
|
$content = self::readFileContent($filename);
|
||||||
if(!isset($content)) {
|
if (!isset($content)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return json_decode($content);
|
return json_decode($content);
|
||||||
|
|||||||
@@ -51,7 +51,8 @@ $topics = $subjectData->topics;
|
|||||||
<button class="menu-toggle h-12 w-12 border-2 p-1 hover:border-[<?php echo($subjectData->color); ?>]">
|
<button class="menu-toggle h-12 w-12 border-2 p-1 hover:border-[<?php echo($subjectData->color); ?>]">
|
||||||
<i class="fas fa-bars"></i>
|
<i class="fas fa-bars"></i>
|
||||||
</button>
|
</button>
|
||||||
<input type="text" class="search-box p-3 border-2 w-full focus:border-[<?php echo($subjectData->color); ?>]" id="searchInput" placeholder="Suche nach Themen, Übungen oder Hilfe..."
|
<input type="text" class="search-box p-3 border-2 w-full focus:border-[<?php echo($subjectData->color); ?>]"
|
||||||
|
id="searchInput" placeholder="Suche nach Themen, Übungen oder Hilfe..."
|
||||||
oninput="handleSearch()">
|
oninput="handleSearch()">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -108,7 +109,8 @@ $topics = $subjectData->topics;
|
|||||||
|
|
||||||
<a onclick="event.stopPropagation();"
|
<a onclick="event.stopPropagation();"
|
||||||
href="<?php echo("config/subjects/$subjectData->id/topics/$topicData->id/$fileName") ?>"
|
href="<?php echo("config/subjects/$subjectData->id/topics/$topicData->id/$fileName") ?>"
|
||||||
target="_blank" download class="download-btn border-2 border-[<?php echo($subjectData->color); ?>]">
|
target="_blank" download
|
||||||
|
class="download-btn border-2 border-[<?php echo($subjectData->color); ?>]">
|
||||||
<i class="fas fa-file-pdf"></i>
|
<i class="fas fa-file-pdf"></i>
|
||||||
<?php echo($fileName); ?>
|
<?php echo($fileName); ?>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -73,8 +73,10 @@ if (!isset($topicData)) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<li onclick="event.stopPropagation();" class="border-[<?php echo($subjectData->color); ?>] border-2">
|
<li onclick="event.stopPropagation();"
|
||||||
<a href='<?php echo("topic.php?subject=$subjectData->id&topic=$relatedTopic->id") ?>' class="block">
|
class="border-[<?php echo($subjectData->color); ?>] border-2">
|
||||||
|
<a href='<?php echo("topic.php?subject=$subjectData->id&topic=$relatedTopic->id") ?>'
|
||||||
|
class="block">
|
||||||
<?php echo($relatedTopic->displayName); ?>
|
<?php echo($relatedTopic->displayName); ?>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
@@ -101,7 +103,8 @@ if (!isset($topicData)) {
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<a href='<?php echo("config/subjects/$subjectData->id/topics/$topicData->id/$fileName") ?>'
|
<a href='<?php echo("config/subjects/$subjectData->id/topics/$topicData->id/$fileName") ?>'
|
||||||
target="_blank" download class="download-btn border-[<?php echo($subjectData->color); ?>] border-2">
|
target="_blank" download
|
||||||
|
class="download-btn border-[<?php echo($subjectData->color); ?>] border-2">
|
||||||
<i class="fas fa-file-pdf"></i>
|
<i class="fas fa-file-pdf"></i>
|
||||||
<?php echo($fileName); ?>
|
<?php echo($fileName); ?>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user