Migrate styles to SCSS
This commit is contained in:
BIN
public/qr_code_ki-skills-umfrage.png
Normal file
BIN
public/qr_code_ki-skills-umfrage.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 162 KiB |
@@ -1,5 +1,5 @@
|
|||||||
import { colorScheme } from "../config";
|
import { colorScheme } from "../config";
|
||||||
import "./Legend.css";
|
import "../styles/Legend.scss";
|
||||||
|
|
||||||
const labels = {
|
const labels = {
|
||||||
0: "Keine Erfahrung",
|
0: "Keine Erfahrung",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import "./QRCode.css";
|
import "../styles/QRCode.scss";
|
||||||
|
|
||||||
export default function QRCode() {
|
export default function QRCode() {
|
||||||
return (
|
return (
|
||||||
@@ -9,7 +9,7 @@ export default function QRCode() {
|
|||||||
egal, auf welchem Level du bist.
|
egal, auf welchem Level du bist.
|
||||||
</p>
|
</p>
|
||||||
<div className="qr-code bracket-frame">
|
<div className="qr-code bracket-frame">
|
||||||
<img src="https://upload.wikimedia.org/wikipedia/commons/4/41/QR_Code_Example.svg" />
|
<img src="/qr_code_ki-skills-umfrage.png" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { StrictMode } from "react";
|
import { StrictMode } from "react";
|
||||||
import { createRoot } from "react-dom/client";
|
import { createRoot } from "react-dom/client";
|
||||||
import App from "./App";
|
import App from "./App";
|
||||||
import "./index.css";
|
import "./styles/index.scss";
|
||||||
|
|
||||||
createRoot(document.getElementById("root")!).render(
|
createRoot(document.getElementById("root")!).render(
|
||||||
<StrictMode>
|
<StrictMode>
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
@use "shared" as *;
|
||||||
|
|
||||||
.legend {
|
.legend {
|
||||||
.box {
|
.box {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -6,7 +8,9 @@
|
|||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
@include shadow;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 16px;
|
margin: 16px;
|
||||||
@@ -1,11 +1,12 @@
|
|||||||
|
@use "shared" as *;
|
||||||
|
|
||||||
.qr-code-container {
|
.qr-code-container {
|
||||||
background-color: hsl(18.6deg 100% 55.1%);
|
@include rounded;
|
||||||
|
|
||||||
|
background-color: $aai-orange;
|
||||||
flex-basis: 20%;
|
flex-basis: 20%;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
border-radius: 16px;
|
|
||||||
|
|
||||||
filter: drop-shadow(0 8px 8px hsl(202.5deg 20% 76.5%));
|
|
||||||
|
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
|
||||||
50
src/styles/_shared.scss
Normal file
50
src/styles/_shared.scss
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
$aai-blue-dark: hsl(198.5deg 83.5% 19%);
|
||||||
|
$aai-blue-light: hsl(196.8deg 63% 55.5%);
|
||||||
|
|
||||||
|
$aai-green-dark: hsl(181deg 75% 37%);
|
||||||
|
$aai-green-light: hsl(127.5deg 100% 87.5%);
|
||||||
|
|
||||||
|
$aai-grey: hsl(202.5deg 20% 76.5%);
|
||||||
|
$aai-orange: hsl(18.6deg 100% 55.1%);
|
||||||
|
|
||||||
|
@mixin rounded {
|
||||||
|
border-radius: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin shadow {
|
||||||
|
filter: drop-shadow(0 16px 16px rgb($aai-grey, 80%));
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin no-shadow {
|
||||||
|
filter: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
$border-radius: 16px;
|
||||||
|
|
||||||
|
@mixin button {
|
||||||
|
@include shadow;
|
||||||
|
|
||||||
|
background-color: $aai-action-button;
|
||||||
|
color: #ffffff;
|
||||||
|
|
||||||
|
border-radius: $border-radius;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
@include no-shadow;
|
||||||
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
flex: 1 auto;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-align: center;
|
||||||
|
font-weight: bold;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
@use "shared" as *;
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
|
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
@@ -32,11 +34,11 @@ h6 {
|
|||||||
|
|
||||||
a {
|
a {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #646cff;
|
color: $aai-blue-dark;
|
||||||
text-decoration: inherit;
|
text-decoration: inherit;
|
||||||
}
|
}
|
||||||
a:hover {
|
a:hover {
|
||||||
color: #747bff;
|
color: $aai-blue-light;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@@ -56,13 +58,13 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.chart-container {
|
.chart-container {
|
||||||
|
@include rounded;
|
||||||
|
@include shadow;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
border-radius: 16px;
|
|
||||||
|
|
||||||
filter: drop-shadow(0 8px 8px hsl(202.5deg 20% 76.5%));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.charts {
|
.charts {
|
||||||
@@ -73,14 +75,14 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.question-group {
|
.question-group {
|
||||||
|
@include rounded;
|
||||||
|
@include shadow;
|
||||||
|
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
border-radius: 8px;
|
|
||||||
|
|
||||||
flex: 1 1 380px;
|
flex: 1 1 300px;
|
||||||
|
|
||||||
filter: drop-shadow(0 2px 2px hsl(202.5deg 20% 76.5%));
|
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -104,6 +106,8 @@ body {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
.question-title::before {
|
|
||||||
content: "💻 ";
|
.question-title .material-icons {
|
||||||
|
vertical-align: top;
|
||||||
|
margin-right: 1ex;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user