new design
This commit is contained in:
parent
5eb33592e9
commit
4b666a9215
8 changed files with 225 additions and 117 deletions
1
.ignore
Normal file
1
.ignore
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
public
|
||||||
|
|
@ -31,5 +31,8 @@
|
||||||
"typescript": "^5.0.0",
|
"typescript": "^5.0.0",
|
||||||
"typescript-eslint": "^8.20.0",
|
"typescript-eslint": "^8.20.0",
|
||||||
"vite": "^6.0.0"
|
"vite": "^6.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"remixicon": "^4.6.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html class="light" lang="fr">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
||||||
|
|
|
||||||
|
|
@ -6,5 +6,16 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<article>
|
<article>
|
||||||
|
<div class="text-container">
|
||||||
<document.default />
|
<document.default />
|
||||||
|
</div>
|
||||||
|
<figure></figure>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
figure {
|
||||||
|
margin-top: 2rem;
|
||||||
|
background-color: lightgray;
|
||||||
|
max-height: 400px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -2,107 +2,154 @@
|
||||||
/* @import 'fluid.css'; */
|
/* @import 'fluid.css'; */
|
||||||
@import url('https://fonts.googleapis.com/css2?family=Inclusive+Sans:ital,wght@0,300..700;1,300..700&display=swap');
|
@import url('https://fonts.googleapis.com/css2?family=Inclusive+Sans:ital,wght@0,300..700;1,300..700&display=swap');
|
||||||
|
|
||||||
html {
|
.light {
|
||||||
|
--color-primary: white;
|
||||||
--bg-color: rgb(20, 153, 84);
|
--bg-color: rgb(20, 153, 84);
|
||||||
|
}
|
||||||
font-family: "Inclusive Sans", sans-serif;
|
.dark {
|
||||||
|
--color-primary: white;
|
||||||
|
--bg-color: black;
|
||||||
|
}
|
||||||
|
html {
|
||||||
|
font-family: 'Inclusive Sans', sans-serif;
|
||||||
color: white;
|
color: white;
|
||||||
text-transform: lowercase;
|
font-weight: 300;
|
||||||
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
background-color: var(--bg-color);
|
background-color: var(--bg-color);
|
||||||
width: 100%;
|
|
||||||
|
|
||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
}
|
padding: 2rem;
|
||||||
|
|
||||||
body {
|
|
||||||
width: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
header {
|
header {
|
||||||
width: 100%;
|
text-transform: lowercase;
|
||||||
position: fixed;
|
}
|
||||||
height: max-content;
|
|
||||||
bottom: 0;
|
|
||||||
|
|
||||||
padding-left: 2rem;
|
.sticky-container {
|
||||||
|
position: -webkit-sticky;
|
||||||
|
position: sticky;
|
||||||
|
top: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn__theme {
|
||||||
|
all: unset;
|
||||||
|
margin-top: 2rem;
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
align-items: baseline;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero {
|
||||||
|
height: 100vh;
|
||||||
|
padding: 2rem 0rem;
|
||||||
|
--margin: 3rem;
|
||||||
& h1 {
|
& h1 {
|
||||||
|
padding-bottom: var(--margin);
|
||||||
|
margin-bottom: var(--margin);
|
||||||
|
font-size: 9rem;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
border-top: solid 1px white;
|
text-decoration: none;
|
||||||
font-size: 8rem;
|
border-bottom: solid 2px white;
|
||||||
background-color: var(--bg-color);
|
}
|
||||||
letter-spacing: 0.6rem;
|
|
||||||
line-height: 7rem;
|
& .subtitle {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
& > p:last-child {
|
||||||
|
margin-left: auto;
|
||||||
|
justify-self: flex-end;
|
||||||
|
width: fit-content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
& p {
|
||||||
|
margin-top: 0;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
width: fit-content;
|
||||||
|
& i {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
& a {
|
||||||
|
display: block;
|
||||||
|
margin-top: var(--margin);
|
||||||
|
text-decoration: none;
|
||||||
|
& i {
|
||||||
|
font-size: 3rem;
|
||||||
|
font-weight: 300;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
line-height: 1.3rem;
|
||||||
|
}
|
||||||
|
|
||||||
h2 {
|
a {
|
||||||
font-size: 1.1rem;
|
color: var(--color-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
text-decoration: underline;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 3fr;
|
||||||
|
gap: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav {
|
nav {
|
||||||
|
margin-top: 2rem;
|
||||||
& ul {
|
& ul {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
margin-bottom: 2rem;
|
/* margin-bottom: 2rem; */
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
& a {
|
& a {
|
||||||
color: white;
|
color: white;
|
||||||
text-decoration: none;
|
|
||||||
font-weight: 400;
|
|
||||||
letter-spacing: 0.15rem;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
section {
|
section {
|
||||||
position: absolute;
|
|
||||||
left: 50%;
|
|
||||||
/* max-width: 68ch; */
|
|
||||||
padding: 1rem 2rem 42vh 0;
|
|
||||||
z-index: -1;
|
|
||||||
|
|
||||||
& h2 {
|
& h2 {
|
||||||
margin-bottom: 3rem;
|
display: none;
|
||||||
|
color: red;
|
||||||
|
/* margin-bottom: 3rem; */
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
position: relative;
|
position: relative;
|
||||||
left: -2rem;
|
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
article {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 2fr 3fr;
|
||||||
|
gap: 0.7rem;
|
||||||
|
}
|
||||||
article h1 {
|
article h1 {
|
||||||
font-size: 5rem;
|
text-decoration: underline;
|
||||||
font-style: italic;
|
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
|
color: white;
|
||||||
&::before {
|
&::before {
|
||||||
content: '#'
|
content: '#';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
article+article {
|
article + article {
|
||||||
margin-top: 5rem;
|
margin-top: 5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
article+h2 {
|
article + h2 {
|
||||||
margin-top: 6rem;
|
margin-top: 6rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
article p {
|
article p {
|
||||||
font-size: 1.1rem;
|
& + p {
|
||||||
line-height: 1.3rem;
|
margin-top: 0.6rem;
|
||||||
/* font-weight: 400; */
|
|
||||||
|
|
||||||
&+p {
|
|
||||||
margin-top: 0.8rem;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import '$lib/styles/styles.css';
|
||||||
|
import 'remixicon/fonts/remixicon.css';
|
||||||
let { children } = $props();
|
let { children } = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div>
|
<div class="app-container">
|
||||||
{@render children()}
|
{@render children()}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,51 @@
|
||||||
|
<script module>
|
||||||
|
/* Types */
|
||||||
|
type t = string;
|
||||||
|
</script>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import '$lib/styles/styles.css';
|
|
||||||
import Article from '$lib/components/Article.svelte';
|
import Article from '$lib/components/Article.svelte';
|
||||||
|
|
||||||
let { data } = $props();
|
let { data } = $props();
|
||||||
|
|
||||||
|
const handlers = {
|
||||||
|
toggleTheme: (event: MouseEvent) => {
|
||||||
|
const html = document.documentElement;
|
||||||
|
if (html.classList.contains('light')) {
|
||||||
|
html.classList.remove('light');
|
||||||
|
html.classList.add('dark');
|
||||||
|
} else {
|
||||||
|
html.classList.remove('dark');
|
||||||
|
html.classList.add('light');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
$inspect(data.documents);
|
$inspect(data.documents);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<header>
|
<header class="hero">
|
||||||
<h1>Alliances Transcoloniales</h1>
|
<h1>alliances transcoloniales</h1>
|
||||||
|
<div class="subtitle">
|
||||||
|
<p>arts. sciences. décolonisation.</p>
|
||||||
|
<p>université de <i>soit-disant</i> montréal.</p>
|
||||||
|
<!--<p>université de <i>soit-disant</i> <s>montréal</s>.</p>-->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<a href="#title" aria-label="scroll to main content">
|
||||||
|
<i class="ri-arrow-down-line"></i>
|
||||||
|
</a>
|
||||||
|
</header>
|
||||||
|
<main>
|
||||||
|
<header>
|
||||||
|
<div class="sticky-container">
|
||||||
|
<h1 id="title"><a href="/">Alliances Transcoloniales</a></h1>
|
||||||
|
<p>
|
||||||
|
Alliances Transcoloniales est une série d’événements (#) souhaitant porter une réflexion
|
||||||
|
critique, à la lumière de l’art et du cinéma, aux des questions d’oppression et de
|
||||||
|
subalternité, passées et actuelles, vécues par différentes communautés à plusieurs endroits
|
||||||
|
de la planète en adoptant une perspective transcolonialiste.
|
||||||
|
</p>
|
||||||
<nav>
|
<nav>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#evenements">Événements</a></li>
|
<li><a href="#evenements">Événements</a></li>
|
||||||
|
|
@ -16,9 +54,14 @@
|
||||||
<li><a href="#bibliographie">Bibliographie sélective</a></li>
|
<li><a href="#bibliographie">Bibliographie sélective</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
<button class="btn__theme" onclick={handlers.toggleTheme}
|
||||||
|
><i class="ri-contrast-fill"></i>
|
||||||
|
<p>changer de thème</p></button
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h2 id="evenements">Événements</h2>
|
<h2 id="evenements">Événements</h2>
|
||||||
{#each data.documents as d}
|
{#each data.documents as d}
|
||||||
<Article document={d} />
|
<Article document={d} />
|
||||||
|
|
@ -32,7 +75,8 @@
|
||||||
événements sur le <a
|
événements sur le <a
|
||||||
href="https://www.zotero.org/groups/5871768/alliances-transcoloniales/library">Zotero</a
|
href="https://www.zotero.org/groups/5871768/alliances-transcoloniales/library">Zotero</a
|
||||||
>
|
>
|
||||||
des <i>Alliances Transcoloniales</i>
|
des <i>Alliances Transcoloniales</i>.
|
||||||
</p>
|
</p>
|
||||||
</article>
|
</article>
|
||||||
</section>
|
</section>
|
||||||
|
</main>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
export const load = async () => {
|
export const load = async () => {
|
||||||
const documents = import.meta.glob('$lib/content/events/*.md', { eager: true })
|
const documents = import.meta.glob('$lib/content/events/*.md', { eager: true });
|
||||||
return {
|
return {
|
||||||
documents: Object.values(documents)
|
documents: Object.values(documents)
|
||||||
}
|
};
|
||||||
}
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue