aboutsummaryrefslogtreecommitdiff
path: root/ExamTemplate/Web
diff options
context:
space:
mode:
Diffstat (limited to 'ExamTemplate/Web')
-rw-r--r--ExamTemplate/Web/Views/Shared/_FooterContent.cshtml8
-rw-r--r--ExamTemplate/Web/Views/Shared/_Layout.cshtml4
-rw-r--r--ExamTemplate/Web/wwwroot/css/styles.css22
3 files changed, 23 insertions, 11 deletions
diff --git a/ExamTemplate/Web/Views/Shared/_FooterContent.cshtml b/ExamTemplate/Web/Views/Shared/_FooterContent.cshtml
new file mode 100644
index 0000000..8ab9fc3
--- /dev/null
+++ b/ExamTemplate/Web/Views/Shared/_FooterContent.cshtml
@@ -0,0 +1,8 @@
+<div class="border-top box-shadow">
+ <div class="footer-content middle-content-container">
+ <section>
+ IT-kariera Exam Template - 2021
+ </section>
+ <div class="flex-spacer"></div>
+ </div>
+</div>
diff --git a/ExamTemplate/Web/Views/Shared/_Layout.cshtml b/ExamTemplate/Web/Views/Shared/_Layout.cshtml
index 8388ea8..dd7bf82 100644
--- a/ExamTemplate/Web/Views/Shared/_Layout.cshtml
+++ b/ExamTemplate/Web/Views/Shared/_Layout.cshtml
@@ -19,9 +19,7 @@
</main>
<footer class="border-top box-shadow">
- <div class="middle-content-container">
- IT-kariera Exam Template - 2021
- </div>
+ <partial name="_FooterContent.cshtml" />
</footer>
</body>
</html>
diff --git a/ExamTemplate/Web/wwwroot/css/styles.css b/ExamTemplate/Web/wwwroot/css/styles.css
index 5819b09..a4efd0c 100644
--- a/ExamTemplate/Web/wwwroot/css/styles.css
+++ b/ExamTemplate/Web/wwwroot/css/styles.css
@@ -48,14 +48,16 @@
/* Navbar and footer */
-.navbar {
+.navbar, .footer-content {
width: 100%;
- background-color: white;
-}
+ min-height: 45px;
-.navbar, footer {
padding-top: 8px;
padding-bottom: 8px;
+
+ display: flex;
+ align-items: center;
+ justify-content: center;
}
.navbar section > :not(*:first-child) {
@@ -92,18 +94,22 @@
form {
display: flex;
flex-direction: column;
-
align-items: center;
justify-content: center;
- max-width: 300px;
- margin-left: auto;
- margin-right: auto;
+ width: fit-content;
}
.main > div > form {
margin-top: 10px;
}
+.main > div > form:first-child {
+ width: 100%;
+ max-width: 300px;
+ margin-left: auto;
+ margin-right: auto;
+}
+
form > * {
width: 100%;
box-sizing: border-box;