Spaces:
Runtime error
Runtime error
aspect ratio
Browse files
frontend/src/lib/Result.svelte
CHANGED
@@ -56,7 +56,7 @@
|
|
56 |
<div class="grid grid-cols-3 gap-2 p-3">
|
57 |
{#each imagePaths as image}
|
58 |
<div>
|
59 |
-
<img src={imageBaseUrl + image} alt="" class="w-full h-full" />
|
60 |
</div>
|
61 |
{/each}
|
62 |
</div>
|
|
|
56 |
<div class="grid grid-cols-3 gap-2 p-3">
|
57 |
{#each imagePaths as image}
|
58 |
<div>
|
59 |
+
<img src={imageBaseUrl + image} alt="" class="aspect-square w-full h-full" />
|
60 |
</div>
|
61 |
{/each}
|
62 |
</div>
|
frontend/src/lib/utils.ts
CHANGED
@@ -33,4 +33,12 @@ export const colors = {
|
|
33 |
[LetterState.INITIAL]: '#5d5d5d'
|
34 |
};
|
35 |
|
36 |
-
export const cheersMessages = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
[LetterState.INITIAL]: '#5d5d5d'
|
34 |
};
|
35 |
|
36 |
+
export const cheersMessages = [
|
37 |
+
'Genius',
|
38 |
+
'Magnificent',
|
39 |
+
'Impressive',
|
40 |
+
'Splendid',
|
41 |
+
'Great',
|
42 |
+
'Phew',
|
43 |
+
'Hugging'
|
44 |
+
];
|
frontend/src/routes/index.svelte
CHANGED
@@ -52,7 +52,7 @@
|
|
52 |
currentRowIndex = 0;
|
53 |
letterStates = {}
|
54 |
allowInput= true;
|
55 |
-
|
56 |
const prompts: string[] = Object.keys(promptsData);
|
57 |
currPromptIndex = ~~(Math.random() * prompts.length);
|
58 |
const randomPrompt: string = prompts[currPromptIndex];
|
@@ -203,7 +203,7 @@
|
|
203 |
<div class="grid grid-cols-3 gap-2 max-w-md mx-auto p-3">
|
204 |
{#each imagePaths as image}
|
205 |
<div>
|
206 |
-
<img src={imageBaseUrl + image} alt="" class="w-full h-full" />
|
207 |
</div>
|
208 |
{/each}
|
209 |
</div>
|
|
|
52 |
currentRowIndex = 0;
|
53 |
letterStates = {}
|
54 |
allowInput= true;
|
55 |
+
|
56 |
const prompts: string[] = Object.keys(promptsData);
|
57 |
currPromptIndex = ~~(Math.random() * prompts.length);
|
58 |
const randomPrompt: string = prompts[currPromptIndex];
|
|
|
203 |
<div class="grid grid-cols-3 gap-2 max-w-md mx-auto p-3">
|
204 |
{#each imagePaths as image}
|
205 |
<div>
|
206 |
+
<img src={imageBaseUrl + image} alt="" class="aspect-square w-full h-full" />
|
207 |
</div>
|
208 |
{/each}
|
209 |
</div>
|