This commit is contained in:
tree 2022-10-22 11:12:01 +02:00
revize 7b521684ee
18 změnil soubory, kde provedl 4680 přidání a 0 odebrání

8
.gitignore vendorováno Normal file
Zobrazit soubor

@ -0,0 +1,8 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

1
.npmrc Normal file
Zobrazit soubor

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

16
.woodpecker.yml Normal file
Zobrazit soubor

@ -0,0 +1,16 @@
pipeline:
build:
image: node
commands:
- node --version
- npm ci
- npm run build
deploy:
image: rclone/rclone
commands:
- "rclone sync build/ :sftp: --sftp-host frontier.gwei.cz --sftp-user eb2-proxy-website --sftp-port 2022 --sftp-pass $RCLONE_PASS -v"
secrets: [RCLONE_PASS]
when:
branch: [main]

38
README.md Normal file
Zobrazit soubor

@ -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.

4439
package-lock.json vygenerováno Normal file

Rozdílový obsah nebyl zobrazen, protože je příliš veliký Načíst rozdílové porovnání

23
package.json Normal file
Zobrazit soubor

@ -0,0 +1,23 @@
{
"name": "eb2-proxy-web",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview"
},
"devDependencies": {
"@sveltejs/adapter-auto": "next",
"@sveltejs/adapter-static": "^1.0.0-next.46",
"@sveltejs/kit": "next",
"autoprefixer": "^10.4.12",
"js-yaml": "^4.1.0",
"postcss": "^8.4.18",
"svelte": "^3.44.0",
"svelte-preprocess": "^4.10.7",
"tailwindcss": "^3.2.1",
"vite": "^3.1.0"
},
"type": "module"
}

6
postcss.config.cjs Normal file
Zobrazit soubor

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

15
src/app.css Normal file
Zobrazit soubor

@ -0,0 +1,15 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
body {
font-family: 'Roboto Mono', monospace;
}
a {
text-decoration: underline;
}
a:hover {
text-decoration: none;
}

13
src/app.html Normal file
Zobrazit soubor

@ -0,0 +1,13 @@
<!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%
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;700&display=swap" rel="stylesheet">
</head>
<body>
<div>%sveltekit.body%</div>
</body>
</html>

1
src/routes/+layout.js Normal file
Zobrazit soubor

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

26
src/routes/+layout.svelte Normal file
Zobrazit soubor

@ -0,0 +1,26 @@
<script>
import "../app.css";
</script>
<svelte:head>
<title>ETHBrno² Proxy</title>
</svelte:head>
<div class="w-full flex justify-center">
<section class="w-full px-4 lg:px-0 lg:w-3/4">
<div class="text-center pt-10 pb-10">
<h1 class="text-5xl font-bold">ETHBrno² Proxy</h1>
<div class="mt-6 text-xl">Neděle 13. listopadu 2022, Brno</div>
<div class="mt-2 text-xl">
Téma: <b class="font-bold">Soukromí a bezpečnost</b>
</div>
</div>
<slot />
<div class="mt-20 mb-16 text-center text-sm">
(c) 2022 - ETHBrno² pořádá <a href="https://utxo.foundation/">UTXO Foundation</a> a <a href="https://gwei.cz">Gwei.cz</a> komunita
</div>
</section>
</div>

55
src/routes/+page.svelte Normal file
Zobrazit soubor

@ -0,0 +1,55 @@
<script>
const speakers = [
{
id: 'investocka',
name: 'Libor Flössler (Investocka)',
text: 'Autor investorského kanálu <a href="https://www.youtube.com/c/investocka" target="_blank">Investocka</a>'
},
{
id: 'jiri-cepelka',
name: 'Jiří Čepelka',
text: 'Anarchokapitalista zabývající se smart-chainy'
}
]
</script>
<div>
<div class="text-center mb-6">
<p>
Kryptoměnová konference pro široké publikum, která se bude konat souběžně s mezinárodním hackathonem <a href="https://ethbrno.cz" class="underline hover:no-underline">ETHBrno²</a>.
</p>
<div class="mt-6">
<a href="https://proxy-tickets.ethbrno.cz/">
<button class="bg-black hover:bg-gray-700 text-white font-bold py-2 px-4 rounded">
Koupit vstupenku →
</button>
</a>
</div>
</div>
<div class="mb-10">
<h2 class="text-3xl text-center py-10 font-bold">Přednášející</h2>
<div class="flex flex-wrap gap-10 justify-center">
{#each speakers as item}
<div class="text-center w-1/2 lg:w-1/3 xl:w-1/5">
<div class="flex justify-center mb-4"><img src="/photos/speakers/{item.id}.jpg" class="w-32 h-32 rounded-full"/></div>
<div class="font-bold">{item.name}</div>
<div class="text-sm mt-2">{@html item.text}</div>
</div>
{/each}
</div>
</div>
<div>
<h2 class="text-3xl text-center py-10 font-bold">Program</h2>
<div class="text-center">
Program bude zveřejněn 1.11.2022.
</div>
</div>
</div>

binární
static/favicon.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 598 B

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 23 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 18 KiB

24
svelte.config.js Normal file
Zobrazit soubor

@ -0,0 +1,24 @@
import adapter from '@sveltejs/adapter-static';
import preprocess from "svelte-preprocess";
/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
adapter: adapter({
// default options are shown. On some platforms
// these options are set automatically — see below
pages: 'build',
assets: 'build',
fallback: null,
precompress: false
}),
trailingSlash: 'always',
},
preprocess: [
preprocess({
postcss: true,
}),
],
};
export default config;

8
tailwind.config.cjs Normal file
Zobrazit soubor

@ -0,0 +1,8 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
extend: {}
},
plugins: []
};

7
vite.config.js Normal file
Zobrazit soubor

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