first commit

This commit is contained in:
tree🌴 2023-02-11 21:42:13 +01:00
commit b65b60ae54
23 changed files with 3133 additions and 0 deletions

13
.eslintignore Normal file
View file

@ -0,0 +1,13 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example
# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock

15
.eslintrc.cjs Normal file
View file

@ -0,0 +1,15 @@
module.exports = {
root: true,
extends: ['eslint:recommended', 'prettier'],
plugins: ['svelte3'],
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020
},
env: {
browser: true,
es2017: true,
node: true
}
};

42
.github/workflows/gh-pages.yml vendored Normal file
View file

@ -0,0 +1,42 @@
name: GitHub Pages
on:
push:
branches:
- main # Set a branch name to trigger deployment
jobs:
build_and_deploy:
runs-on: ubuntu-22.04
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- uses: actions/setup-node@v3
with:
node-version: 19
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Add custom domain
run: 'touch build/CNAME && echo "prague.web3privacy.info" >> build/CNAME'
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
# If you're changing the branch from main,
# also change the `main` in `refs/heads/main`
# below accordingly.
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build

10
.gitignore vendored Normal file
View file

@ -0,0 +1,10 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*

1
.npmrc Normal file
View file

@ -0,0 +1 @@
engine-strict=true

13
.prettierignore Normal file
View file

@ -0,0 +1,13 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example
# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock

9
.prettierrc Normal file
View file

@ -0,0 +1,9 @@
{
"useTabs": true,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"pluginSearchDirs": ["."],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}

38
README.md Normal file
View file

@ -0,0 +1,38 @@
# create-svelte
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).
## Creating a project
If you're seeing this, you've probably already done this step. Congrats!
```bash
# create a new project in the current directory
npm create svelte@latest
# create a new project in my-app
npm create svelte@latest my-app
```
## Developing
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
```bash
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
```
## Building
To create a production version of your app:
```bash
npm run build
```
You can preview the production build with `npm run preview`.
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.

2749
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

28
package.json Normal file
View file

@ -0,0 +1,28 @@
{
"name": "web3privacy-prague",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"lint": "prettier --plugin-search-dir . --check . && eslint .",
"format": "prettier --plugin-search-dir . --write ."
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/adapter-static": "^2.0.1",
"@sveltejs/kit": "^1.5.0",
"autoprefixer": "^10.4.13",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-svelte3": "^4.0.0",
"postcss": "^8.4.21",
"prettier": "^2.8.0",
"prettier-plugin-svelte": "^2.8.1",
"svelte": "^3.54.0",
"tailwindcss": "^3.2.6",
"vite": "^4.0.0"
},
"type": "module"
}

6
postcss.config.cjs Normal file
View file

@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}

31
src/app.css Normal file
View file

@ -0,0 +1,31 @@
@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Mono&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer components {
body {
@apply bg-[#0d1117];
}
* {
@apply text-white font-mono;
}
.middle-pane-medium {
@apply max-w-7xl mx-auto px-4 xl:px-0;
}
.middle-pane-big {
@apply max-w-screen-2xl mx-auto px-4 2xl:px-0;
}
.button {
@apply px-3 py-1.5 text-black bg-white;
}
.section-header {
@apply text-5xl mb-16 font-bold;
}
}

12
src/app.html Normal file
View file

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<meta name="viewport" content="width=device-width" />
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>

21
src/lib/config.js Normal file
View file

@ -0,0 +1,21 @@
export default {
title: 'Web3Privacy Prague 2023',
shortname: 'Web3Privacy Prague',
date: 'Monday, 5. June 2023',
venue: 'X10, Prague',
themes: [
{ title: 'Human rights DAOs (pro-privacy)' },
{ title: 'Identity (ID)' },
{ title: 'Mixnets → Full-Stack Privacy' },
{ title: 'Cryptography' },
{ title: 'Tech journalists' },
{ title: 'Asian community' },
{ title: 'Privacy wars' },
{ title: 'Privacy workforce' },
{ title: 'Privacy activist\'s' },
{ title: 'R&D (ZK, MPC)' },
{ title: 'Network states (with a privacy focus)' },
{ title: 'Solarpunk vs Lunarpunk' },
{ title: 'Veksl' }
]
}

7
src/routes/+layout.js Normal file
View file

@ -0,0 +1,7 @@
import config from '$lib/config';
export async function load({ params, url, fetch }) {
return {
config
}
}

View file

@ -0,0 +1 @@
export const prerender = true;

72
src/routes/+layout.svelte Normal file
View file

@ -0,0 +1,72 @@
<script>
import "../app.css";
export let data;
const menu = [
{ title: 'About', url: '/#about' },
{ title: 'Speakers', url: '/#speakers' },
{ title: 'Program', url: '/#program' },
{ title: 'Sponsors', url: '/#sponsors' },
{ title: 'Ticket', url: '/#ticket', class: 'button' }
]
</script>
<div class="relative w-full min-h-screen">
<div class="w-full h-screen">
<div class="fixed w-full h-18 bg-black pt-6 md:pt-2 pb-2">
<div class="middle-pane-big bg-black">
<div class="flex">
<div class="flex items-center gap-4 grow">
<div class="w-20">
<a href="https://web3privacy.info"><img src="/web3privacy.png" /></a>
</div>
<!--h1 class="text-2xl uppercase">{data.config.title}</h1-->
</div>
<div class="flex items-center gap-6 uppercase text-xl">
{#each menu as mi}
<div class={mi.class}><a href={mi.url}>{mi.title}</a></div>
{/each}
</div>
</div>
</div>
</div>
<div class="w-full h-full">
<div class="w-full h-full flex items-center text-center">
<div class="mx-auto">
<div class="text-7xl font-bold uppercase mb-8">{data.config.shortname}</div>
<div class="text-5xl mb-4">{data.config.date}</div>
<div class="text-5xl">{data.config.venue}</div>
</div>
</div>
</div>
</div>
<slot />
<div class="pb-16 bg-black">
<div class="middle-pane-medium pt-6 mx-auto">
<div class="flex items-center">
<div class="grow">
<div class="w-48">
<a href="https://web3privacy.info"><img src="/web3privacy.png" /></a>
</div>
</div>
<div class="text-right">
<div class="inline-block">
<a href="https://twitter.com/web3privacy">
<svg width="29" height="26" viewBox="0 0 29 26" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M28.0266 3.12733C26.9955 3.62938 25.8872 3.96853 24.7242 4.12112C25.9113 3.34005 26.8231 2.10325 27.2524 0.629411C26.1413 1.35279 24.9107 1.87791 23.6009 2.16092C22.5522 0.934264 21.0578 0.167969 19.4039 0.167969C16.2285 0.167969 13.6538 2.99367 13.6538 6.47907C13.6538 6.97373 13.7047 7.45548 13.8028 7.91738C9.02398 7.6542 4.78719 5.14151 1.95117 1.3231C1.45622 2.25521 1.17259 3.33929 1.17259 4.49596C1.17259 6.68564 2.18771 8.61738 3.73058 9.74913C2.78804 9.71637 1.90142 9.43244 1.1262 8.95977C1.12555 8.98607 1.12555 9.01252 1.12555 9.03913C1.12555 12.0969 3.1076 14.6476 5.73804 15.2278C5.25556 15.3721 4.74758 15.4491 4.2232 15.4491C3.85268 15.4491 3.49255 15.4095 3.14137 15.3359C3.87315 17.8432 5.99658 19.6679 8.51282 19.7187C6.54493 21.4115 4.06569 22.4206 1.37163 22.4206C0.907503 22.4206 0.449828 22.3906 0 22.3323C2.54468 24.1231 5.56708 25.168 8.81424 25.168C19.3905 25.168 25.1742 15.5511 25.1742 7.21076C25.1742 6.93712 25.1686 6.66503 25.1576 6.39416C26.2809 5.50451 27.2556 4.39306 28.0265 3.12733H28.0266Z" fill="white"/>
</svg>
</a>
</div>
<div class="mt-4">💛 Organized by <a href="https://ethbrno.cz" class="underline hover:no-underline">ETHBrno</a> team</div>
</div>
</div>
</div>
</div>
</div>

31
src/routes/+page.svelte Normal file
View file

@ -0,0 +1,31 @@
<script>
export let data;
</script>
<svelte:head>
<title>{data.config.title}</title>
</svelte:head>
<div class="bg-black">
<div class="middle-pane-medium pb-20 text-xl text-center mx-auto">
<div class="py-32 w-1/2 mx-auto">
For the first time in the internets history, web3 has made meaningful ownership of our own data possible. DeData Salon will bring 18th Century salons up to speed, inviting leaders in the space to discuss what data ownership will mean in the Web3 economy.
</div>
<div class="section-header">Key themes</div>
<div class="grid grid-cols-3 gap-10">
{#each data.config.themes as ti}
<div class="bg-white px-4 py-6">
<div class="text-black text-2xl uppercase">{ti.title}</div>
<div class="text-black mt-4 text-lg">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras interdum tincidunt eros eu malesuada. Vivamus in urna at ex dictum pretium quis a erat.</div>
</div>
{/each}
</div>
</div>
</div>
<div class="">
<div class="middle-pane-medium pt-20 text-xl text-center mx-auto">
<div class="section-header">Speakers</div>
</div>
</div>

BIN
static/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
static/web3privacy.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 KiB

12
svelte.config.js Normal file
View file

@ -0,0 +1,12 @@
import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/kit/vite';
/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
adapter: adapter()
},
preprocess: vitePreprocess()
};
export default config;

16
tailwind.config.cjs Normal file
View file

@ -0,0 +1,16 @@
/** @type {import('tailwindcss').Config} */
const defaultTheme = require('tailwindcss/defaultTheme');
module.exports = {
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
extend: {
fontFamily: {
mono: ['Ubuntu Mono', ...defaultTheme.fontFamily.mono]
},
},
},
plugins: [],
darkMode: ['class'],
}

6
vite.config.js Normal file
View file

@ -0,0 +1,6 @@
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [sveltekit()]
});