diff --git a/webseite/assets/css/topic.css b/webseite/assets/css/topic.css index 4a1674e..6b6fc8b 100644 --- a/webseite/assets/css/topic.css +++ b/webseite/assets/css/topic.css @@ -345,4 +345,12 @@ body { border: 2px solid; border-radius: 8px; text-align: center; +} + +.content { + margin: auto; + padding: 2rem; + background: white; + border-radius: 1rem; + box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); } \ No newline at end of file diff --git a/webseite/index.php b/webseite/index.php index cfec01a..e764484 100644 --- a/webseite/index.php +++ b/webseite/index.php @@ -55,10 +55,11 @@ session_start(); $subjects = SubjectData::getAll(); foreach ($subjects as $subject) { - // receive number of exercises for all topics of a subject - $numOfExcercises = 0; + $numOfFiles = 0; + $numOfTasks = 0; foreach ($subject->topics as $topic) { - $numOfExcercises += count($topic->files); + $numOfFiles += count($topic->getFiles()); + $numOfTasks += count($topic->getTasks()); } ?> @@ -71,14 +72,18 @@ session_start();
description); ?>
-