diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml deleted file mode 100644 index 757ebb7..0000000 --- a/.gitea/workflows/publish.yaml +++ /dev/null @@ -1,12 +0,0 @@ -name: Gitea Actions Demo -run-name: ${{ gitea.actor }} is testing out Gitea Actions -on: [push] -jobs: - explore-gitea-actions: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: List directory contents - run: ls -la - - run: echo "The job was automatically triggered by a ${{ gitea.event_name }} event." diff --git a/index.html b/index.html index ecebe62..08c2434 100644 --- a/index.html +++ b/index.html @@ -2,9 +2,8 @@ - - snusxd-site + snusxd
diff --git a/public/man.webp b/public/man.webp new file mode 100644 index 0000000..65a7535 Binary files /dev/null and b/public/man.webp differ diff --git a/public/man2.ogg b/public/man2.ogg new file mode 100644 index 0000000..f340b92 Binary files /dev/null and b/public/man2.ogg differ diff --git a/public/ut-heart.svg b/public/ut-heart.svg new file mode 100644 index 0000000..d54e9a0 --- /dev/null +++ b/public/ut-heart.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/src/App.svelte b/src/App.svelte deleted file mode 100644 index ca34907..0000000 --- a/src/App.svelte +++ /dev/null @@ -1,5 +0,0 @@ -
-

snusxd

-

telegram тг: @snusxd

-

gitea gitea: gitea-xd

-
\ No newline at end of file diff --git a/src/app.css b/src/app.css index cd97c4b..54a78f5 100644 --- a/src/app.css +++ b/src/app.css @@ -12,7 +12,7 @@ line-height: 1.5; color-scheme: light dark; color: rgba(255, 255, 255, 0.87); - background-color: #000000; + background: #000000; font-synthesis: none; text-rendering: optimizeLegibility; @@ -21,10 +21,34 @@ } p { - font-size: large; + font-size: x-large; } #app { max-width: 1280px; margin-left: 2rem; +} + +.breathe-image { + width: 30px; + height: auto; + margin-top: 300rem; + + animation-name: breathing; + animation-duration: 1s; + animation-iteration-count: infinite; + animation-timing-function: ease-in-out; + animation-direction: alternate; +} + +@keyframes breathing { + 0% { + transform: scale(0.95); + background-size: 2; + } + + 100% { + transform: scale(1.05); + background-size: 1; + } } \ No newline at end of file diff --git a/src/assets/svelte.svg b/src/assets/svelte.svg deleted file mode 100644 index c5e0848..0000000 --- a/src/assets/svelte.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/lib/Counter.svelte b/src/lib/Counter.svelte deleted file mode 100644 index 37d75ce..0000000 --- a/src/lib/Counter.svelte +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/src/main.ts b/src/main.ts index 664a057..54609db 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,9 +1,18 @@ -import { mount } from 'svelte' -import './app.css' -import App from './App.svelte' +import { mount } from "svelte"; +import "./app.css"; +import HomePage from "./routes/+page.svelte"; +import HeartPage from "./routes/heart/+page.svelte"; + +const routes: Record = { + "/": HomePage, + "/heart": HeartPage, +}; + +const normalizedPath = window.location.pathname.replace(/\/+$/, "") || "/"; +const App = routes[normalizedPath] ?? HomePage; const app = mount(App, { - target: document.getElementById('app')!, -}) + target: document.getElementById("app")!, +}); -export default app +export default app; diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte new file mode 100644 index 0000000..66ad12f --- /dev/null +++ b/src/routes/+page.svelte @@ -0,0 +1,4 @@ +

snusxd

+

telegram тг: snusxd

+

gitea gitea: gitea-xd

+heart \ No newline at end of file diff --git a/src/routes/heart/+page.svelte b/src/routes/heart/+page.svelte new file mode 100644 index 0000000..b9447c4 --- /dev/null +++ b/src/routes/heart/+page.svelte @@ -0,0 +1,15 @@ + + +man +

man

+ + diff --git a/tsconfig.app.json b/tsconfig.app.json index 31c18cf..e01fb71 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -5,7 +5,10 @@ "target": "ES2022", "useDefineForClassFields": true, "module": "ESNext", - "types": ["svelte", "vite/client"], + "types": [ + "svelte", + "vite/client" + ], "noEmit": true, /** * Typecheck JS in `.svelte` and `.js` files by default. @@ -17,5 +20,9 @@ "checkJs": true, "moduleDetection": "force" }, - "include": ["src/**/*.ts", "src/**/*.js", "src/**/*.svelte"] -} + "include": [ + "src/**/*.ts", + "src/**/*.js", + "src/**/*.svelte" + ] +} \ No newline at end of file