add landingpage

This commit is contained in:
2024-05-13 11:51:35 +02:00
commit bf0da398b9
23 changed files with 2026 additions and 0 deletions
+10
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
View File
@@ -0,0 +1 @@
engine-strict=true
+26
View File
@@ -0,0 +1,26 @@
# Schreifuchs
Schreifuchs.ch ist meine persönliche Webseite.
## 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.
+19
View File
@@ -0,0 +1,19 @@
{
"extends": "./.svelte-kit/tsconfig.json",
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"moduleResolution": "bundler"
}
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
// except $lib which is handled by https://kit.svelte.dev/docs/configuration#files
//
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
// from the referenced tsconfig.json - TypeScript does not merge them in
}
+28
View File
@@ -0,0 +1,28 @@
{
"name": "schreifuchs",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"autoprefixer": "^10.4.19",
"postcss": "^8.4.38",
"svelte": "^4.2.7",
"svelte-check": "^3.6.0",
"tailwindcss": "^3.4.3",
"typescript": "^5.0.0",
"vite": "^5.0.3"
},
"type": "module",
"dependencies": {
"@fontsource/outfit": "^5.0.13"
}
}
+1789
View File
File diff suppressed because it is too large Load Diff
+6
View File
@@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
+5
View File
@@ -0,0 +1,5 @@
@import "@fontsource/outfit";
@tailwind base;
@tailwind components;
@tailwind utilities;
+13
View File
@@ -0,0 +1,13 @@
// See https://kit.svelte.dev/docs/types#app
// for information about these interfaces
declare global {
namespace App {
// interface Error {}
// interface Locals {}
// interface PageData {}
// interface PageState {}
// interface Platform {}
}
}
export {};
+12
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, initial-scale=1" />
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>
+17
View File
@@ -0,0 +1,17 @@
<script>
import ImageTile from "./ImageTile.svelte";
/** @type {string} **/
export let src;
/** @type {string} **/
export let href;
/** @type {"_self" | "_blank" | "_parent" | "_top" } **/
export let target = "_self";
</script>
<div class="hover:invert">
<ImageTile {src}>
<a {href} {target} class="flex items-center justify-center h-full">
<slot />
</a>
</ImageTile>
</div>
+14
View File
@@ -0,0 +1,14 @@
<script>
/** @string */
export let src;
</script>
<div class="grid grid-cols-1 grid-rows-1">
<img
{src}
class="row-start-1 col-start-1 pointer-events-none w-full h-96 object-cover"
/>
<div class="row-start-1 col-start-1">
<slot />
</div>
</div>
Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 423 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 439 KiB

+1
View File
@@ -0,0 +1 @@
// place files you want to import through the `$lib` alias in this folder.
+8
View File
@@ -0,0 +1,8 @@
<script>
import "../app.css";
</script>
<header class="fixed z-50 mix-blend-difference p-1">
<a href="/" class="text-white text-2xl">schreifuchs.ch</a>
</header>
<slot />
+32
View File
@@ -0,0 +1,32 @@
<script>
import ImageLinkTile from "$lib/components/ImageLinkTile.svelte";
import mouse from "$lib/images/mouse.webp";
import drummachine from "$lib/images/drummachine.webp";
import scouts from "$lib/images/scouts.webp";
import console_image from "$lib/images/console.webp";
</script>
<ImageLinkTile src={console_image} href="">
<h2 class="text-3xl font-bold text-white hover:underline text-shadow-lg">
Informatik
</h2>
</ImageLinkTile>
<ImageLinkTile src={scouts} href="https://pfadifrisco.ch/" target="_blank">
<h2 class="text-3xl font-bold text-white hover:underline text-shadow-lg">
Pfadi
</h2>
</ImageLinkTile>
<ImageLinkTile src={mouse} href="">
<h2 class="text-3xl font-bold text-white hover:underline text-shadow-lg">
Fotos
</h2>
</ImageLinkTile>
<ImageLinkTile src={drummachine} href="">
<h2 class="text-3xl font-bold text-white hover:underline text-shadow-lg">
Musik
</h2>
</ImageLinkTile>
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

+10
View File
@@ -0,0 +1,10 @@
import adapter from '@sveltejs/adapter-auto';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
adapter: adapter()
},
preprocess: vitePreprocess()
};
export default config;
+29
View File
@@ -0,0 +1,29 @@
import plugin from "tailwindcss/plugin"
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
extend: {
fontFamily: {
sans: ['Outfit', 'outfit', 'sans-serif']
},
textShadow: {
sm: '0 1px 2px #000',
DEFAULT: '0 2px 4px #000',
lg: '0px 0px 20px #000',
},
},
},
plugins: [
plugin(function({ matchUtilities, theme }) {
matchUtilities(
{
'text-shadow': (value) => ({
textShadow: value,
}),
},
{ values: theme('textShadow') }
)
}),
],
}
+6
View File
@@ -0,0 +1,6 @@
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [sveltekit()]
});