first commit:
- we have a static astro website under /website. It has the implementation docs of the homepage/gaufre templates, and it handles the few API endpoints (the gaufre js, backgrounds, logos) - we have a vite app under /packages/integration. It has the react components generating the homepage and the gaufre button, and their css. Its used to generate an npm package
This commit is contained in:
129
website/src/styles/global.css
Normal file
129
website/src/styles/global.css
Normal file
@@ -0,0 +1,129 @@
|
||||
@import "./prism.css";
|
||||
|
||||
@font-face {
|
||||
font-family: Marianne;
|
||||
src: url(../assets/fonts/Marianne-Regular.woff2) format("woff2");
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Marianne;
|
||||
src: url(../assets/fonts/Marianne-Medium.woff2) format("woff2");
|
||||
font-weight: 500;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Marianne;
|
||||
src: url(../assets/fonts/Marianne-Bold.woff2) format("woff2");
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Marianne_cls_fallback;
|
||||
src: local("Arial");
|
||||
ascent-override: 103.16%;
|
||||
descent-override: 23.35%;
|
||||
line-gap-override: 0%;
|
||||
size-adjust: 109.64%;
|
||||
}
|
||||
|
||||
:root {
|
||||
--sl-font: "Marianne", "Marianne_cls_fallback", ui-sans-serif, system-ui, sans-serif,
|
||||
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
||||
--sl-text-code-sm: var(--sl-text-code);
|
||||
font-size: 1.125rem;
|
||||
}
|
||||
|
||||
/* Light mode colors. */
|
||||
:root[data-theme="light"] {
|
||||
--sl-color-accent-low: #e3e3fd;
|
||||
--sl-color-accent: #000091;
|
||||
--sl-color-accent-high: #8585f6;
|
||||
--sl-color-white: #17181c;
|
||||
--sl-color-gray-1: #24272f;
|
||||
--sl-color-gray-2: #353841;
|
||||
--sl-color-gray-3: #545861;
|
||||
--sl-color-gray-4: #888b96;
|
||||
--sl-color-gray-5: #c0c2c7;
|
||||
--sl-color-gray-6: #edeef3;
|
||||
--sl-color-gray-7: #f5f6f8;
|
||||
--sl-color-black: #ffffff;
|
||||
--sl-color-blue-low: #ececfe;
|
||||
--sl-color-blue-middle: #cacafb;
|
||||
--sl-color-blue: #000091;
|
||||
--sl-color-bg-inline-code: var(--sl-color-blue-low);
|
||||
}
|
||||
|
||||
.action {
|
||||
border-radius: 0;
|
||||
font-weight: 500;
|
||||
padding: 0.5rem 1rem;
|
||||
}
|
||||
|
||||
.sl-markdown-content :is(h1, h2, h3, h4, h5, h6) > a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.sl-markdown-content :is(h1, h2, h3, h4, h5, h6) > a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.starlight-aside--note {
|
||||
border-top: 1px solid var(--sl-color-blue-middle, var(--sl-color-blue));
|
||||
border-bottom: 1px solid var(--sl-color-blue-middle, var(--sl-color-blue));
|
||||
border-right: 1px solid var(--sl-color-blue-middle, var(--sl-color-blue));
|
||||
}
|
||||
|
||||
.sl-markdown-content p img {
|
||||
display: block;
|
||||
margin: auto;
|
||||
box-shadow: var(--sl-shadow-sm);
|
||||
border: 1px solid var(--sl-color-gray-5);
|
||||
}
|
||||
|
||||
.react-form label {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.react-form label span {
|
||||
font-size: 0.875rem;
|
||||
opacity: 0.75;
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
.react-form-input {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.react-form :is(input, select) {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.sl-markdown-content :is(h1, h2, h3, h4, h5, h6):target {
|
||||
background-color: #fef7da;
|
||||
}
|
||||
|
||||
.react-code {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.react-code button {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
background-color: var(--sl-color-bg);
|
||||
color: var(--sl-color-text);
|
||||
margin: 0 !important;
|
||||
right: 20px;
|
||||
border: none;
|
||||
border-radius: 0.25rem;
|
||||
padding: 0.25rem 0.5rem;
|
||||
font-size: 0.875rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
158
website/src/styles/prism.css
Normal file
158
website/src/styles/prism.css
Normal file
@@ -0,0 +1,158 @@
|
||||
:root {
|
||||
--prism-color: #c9d1d9;
|
||||
--prism-bg: #24292e;
|
||||
--prism-inline-bg: #343942;
|
||||
--prism-selection: #234879;
|
||||
--prism-highlight-bg: #2f2a1e;
|
||||
--prism-highlight-shadow: #674c16;
|
||||
--prism-token-comment: #8b949e;
|
||||
--prism-token-punctuation: #c9d1d9;
|
||||
--prism-token-tag: #79c0ff;
|
||||
--prism-token-string: #a5d6ff;
|
||||
--prism-token-operator: #a5d6ff;
|
||||
--prism-token-keyword: #a5d6ff;
|
||||
--prism-token-function: #d2a8ff;
|
||||
--prism-token-regex: #a8daff;
|
||||
}
|
||||
|
||||
:root[data-theme="light"] {
|
||||
--prism-selection: #9fc6e9;
|
||||
--prism-color: #24292f;
|
||||
--prism-bg: #f5f5fe;
|
||||
--prism-inline-bg: #eff1f3;
|
||||
--prism-highlight-bg: #fff8c5;
|
||||
--prism-highlight-shadow: #eed888;
|
||||
--prism-token-comment: #6e7781;
|
||||
--prism-token-punctuation: #24292f;
|
||||
--prism-token-tag: #0550ae;
|
||||
--prism-token-string: #0a3069;
|
||||
--prism-token-operator: #0550ae;
|
||||
--prism-token-keyword: #cf222e;
|
||||
--prism-token-function: #8250df;
|
||||
--prism-token-regex: #0a3069;
|
||||
}
|
||||
|
||||
.expressive-code .frame pre {
|
||||
background-color: var(--prism-bg) !important;
|
||||
}
|
||||
|
||||
/**
|
||||
* Github Light/Dark theme for Prism.js
|
||||
* Based on Github: https://github.com
|
||||
* @author Katorly
|
||||
*/
|
||||
pre[class*="language-"],
|
||||
code[class*="language-"] {
|
||||
color: var(--prism-color);
|
||||
box-shadow: rgba(0, 0, 0, 0.157) 1.8px 1.8px 3.6px 0px;
|
||||
border: 1px solid rgb(225, 228, 232);
|
||||
}
|
||||
pre[class*="language-"]::selection,
|
||||
code[class*="language-"]::selection,
|
||||
pre[class*="language-"]::mozselection,
|
||||
code[class*="language-"]::mozselection {
|
||||
text-shadow: none;
|
||||
background: var(--prism-selection);
|
||||
}
|
||||
@media print {
|
||||
pre[class*="language-"],
|
||||
code[class*="language-"] {
|
||||
text-shadow: none;
|
||||
}
|
||||
}
|
||||
pre[class*="language-"] {
|
||||
padding: 1em;
|
||||
overflow: auto;
|
||||
background: var(--prism-bg);
|
||||
}
|
||||
.language-fixedheight pre[class*="language-"] {
|
||||
max-height: 500px;
|
||||
}
|
||||
|
||||
:not(pre) > code[class*="language-"] {
|
||||
padding: 0.1em 0.3em;
|
||||
border-radius: 0.3em;
|
||||
color: #24292f;
|
||||
background: var(--prism-inline-bg);
|
||||
}
|
||||
/* Line highlighting */
|
||||
pre[data-line] {
|
||||
position: relative;
|
||||
}
|
||||
pre[class*="language-"] > code[class*="language-"] {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
.line-highlight {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: inherit 0;
|
||||
margin-top: 1em;
|
||||
background: var(--prism-highlight-bg);
|
||||
box-shadow: inset 5px 0 0 var(--prism-highlight-shadow);
|
||||
z-index: 0;
|
||||
pointer-events: none;
|
||||
line-height: inherit;
|
||||
white-space: pre;
|
||||
}
|
||||
/* Tokens */
|
||||
.namespace {
|
||||
opacity: 0.7;
|
||||
}
|
||||
.token.comment,
|
||||
.token.prolog,
|
||||
.token.doctype,
|
||||
.token.cdata {
|
||||
color: var(--prism-token-comment);
|
||||
}
|
||||
.token.punctuation {
|
||||
color: var(--prism-token-punctuation);
|
||||
}
|
||||
.token.property,
|
||||
.token.tag,
|
||||
.token.boolean,
|
||||
.token.number,
|
||||
.token.constant,
|
||||
.token.symbol,
|
||||
.token.deleted {
|
||||
color: var(--prism-token-tag);
|
||||
}
|
||||
.token.selector,
|
||||
.token.attr-name,
|
||||
.token.string,
|
||||
.token.char,
|
||||
.token.builtin,
|
||||
.token.inserted {
|
||||
color: var(--prism-token-string);
|
||||
}
|
||||
.token.operator,
|
||||
.token.entity,
|
||||
.token.url,
|
||||
.language-css .token.string,
|
||||
.style .token.string {
|
||||
color: var(--prism-token-operator);
|
||||
}
|
||||
.token.atrule,
|
||||
.token.attr-value,
|
||||
.token.keyword {
|
||||
color: var(--prism-token-keyword);
|
||||
}
|
||||
.token.function {
|
||||
color: var(--prism-token-function);
|
||||
}
|
||||
.token.regex,
|
||||
.token.important,
|
||||
.token.variable {
|
||||
color: var(--prism-token-regex);
|
||||
}
|
||||
.token.important,
|
||||
.token.bold {
|
||||
font-weight: bold;
|
||||
}
|
||||
.token.italic {
|
||||
font-style: italic;
|
||||
}
|
||||
.token.entity {
|
||||
cursor: help;
|
||||
}
|
||||
Reference in New Issue
Block a user