Polishing of Uni quizes, and some styling

This commit is contained in:
2025-01-12 23:59:17 +01:00
parent e2d141eb09
commit 425e583bbe
21 changed files with 393 additions and 563 deletions

View File

@ -91,6 +91,9 @@ body {
margin-right: -15px;
margin-bottom: 5px;
}
.container{
width: 100%;
}
}
/* Main Section */

130
static/css/post.css Normal file
View File

@ -0,0 +1,130 @@
.main {
margin: 50px auto;
display: flex;
flex-direction: column;
width: 90%;
max-width: 1200px;
background: rgba(255, 255, 255, 0.1);
border-radius: 16px;
overflow: hidden;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
padding: 20px;
}
h1, h2, h3 {
color: #ffd700;
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
margin-bottom: 20px;
}
p, li {
font-size: 1rem;
margin-bottom: 1em;
}
ul {
list-style-type: square;
padding-left: 1.5em;
text-align: left;
margin: auto;
width: fit-content;
}
a {
color: #00ffcc;
text-decoration: none;
transition: color 0.3s;
}
a:hover {
color: #ff5733;
}
img {
width: 30%;
min-height: 30%;
height: auto;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
margin-bottom: 20px;
float: right;
margin-left: 20px;
}
.step {
margin-bottom: 2em;
padding: 20px;
background: rgba(255, 255, 255, 0.1);
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
display: flex;
align-items: center;
gap: 20px;
}
.step img {
max-width: 40%;
margin: 0;
}
.step-content {
flex: 1;
}
.step pre {
background: rgba(30, 30, 30, 1);
color: #cfcfcf;
font-family: 'Courier New', Courier, monospace;
font-size: 0.9rem;
padding: 15px;
border: 1px solid #444;
border-radius: 10px;
overflow-x: auto;
}
.button {
display: inline-block;
padding: 10px 20px;
margin-top: 10px;
background: linear-gradient(to right, #5a0fb8, #1f65d6);
color: white;
border-radius: 5px;
font-weight: bold;
text-decoration: none;
text-shadow: none;
transition: background 0.3s;
}
.button:hover {
background: linear-gradient(to right, #1f65d6, #5a0fb8);
color: white;
}
pre{
max-width: 100%;
width: fit-content;
align-content: left;
text-align: left;
margin: auto;
overflow-x: auto;
}
@media (max-width: 768px) {
img {
float: none;
min-width: 100%;
margin: 0 auto 20px auto;
display: block;
}
.step {
flex-direction: column;
text-align: center;
}
pre, code {
margin: 10px auto;
max-width: 90%;
}
}

139
static/css/quizes.css Normal file
View File

@ -0,0 +1,139 @@
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(to right, #5a0fb8, #1f65d6);
color: #fff;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
overflow-x: hidden;
margin: 0;
}
.container {
background: rgba(255, 255, 255, 0.2);
padding: 20px;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
max-width: 600px;
width: 90%;
transform: scale(1);
transition: transform 0.3s ease-in-out;
}
h1 {
text-align: center;
font-size: 2em;
margin-bottom: 20px;
}
.question {
margin-bottom: 20px;
font-size: 1.2em;
font-weight: 600;
text-align: center;
}
.answer-options {
margin-top: 15px;
}
.answer-options label {
display: block;
position: relative;
background: linear-gradient(to right, #5a0fb8, #1f65d6);
padding: 10px 15px;
margin-bottom: 10px;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
}
.answer-options label:hover {
background: linear-gradient(to right, #1f65d6, #5a0fb8);
color: white;
transform: translateX(5px);
}
.answer-options input {
display: none;
}
.answer-options input:checked + label {
background: linear-gradient(to right, #5a0fb8, #2ecc71);
color: white;
border: 2px solid #27ae60;
}
.submit-button, .quit-button {
display: block;
width: 100%;
padding: 12px;
color: white;
border: none;
border-radius: 8px;
font-size: 1em;
cursor: pointer;
text-transform: uppercase;
letter-spacing: 1px;
transition: background-color 0.3s ease, transform 0.2s ease;
margin-top: 15px;
text-align: center;
}
.submit-button {
background: linear-gradient(to right, #80e27e, #66c466);
}
.quit-button {
background: linear-gradient(to right, #ff8a80, #ff5252);
}
.submit-button:hover, .quit-button:hover {
transform: scale(1.05);
}
.submit-button:active, .quit-button:active {
transform: scale(0.98);
}
/* Responsive Design */
@media (max-width: 768px) {
h1 {
font-size: 1.8em;
}
.question {
font-size: 1.1em;
}
.answer-options label {
font-size: 0.9em;
padding: 8px 12px;
}
.submit-button, .quit-button {
font-size: 0.9em;
padding: 10px;
}
}
@media (max-width: 480px) {
h1 {
font-size: 1.5em;
}
.question {
font-size: 1em;
}
.answer-options label {
font-size: 0.8em;
padding: 6px 10px;
}
.submit-button, .quit-button {
font-size: 0.8em;
padding: 8px;
}
}

View File

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB