diff --git a/src/lib/Card.svelte b/src/lib/Card.svelte
index 221b941..d628788 100644
--- a/src/lib/Card.svelte
+++ b/src/lib/Card.svelte
@@ -34,9 +34,9 @@
{#each Array.from({ length: 5 }) as star}★{/each}
-
- {#each Array.from({ length: 5 }) as star}★{/each}
-
+
+ {#each Array.from({ length: 5 }) as star}★{/each}
+
@@ -101,11 +101,11 @@
position: absolute;
left: 20px;
top: 20px;
- bottom: 120px;
+ bottom: 120px;
width: 65%;
z-index: 1;
align-items: flex-start;
- justify-content: center;
+ justify-content: center;
}
.meta {
@@ -147,9 +147,9 @@
overflow: hidden;
color: rgb(243, 174, 0);
}
- .stars-2 .inner {
- position: absolute;
- }
+ .stars-2 .inner {
+ position: absolute;
+ }
.ratings_count {
margin-left: 1rem;
@@ -160,8 +160,8 @@
color: #fff;
text-transform: uppercase;
font-size: 26px;
- padding: 5px 12px ;
- border-radius: 5px;
+ padding: 5px 12px;
+ border-radius: 5px;
font-weight: 600;
margin-top: 0.5rem;
}
diff --git a/src/routes/og/+server.js b/src/routes/og/+server.js
index c3004a0..395053e 100644
--- a/src/routes/og/+server.js
+++ b/src/routes/og/+server.js
@@ -19,7 +19,9 @@ const width = 1200;
export const GET = async (event) => {
let searchParams = event.url.searchParams;
- validateOrigin(event);
+ // validating origin
+ // TODO: this does not really work as we're not getting an origin from consuming applications AFAICT
+ // validateOrigin(event);
validateKey(searchParams.get('key'), searchParams.get('debug'));
@@ -93,12 +95,12 @@ function validateKey(keyFromUrlParams, debug) {
}
function validateOrigin(event) {
- let allowed = false;
+ let allowed = false;
let allowlist = ['https://geizhals.at', 'https://geizhals.at'];
let origin = event.request.headers.get('origin');
- console.log(origin);
+
if (origin == null) allowed = true;
if (allowlist.includes(origin)) allowed = true;
- if(!allowed) throw error(405, `Not allowed. Invalid origin "${origin}".`);
+ if (!allowed) throw error(405, `Not allowed. Invalid origin "${origin}".`);
}
diff --git a/src/styles/variables.scss b/src/styles/variables.scss
index c357efb..ee1651b 100644
--- a/src/styles/variables.scss
+++ b/src/styles/variables.scss
@@ -4,5 +4,5 @@
--font-mono: 'Fira Mono', monospace;
font-family: var(--font-body);
- --primary: #b900f1;
+ --primary: #b900f1;
}