Skip to content

Commit

Permalink
feat: start landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
mmattbtw committed Feb 20, 2023
1 parent 606624d commit f4f201e
Show file tree
Hide file tree
Showing 9 changed files with 290 additions and 11 deletions.
9 changes: 8 additions & 1 deletion frontend/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,29 @@
"@types/fs-extra": "^11.0.1",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"autoprefixer": "^10.4.13",
"concurrently": "^7.6.0",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-svelte3": "^4.0.0",
"fast-glob": "^3.2.12",
"fs-extra": "^11.1.0",
"postcss": "^8.4.21",
"prettier": "^2.8.0",
"prettier-plugin-svelte": "^2.8.1",
"svelte": "^3.54.0",
"svelte-adapter-deno": "^0.9.0",
"svelte-check": "^3.0.1",
"tailwindcss": "^3.2.7",
"tslib": "^2.4.1",
"typescript": "^4.9.3",
"vite": "^4.1.1",
"vitest": "^0.25.3",
"wasm-pack": "^0.10.3"
},
"type": "module"
"type": "module",
"dependencies": {
"@fontsource/be-vietnam-pro": "^4.5.8",
"@fontsource/comfortaa": "^4.5.11"
}
}
6 changes: 6 additions & 0 deletions frontend/website/postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
3 changes: 3 additions & 0 deletions frontend/website/src/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
7 changes: 7 additions & 0 deletions frontend/website/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<script>
import "@fontsource/be-vietnam-pro";
import "@fontsource/comfortaa";
import "../app.css";
</script>

<slot />
13 changes: 11 additions & 2 deletions frontend/website/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,14 @@
});
</script>

<h1>Welcome to SvelteKit</h1>
<p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p>
<body class="h-screen bg-gradient-to-b from-black to-neutral-800 text-white bg-no-repeat">
<div class="flex flex-col items-center">
<div class="mt-64 flex flex-col justify-center">
<div class="flex flex-col items-center">
<h1 class="font-primary font-bold text-7xl text-transparent bg-clip-text bg-gradient-to-b from-[#FF7357] to-[#FF4C6D]">Scuffle.tv</h1>
<p class="text-neutral-400">We’re building a streaming platform.</p>
<p class="text-neutral-400">A <span class="text-white">community driven streaming platform</span>, that is.</p>
</div>
</div>
</div>
</body>
2 changes: 1 addition & 1 deletion frontend/website/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import adapter from "svelte-adapter-deno";
import { vitePreprocess } from "@sveltejs/kit/vite";
import adapter from "svelte-adapter-deno";

/** @type {import('@sveltejs/kit').Config} */
const config = {
Expand Down
19 changes: 19 additions & 0 deletions frontend/website/tailwind.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.{html,js,svelte,ts}"],
theme: {
extend: {
colors: {
// todo: name these better
primary: "#FF7357",
darkbg: "#16282C",
lighterbg: "#223134",
},
fontFamily: {
primary: ["Comfortaa", "sans-serif"],
sans: ["Be Vietnam Pro", "sans-serif"],
},
},
},
plugins: [],
};
2 changes: 1 addition & 1 deletion frontend/website/tests/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { expect, test } from "@playwright/test";

test("index page has expected h1", async ({ page }) => {
await page.goto("/");
await expect(page.getByRole("heading", { name: "Welcome to SvelteKit" })).toBeVisible();
await expect(page.getByRole("heading", { name: "Scuffle.tv" })).toBeVisible();
});
Loading

0 comments on commit f4f201e

Please sign in to comment.