CSS school kaitlyns demands
All checks were successful
Rebuild signaller for deprived.dev to rebuild site / Rebuild Signaller (push) Successful in 22s

This commit is contained in:
BOTAlex 2026-05-22 13:03:31 +02:00
parent 9dac27fcf2
commit 17b750a595

View file

@ -5,6 +5,7 @@
import onMount from "@src/optimizers/onMount"; import onMount from "@src/optimizers/onMount";
import Search from "lucide-svelte/icons/search"; import Search from "lucide-svelte/icons/search";
import X from "lucide-svelte/icons/x"; import X from "lucide-svelte/icons/x";
import CustomScrollBar from "../../comps/CustomScrollBar.svelte";
class Range { class Range {
start: number = 0; start: number = 0;
@ -81,7 +82,7 @@
} }
onMount(() => { onMount(() => {
selectCountry("DNK", true); // selectCountry("DNK", true);
console.log(countryList.findByIso3("DNK")); console.log(countryList.findByIso3("DNK"));
}); });
</script> </script>
@ -90,23 +91,6 @@
<div class="flex flex-col items-center justify-center w-full"> <div class="flex flex-col items-center justify-center w-full">
<h1 class="text-4xl">Country Mention Networks in UN Speeches</h1> <h1 class="text-4xl">Country Mention Networks in UN Speeches</h1>
<div>Computational Social Science 02467 - group 10</div> <div>Computational Social Science 02467 - group 10</div>
<div class="flex gap-8">
<a
class="link link-primary"
href="https://git.deprived.dev/DeprivedDevs/deprived-main-website/src/branch/main/src/routes/school/css"
>Website repository</a
>
<a
class="link link-primary"
href="https://github.com/MagicBOTAlex/Social-Informatik-02467-project"
>Python repository</a
>
<a
class="link link-primary"
href="https://www.kaggle.com/datasets/unitednations/un-general-debates"
>Dataset from kaggle</a
>
</div>
</div> </div>
<div class="flex flex-col items-center justify-center w-full prose"> <div class="flex flex-col items-center justify-center w-full prose">
<div class="flex gap-30 justify-between"> <div class="flex gap-30 justify-between">
@ -161,11 +145,6 @@
<div class="w-full flex flex-col items-center gap-10"> <div class="w-full flex flex-col items-center gap-10">
<div class="w-80"> <div class="w-80">
<div class="text-4xl">Interactive graphs</div> <div class="text-4xl">Interactive graphs</div>
<div>
The interactive graphs has to be filtered, due to the large amount of
connections, making a full interactive graph, requires too much
processing power.
</div>
</div> </div>
<div <div
@ -198,6 +177,7 @@
<div class="w-[60%]"> <div class="w-[60%]">
<div class="flex justify-between"> <div class="flex justify-between">
<div class="text-2xl">List of interactive graphs</div> <div class="text-2xl">List of interactive graphs</div>
<div class="join"> <div class="join">
<button <button
class="btn btn-outline btn-disabled btn-accent join-item grid items-center justify-center" class="btn btn-outline btn-disabled btn-accent join-item grid items-center justify-center"
@ -211,6 +191,12 @@
/> />
</div> </div>
</div> </div>
<div class="italic opacity-60">
The interactive graphs has to be filtered, due to the large amount of
connections, making a full interactive graph, requires too much
processing power.
</div>
<div class="py-4"></div> <div class="py-4"></div>
<div class="flex flex-wrap gap-2"> <div class="flex flex-wrap gap-2">
<div class="">Filter by region:</div> <div class="">Filter by region:</div>
@ -225,13 +211,21 @@
</div> </div>
{/each} {/each}
</div> </div>
<table class="table"> <div class="py-2"></div>
<CustomScrollBar
overflowX="hidden"
overflowY="auto"
Class="h-[60vh] border border-base-200 "
requireAbsolute={true}
hideOnMobile={true}
>
<table class="table w-full border-separate border-spacing-0">
<thead> <thead>
<tr> <tr>
<th>Country</th> <th class="sticky top-0 bg-base-100 z-10">Country</th>
<th>ISO3</th> <th class="sticky top-0 bg-base-100 z-10">ISO3</th>
<th>From buttons</th> <th class="sticky top-0 bg-base-100 z-10">From buttons</th>
<th>Towards buttons</th> <th class="sticky top-0 bg-base-100 z-10">Towards buttons</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -241,30 +235,56 @@
.includes(searchFilter.toLowerCase()) || country .includes(searchFilter.toLowerCase()) || country
.toLowerCase() .toLowerCase()
.includes(searchFilter.toLowerCase())) && (!regionFilters.some((r) => r.selected) || regionFilters.find((r) => r.region === countryList.findByIso3(country)?.continent)?.selected)} .includes(searchFilter.toLowerCase())) && (!regionFilters.some((r) => r.selected) || regionFilters.find((r) => r.region === countryList.findByIso3(country)?.continent)?.selected)}
<tr> <!-- Changed your data cell wrappers from <th> to <td> for correct semantics -->
<th>{getCountryName(country)}</th> <tr class="hover">
<th>{country}</th> <td>{getCountryName(country)}</td>
<th> <td>{country}</td>
<td>
<div class="w-full h-full grid items-center justify-center"> <div class="w-full h-full grid items-center justify-center">
<button <button
on:click={() => selectCountry(country, false)} on:click={() => selectCountry(country, false)}
class="btn btn-outline btn-primary">From</button class="btn btn-outline btn-primary">From</button
> >
</div> </div>
</th> </td>
<th> <td>
<div class="w-full h-full grid items-center justify-center"> <div class="w-full h-full grid items-center justify-center">
<button <button
on:click={() => selectCountry(country, true)} on:click={() => selectCountry(country, true)}
class="btn btn-outline btn-secondary">Towards</button class="btn btn-outline btn-secondary">Towards</button
> >
</div> </div>
</th> </td>
</tr> </tr>
{/if} {/if}
{/each} {/each}
</tbody> </tbody>
</table> </table>
</CustomScrollBar>
</div>
</div>
<div class="flex justify-center w-full">
<div class="flex flex-col">
<div class="text-4xl">Sources</div>
<div class="flex justify-center gap-8">
<a
class="link link-primary"
href="https://git.deprived.dev/DeprivedDevs/deprived-main-website/src/branch/main/src/routes/school/css"
>Website repository</a
>
<a
class="link link-primary"
href="https://github.com/MagicBOTAlex/Social-Informatik-02467-project"
>Python repository</a
>
<a
class="link link-primary"
href="https://www.kaggle.com/datasets/unitednations/un-general-debates"
>Dataset from kaggle</a
>
</div> </div>
</div> </div>
</div> </div>
<div class="py-8"></div>
</div>