This commit is contained in:
2025-07-03 11:51:34 +02:00
12 changed files with 398 additions and 69 deletions

View File

@@ -1,3 +1,10 @@
.buttons-container{
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
}
.btn{
padding: 5px 10px;
font-weight: var(--font-weight-semibold);
@@ -6,7 +13,9 @@
color: var(--brand-white);
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
cursor: pointer;
}
.btn-primary {
@@ -14,6 +23,11 @@
border-radius: 3px;
}
.btn-secondary{
background: var(--fullblock);
border-radius: 3px;
}
.btn-user {
border-radius: 9999px;
color: var(--brand-primary);
@@ -27,6 +41,18 @@
aspect-ratio: 1/1;
}
.btn-form{
padding: 10px 20px;
}
.btn-login{
background-color: transparent;
}
.btn-user > span {
font-size: 28px;
}
.btn-logout{
background-color: red;
}

111
CSS/Element/card.css Normal file
View File

@@ -0,0 +1,111 @@
/* === Grundlayout === */
body {
margin: 0;
font-family: var(--font-family-main);
background-color: var(--brand-background);
color: var(--brand-white);
}
/* === Header-Bereich === */
.welcome-header {
text-align: center;
margin: 60px 20px 40px 20px;
}
.welcome-heading {
font-size: 50px;
font-weight: 500;
color: var(--brand-primary);
margin-bottom: 20px;
}
.welcome-subheading {
font-size: 28px;
font-weight: bold;
color: white;
text-align: left;
max-width: 1000px;
margin: 0 auto;
padding-left: 230px;
}
/* === Kurs-Grid === */
.course-grid {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 30px;
margin: 0 auto;
}
/* === Kurs-Karte === */
.course-card {
flex: 0 0 calc(33.333% - 20px); /* Drei nebeneinander */
background: var(--brand-white);
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
min-height: 300px;
display: flex;
flex-direction: column;
margin-top: 30px;
}
/* Optional: Kurs-Bildbereich */
.course-image {
background-color: #ddd; /* Platzhalter kannst du durch echte Bilder ersetzen */
height: 180px;
width: 100%;
}
/* === Kurs-Inhalt === */
.course-content {
background-color: var(--brand-primary); /* Orange */
color: var(--brand-white);
padding: 20px;
font-size: 16px;
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 10px;
}
.course-left,
.course-right {
display: flex;
flex-direction: column;
font-size: 14px;
line-height: 1.4;
}
.course-left div:first-child,
.course-right div:first-child {
font-weight: bold;
font-size: 16px;
}
.course-right {
text-align: right;
}
/* === Responsive Anpassung === */
@media screen and (max-width: 1024px) {
.course-card {
flex: 0 0 calc(50% - 20px);
}
}
@media screen and (max-width: 640px) {
.course-card {
flex: 0 0 100%;
}
.welcome-heading {
font-size: 36px;
}
.welcome-subheading {
font-size: 20px;
text-align: center;
}
}

View File

@@ -72,3 +72,26 @@ form .error {
margin-block-end: 0;
outline-color: var(--error);
}
.form-user{
justify-content: center!important;
grid-template-columns: auto!important;
}
/* fix radio buttons registration */
.input:nth-child(5){
flex-direction: row;
justify-content: space-between;
max-width: 290px;
align-items: center;
}
.input:nth-child(5) label{
display: flex;
flex-direction: row;
align-items: center;
gap: 10px;
}
.input:nth-child(5) label input{
margin-top: 0;
}

View File

@@ -1,9 +1,11 @@
@import url(variables.css);
@import url(style_columns.css);
@import url(Block/header.css);
@import url(Block/footer.css);
@import url(Element/logo.css);
@import url(Element/form.css);
@import url(Element/button.css);
@import url(Element/card.css);
*, *:before, *:after {
-moz-box-sizing: border-box;
@@ -35,7 +37,6 @@ h2 {
main {
margin-top: 190px;
padding: 10px;
}
.msg {
@@ -106,3 +107,7 @@ main {
text-decoration: none;
}
.paragraph{
font-size: var(--font-size-smalltext);
color: var(--brand-white);
}

View File

@@ -6,6 +6,13 @@
/*** 12 spaltiges Grid mit Flexboxen ***/
/*** Container ***/
.container{
max-width: 90%;
padding: 24px 42px 24px 42px;
margin: 0 auto;
}
.row {
display: flex;
flex-flow: row;