Compare commits
	
		
			3 commits
		
	
	
		
			606cc0ca51
			...
			33f706c193
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 33f706c193 | |||
| 07b98fc0e3 | |||
| f691495aa2 | 
					 6 changed files with 38 additions and 23 deletions
				
			
		| 
						 | 
					@ -36,6 +36,7 @@
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
	"type": "module",
 | 
						"type": "module",
 | 
				
			||||||
	"dependencies": {
 | 
						"dependencies": {
 | 
				
			||||||
 | 
							"@fontsource/atkinson-hyperlegible": "^5.0.19",
 | 
				
			||||||
		"@fontsource/b612": "^5.0.8",
 | 
							"@fontsource/b612": "^5.0.8",
 | 
				
			||||||
		"@sveltejs/adapter-auto": "^3.0.0",
 | 
							"@sveltejs/adapter-auto": "^3.0.0",
 | 
				
			||||||
		"@sveltejs/adapter-static": "^3.0.1",
 | 
							"@sveltejs/adapter-static": "^3.0.1",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										7
									
								
								pnpm-lock.yaml
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										7
									
								
								pnpm-lock.yaml
									
										
									
										generated
									
									
									
								
							| 
						 | 
					@ -5,6 +5,9 @@ settings:
 | 
				
			||||||
  excludeLinksFromLockfile: false
 | 
					  excludeLinksFromLockfile: false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
dependencies:
 | 
					dependencies:
 | 
				
			||||||
 | 
					  '@fontsource/atkinson-hyperlegible':
 | 
				
			||||||
 | 
					    specifier: ^5.0.19
 | 
				
			||||||
 | 
					    version: 5.0.19
 | 
				
			||||||
  '@fontsource/b612':
 | 
					  '@fontsource/b612':
 | 
				
			||||||
    specifier: ^5.0.8
 | 
					    specifier: ^5.0.8
 | 
				
			||||||
    version: 5.0.8
 | 
					    version: 5.0.8
 | 
				
			||||||
| 
						 | 
					@ -390,6 +393,10 @@ packages:
 | 
				
			||||||
    engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
 | 
					    engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
 | 
				
			||||||
    dev: true
 | 
					    dev: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  /@fontsource/atkinson-hyperlegible@5.0.19:
 | 
				
			||||||
 | 
					    resolution: {integrity: sha512-dnhQiFATy7n12Nq1fq8yhuzbae4WJSFKaKesJLTNKyiz6w+DI7RbcB3D1hwU+tBax4Dxlhg0tkY1LS4AzRRqxw==}
 | 
				
			||||||
 | 
					    dev: false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /@fontsource/b612@5.0.8:
 | 
					  /@fontsource/b612@5.0.8:
 | 
				
			||||||
    resolution: {integrity: sha512-PuOfVZB37asTrwI6GD5dcOjIuEZI+m9PW6/9MM05zRxA5pSUyPn280rLP7r7mOiFmEKSEWCFyI0Yf2XJOmqwNA==}
 | 
					    resolution: {integrity: sha512-PuOfVZB37asTrwI6GD5dcOjIuEZI+m9PW6/9MM05zRxA5pSUyPn280rLP7r7mOiFmEKSEWCFyI0Yf2XJOmqwNA==}
 | 
				
			||||||
    dev: false
 | 
					    dev: false
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,8 +8,8 @@ body, html {
 | 
				
			||||||
  color: white;
 | 
					  color: white;
 | 
				
			||||||
  background-color: black;
 | 
					  background-color: black;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  font-family: 'B612', 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
 | 
					  font-family: 'Atkinson Hyperlegible', 'B612', 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
 | 
				
			||||||
  font-size: min(1.5vw, 1.5vh);
 | 
					  font-size: 20px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* {
 | 
					* {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -78,6 +78,9 @@
 | 
				
			||||||
		width: 100vw;
 | 
							width: 100vw;
 | 
				
			||||||
		height: 100vh;
 | 
							height: 100vh;
 | 
				
			||||||
		overflow: hidden;
 | 
							overflow: hidden;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							font-family: 'B612', 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
 | 
				
			||||||
 | 
							font-size: min(4vw, 4vh);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.inner {
 | 
						.inner {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -201,17 +201,15 @@
 | 
				
			||||||
			{#if tests.filter((test) => test.categories.includes(category.id)).length > 0}
 | 
								{#if tests.filter((test) => test.categories.includes(category.id)).length > 0}
 | 
				
			||||||
				<h2>{$i18n.t(category.label)}</h2>
 | 
									<h2>{$i18n.t(category.label)}</h2>
 | 
				
			||||||
				{#each filteredTests.filter((test) => test.categories.includes(category.id) && filteredCategories.every( (f) => test.categories.includes(f) )) as test}
 | 
									{#each filteredTests.filter((test) => test.categories.includes(category.id) && filteredCategories.every( (f) => test.categories.includes(f) )) as test}
 | 
				
			||||||
					<div class="test" class:disabled={test.disabled}>
 | 
										<a class="test" href={test.id} class:disabled={test.disabled}>
 | 
				
			||||||
						<a class="test" href={test.id}>
 | 
											<i class="ti {test.icon}"></i>
 | 
				
			||||||
							<span class="label">
 | 
											<div class="label">
 | 
				
			||||||
								<i class="ti {test.icon}"></i>
 | 
												{$i18n.t(test.label)}
 | 
				
			||||||
								{$i18n.t(test.label)}
 | 
											</div>
 | 
				
			||||||
							</span>
 | 
											<div class="description">
 | 
				
			||||||
							<span class="description">
 | 
												{$i18n.t(`tests.${test.id}.description`)}
 | 
				
			||||||
								{$i18n.t(`tests.${test.id}.description`)}
 | 
											</div>
 | 
				
			||||||
							</span>
 | 
										</a>
 | 
				
			||||||
						</a>
 | 
					 | 
				
			||||||
					</div>
 | 
					 | 
				
			||||||
				{/each}
 | 
									{/each}
 | 
				
			||||||
			{/if}
 | 
								{/if}
 | 
				
			||||||
		{:else}
 | 
							{:else}
 | 
				
			||||||
| 
						 | 
					@ -230,7 +228,7 @@
 | 
				
			||||||
		gap: 1rem;
 | 
							gap: 1rem;
 | 
				
			||||||
		flex-grow: 1;
 | 
							flex-grow: 1;
 | 
				
			||||||
		padding: 0 4rem;
 | 
							padding: 0 4rem;
 | 
				
			||||||
		overflow: auto;
 | 
							overflow: hidden;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		& input[type='search'] {
 | 
							& input[type='search'] {
 | 
				
			||||||
			padding: 0.5em;
 | 
								padding: 0.5em;
 | 
				
			||||||
| 
						 | 
					@ -238,6 +236,10 @@
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						.tests {
 | 
				
			||||||
 | 
							overflow-y: auto;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	h1 {
 | 
						h1 {
 | 
				
			||||||
		text-align: center;
 | 
							text-align: center;
 | 
				
			||||||
		font-size: 3rem;
 | 
							font-size: 3rem;
 | 
				
			||||||
| 
						 | 
					@ -246,7 +248,6 @@
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	h2 {
 | 
						h2 {
 | 
				
			||||||
		font-weight: normal;
 | 
					 | 
				
			||||||
		margin: 0.25em 0;
 | 
							margin: 0.25em 0;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -293,21 +294,22 @@
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.test {
 | 
						.test {
 | 
				
			||||||
		display: flex;
 | 
							display: grid;
 | 
				
			||||||
		gap: 0.5em;
 | 
							grid-template-columns: auto 1fr;
 | 
				
			||||||
 | 
							align-items: center;
 | 
				
			||||||
 | 
							gap: 0 0.25em;
 | 
				
			||||||
		margin-bottom: 0.25em;
 | 
							margin-bottom: 0.25em;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							text-decoration: none;
 | 
				
			||||||
 | 
							color: inherit;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		& .label {
 | 
							& .label {
 | 
				
			||||||
			white-space: nowrap;
 | 
								white-space: nowrap;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		& .description {
 | 
							& .description {
 | 
				
			||||||
			opacity: 0.85;
 | 
								opacity: 0.8;
 | 
				
			||||||
		}
 | 
								grid-column-start: 2;
 | 
				
			||||||
 | 
					 | 
				
			||||||
		& a {
 | 
					 | 
				
			||||||
			text-decoration: none;
 | 
					 | 
				
			||||||
			color: inherit;
 | 
					 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		&.disabled {
 | 
							&.disabled {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,7 @@
 | 
				
			||||||
<script lang="ts">
 | 
					<script lang="ts">
 | 
				
			||||||
	import 'normalize.css/normalize.css';
 | 
						import 'normalize.css/normalize.css';
 | 
				
			||||||
 | 
						import '@fontsource/atkinson-hyperlegible';
 | 
				
			||||||
 | 
						import '@fontsource/atkinson-hyperlegible/700.css';
 | 
				
			||||||
	import '@fontsource/b612';
 | 
						import '@fontsource/b612';
 | 
				
			||||||
	import '@fontsource/b612/700.css';
 | 
						import '@fontsource/b612/700.css';
 | 
				
			||||||
	import '@tabler/icons-webfont/tabler-icons.css';
 | 
						import '@tabler/icons-webfont/tabler-icons.css';
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue