Skip to content

Commit

Permalink
feat: adds code of conduct page, closes #25 (#43)
Browse files Browse the repository at this point in the history
* feat: adds code of conduct page

* style: unify text classes

* fix: adds logotype, fixes cta
  • Loading branch information
thedivtagguy authored Feb 20, 2025
1 parent ae65945 commit ebe8531
Show file tree
Hide file tree
Showing 7 changed files with 176 additions and 45 deletions.
18 changes: 18 additions & 0 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,22 @@ button:focus:not(:focus-visible) {

.slanted-text {
font-variation-settings: 'slnt' var(--letter-slant);
}

/* Common Text Styles */
.content-text {
@apply text-[18px] md:text-[22px];
line-height: 1.5;
}

.content-heading {
@apply text-[22px] leading-[1.5] font-bold;
}

.content-container {
@apply mx-auto max-w-3xl px-4;
}

.content-notice {
@apply mb-8 rounded-lg border border-gray-200 bg-gray-100 p-6 md:p-8;
}
10 changes: 5 additions & 5 deletions src/lib/components/Footer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
<div class="footer-content relative pb-24">
<footer class="relative">
<div class="z-10 flex flex-col items-center gap-8 py-16">
<!-- <div class="links flex gap-8">
<a href="/about" class="hover:text-primary">About</a>
<a href="/conference" class="hover:text-primary">Conference</a>
<a href="/contact" class="hover:text-primary">Contact</a>
</div> -->
<div class="links flex gap-8">
<a href="/code-of-conduct" class=" text-viz-pink-dark font-bold underline"
>Code of Conduct</a
>
</div>

<SocialLink />

Expand Down
35 changes: 35 additions & 0 deletions src/lib/components/NavMenu.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<script lang="ts">
import { page } from '$app/stores';
import VizChitraLogoType from './VizChitraLogoType.svelte';
</script>

<nav class="fixed top-0 right-0 left-0 z-50 border-b border-gray-200 bg-white">
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<div class="flex h-16 justify-between">
<div class="flex">
<a href="/" class="flex items-center text-3xl">
<VizChitraLogoType />
</a>
</div>
<div class="flex items-center space-x-4">
<a
href="/"
class="rounded-md px-3 py-2 text-base font-medium {$page.url.pathname === '/'
? 'text-viz-blue'
: 'hover:text-blue-dark text-viz-gray'}"
>
Home
</a>
<a
href="/code-of-conduct"
class="rounded-md px-3 py-2 text-base font-medium {$page.url.pathname ===
'/code-of-conduct'
? 'text-blue-600'
: 'text-gray-600 hover:text-blue-600'}"
>
Code of Conduct
</a>
</div>
</div>
</div>
</nav>
11 changes: 11 additions & 0 deletions src/lib/components/PageHeader.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<script lang="ts">
import BannerPolygon from './BannerPolygon.svelte';
export let title: string;
</script>

<div class="relative h-48">
<BannerPolygon staticBanner={true} />
<div class="absolute inset-0 flex items-center justify-center">
<h1 class="font-display rounded-2xl bg-white px-4 text-[2rem] font-bold">{title}</h1>
</div>
</div>
13 changes: 10 additions & 3 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
<script>
import Header from './Header.svelte';
import Footer from '$lib/components/Footer.svelte';
import '../app.css';
import HeaderCallToAction from '$lib/components/HeaderCallToAction.svelte';
import { page } from '$app/stores';
import NavMenu from '$lib/components/NavMenu.svelte';
/** @type {{children: import('svelte').Snippet}} */
let { children } = $props();
</script>

{#if $page.url.pathname !== '/'}
<NavMenu />
{/if}

<div class="app">
<!-- <Header /> -->
<HeaderCallToAction />
{#if $page.url.pathname === '/'}
<HeaderCallToAction />
{/if}
<main>
{@render children()}
</main>
Expand Down
64 changes: 27 additions & 37 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
import { formatSlantedText } from '$lib/utils/utils.js';
import CallToAction from '$lib/components/CallToAction.svelte';
import VizChitraLogoType from '$lib/components/VizChitraLogoType.svelte';
import SocialLink from '$lib/components/SocialLink.svelte';
import { base } from '$app/paths';
import Button from '$lib/components/Button.svelte';
export let data;
Expand Down Expand Up @@ -45,7 +44,7 @@
</div>

<h3
class="tagline -mt-8 max-w-[20ch] border-black text-center text-[1.2rem] leading-none uppercase md:mt-0 md:border-l-2 md:pl-5 md:text-left md:text-[1.6rem]"
class="tagline -mt-8 max-w-[20ch] border-black text-center uppercase md:mt-0 md:border-l-2 md:pl-5 md:text-left"
>
{#each formatSlantedText('A SPACE TO CONNECT AND CREATE WITH DATA') as letter}
<span
Expand All @@ -62,19 +61,19 @@
<CallToAction />

<div class="mt-20 flex flex-col items-center gap-10">
<div class="content flex flex-col gap-2">
<div class="content-container flex flex-col gap-2">
<h1>
<VizChitraLogoType></VizChitraLogoType>
</h1>

<p class="mb-4 max-w-[55ch] text-[18px] md:text-[22px]">
<p class="content-text mb-4 max-w-[55ch]">
Data visualization practitioners in India have been spread across different communities. As
the first of its kind <span class="font-semibold">
data visualization community, VizChitra
</span> is putting together a conference to bring these people together.
</p>

<p class="mx-auto mb-8">
<p class="mx-auto mt-2 mb-6">
{#each formatSlantedText('A SPACE TO CONNECT AND CREATE WITH DATA') as letter}
<span class="slanted-text text-[24px]" style="--letter-slant: {letter.slant}">
{letter.letter}
Expand All @@ -83,7 +82,7 @@
</p>

<div class="pillars">
<p class="mb-1 max-w-[55ch] text-[18px] md:text-[22px]">
<p class="content-text mb-1 max-w-[55ch]">
Our goal is to build a community of diverse, interdisciplinary individuals working across
the visualization spectrum, and facilitate learning and connections between people from
different industries and disciplines who share a common interest in the power of data and
Expand All @@ -94,15 +93,15 @@
<PolygonDivider></PolygonDivider>
</div>

<div class="content flex flex-col gap-2">
<h2 class="font-display !text-[2rem] font-bold">OUR MISSION</h2>
<div class="content-container flex flex-col gap-2">
<h2 class="content-heading !text-[2rem]">OUR MISSION</h2>

<p class="mb-4 max-w-[55ch] text-[18px] md:text-[22px]">
<p class="content-text mb-4 max-w-[55ch]">
To foster a vibrant <span class="font-semibold">community of data storytellers in India</span
>, bridging technical analysis and design expertise to shape perspectives and drive change
</p>

<p class="mx-auto mb-6 text-center md:mb-8">
<p class="mx-auto mb-6 text-center">
{#each formatSlantedText('AN INDIAN DATA VISUALIZATION COMMUNITY') as letter}
<span
class="slanted-text text-[18px] md:text-[24px]"
Expand All @@ -114,31 +113,26 @@
</p>

<div class="pillars">
<p class="mb-1 max-w-[55ch] text-[18px] md:text-[22px]">
<p class="content-text mb-1 max-w-[55ch]">
The VizChitra community plans to drive this using these three main pillars of work:
</p>
<ol class="space-y-4 md:space-y-2">
<ol class="mt-4 space-y-6">
<li>
<h3 class="font-display text-[18px] leading-[1.5] font-bold md:text-[22px]">
1. Consider and Curate:
</h3>
<p class="text-[16px] md:text-[22px]">
<h3 class="content-heading">1. Consider and Curate:</h3>
<p class="content-text">
Build a rhythm of curated events to spread the practice of data visualization
</p>
</li>
<li>
<h3 class="font-display text-[18px] leading-[1.5] font-bold md:text-[22px]">
2. Cultivate and Care:
</h3>
<p class="text-[16px] md:text-[22px]">
<h3 class="content-heading">2. Cultivate and Care:</h3>
<p class="content-text">
Nurture a fertile space for learning and sharing of data visualization skills
</p>
</li>

<li>
<h3 class="font-display text-[18px] leading-[1.5] font-bold md:text-[22px]">
3. Create and Collaborate:
</h3>
<p class="text-[16px] md:text-[22px]">
<h3 class="content-heading">3. Create and Collaborate:</h3>
<p class="content-text">
Express and co-create to push the boundaries of data visualization
</p>
</li>
Expand All @@ -147,29 +141,25 @@

<PolygonDivider></PolygonDivider>

<h2 class="font-display mt-5 !text-[2rem] font-bold">VIZCHITRA 2025</h2>
<h2 class="content-heading mt-5 !text-[2rem]">VIZCHITRA 2025</h2>

<p class="mb-6 max-w-[55ch] text-[18px] md:text-[22px]">
One day of talks and dialogues and One day of workshops
<p class="content-text mb-6 max-w-[55ch]">
One day of talks and dialogues and one day of workshops
</p>

<div
class="mb-10 grid grid-cols-1 gap-6 rounded-lg bg-gray-100 p-6 md:grid-cols-2 md:gap-8 md:p-8"
>
<div class="content-notice mb-10 grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-8">
<div class="space-y-2">
<h3 class="font-display text-primary text-[22px] leading-[1.5] font-bold">
CONFERENCE DAY
</h3>
<h3 class="content-heading text-primary">CONFERENCE DAY</h3>
<div class="space-y-1">
<p class="text-[22px] font-semibold">27th June, 2025</p>
<p class="content-text font-semibold">27th June, 2025</p>
<p class="text-[20px]">Bangalore International Center</p>
</div>
</div>

<div class="space-y-2">
<h3 class="font-display text-primary text-[22px] leading-[1.5] font-bold">WORKSHOP DAY</h3>
<h3 class="content-heading text-primary">WORKSHOP DAY</h3>
<div class="space-y-1">
<p class="text-[22px] font-semibold">28th June, 2025</p>
<p class="content-text font-semibold">28th June, 2025</p>
<p class="text-[20px]">Across Bangalore</p>
</div>
</div>
Expand Down
70 changes: 70 additions & 0 deletions src/routes/code-of-conduct/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<script lang="ts">
import { formatSlantedText } from '$lib/utils/utils.js';
import NavMenu from '$lib/components/NavMenu.svelte';
import PageHeader from '$lib/components/PageHeader.svelte';
</script>

<NavMenu />

<div class="min-h-screen">
<PageHeader title="Code of Conduct" />

<div class="content-container py-12">
<h2 class="mb-8 text-center">
{#each formatSlantedText("THE DO'S AND DONT'S FOR THE COMMUNITY") as letter}
<span
class="slanted-text text-[18px] md:text-[24px]"
style="--letter-slant: {letter.slant}"
>
{letter.letter}
</span>
{/each}
</h2>

<p class="content-text mb-6">
This code of conduct applies across online exchanges, conferences and other events hosted by
VizChitra community.
</p>

<p class="content-text mb-6">
We are here as a community to deliberate on the topics of the community.
</p>

<ul class="content-text mb-8 list-disc space-y-2 pl-6">
<li>Be nice to everyone,</li>
<li>Be empathetic,</li>
<li>Be questioning, as it furthers the discussion, but</li>
<li>Discuss ideas, not people and their personalities (as that would be ad hominem).</li>
</ul>

<h3 class="content-heading mb-4">Prohibited Behavior</h3>
<p class="content-text mb-4">
We strongly condemn any kind of harassment of any fellow participant. This includes:
</p>

<ul class="content-text mb-8 list-disc space-y-2 pl-6">
<li>Sustained disruption of talks, discussions and other events.</li>
<li>
Offensive remarks or jokes made about women, men, persons of non-binary genders and those
with physical disabilities, or on the basis of sexuality, race, caste or religion.
</li>
<li>
Use of images that objectify the human body unless absolutely relevant to the discussion.
</li>
<li>Inappropriate physical contact and invasion of private space.</li>
<li>Deliberate intimidation, unwelcome gestures and stalking.</li>
</ul>

<div class="content-notice">
<p class="content-text mb-4">
Please report in confidence by sending an email to the community admins. Reports will be
treated seriously and community admins will address this matter quickly.
</p>

<p class="content-text font-semibold">
Violators, regardless of their standing, may be expelled from the community, without a
refund (where payment was applicable), and reported to the authorities.
</p>
</div>
</div>
</div>

0 comments on commit ebe8531

Please sign in to comment.