Skip to content

Commit

Permalink
parity with static site
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondwang committed Apr 4, 2024
1 parent af51a4a commit 8dc4cbc
Show file tree
Hide file tree
Showing 10 changed files with 57 additions and 107 deletions.
39 changes: 1 addition & 38 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1 @@
# create-svelte

Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/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.
🚧 under construction 👷🏻‍♂️
41 changes: 0 additions & 41 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"@sveltejs/adapter-static": "^3.0.1",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@tailwindcss/typography": "^0.5.12",
"@types/eslint": "^8.56.0",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html>
<html lang="en" class="prose dark:prose-invert bg-slate-200 dark:bg-slate-800">
<html lang="en" class="bg-slate-50 text-slate-900 dark:bg-slate-900 dark:text-slate-50">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.ico" />
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script>
<script lang="ts">
import '../app.css';
</script>

Expand Down
34 changes: 32 additions & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,2 +1,32 @@
<h1>Welcome to SvelteKit</h1>
<p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p>
<main class="container px-8 sm:mx-auto">
<h1 class="mt-40 text-4xl sm:mt-60 sm:text-6xl md:text-8xl">Raymond Wang</h1>
<h2 class="mt-4 text-2xl">
Software Engineer at
<a
class="hover:underline hover:underline-offset-4"
href="https://www.atlassian.com/"
target="_blank">Atlassian</a
>
</h2>
<ul class="mt-4 flex flex-row gap-x-4">
<li>
<a class="hover:underline hover:underline-offset-4" href="mailto:[email protected]" target="_blank"
>Email</a
>
</li>
<li>
<a
class="hover:underline hover:underline-offset-4"
href="https://github.com/raymondwang"
target="_blank">GitHub</a
>
</li>
<li>
<a
class="hover:underline hover:underline-offset-4"
href="https://www.linkedin.com/in/raymondruiwang"
target="_blank">LinkedIn</a
>
</li>
</ul>
</main>
15 changes: 0 additions & 15 deletions svelte.config.js

This file was deleted.

11 changes: 11 additions & 0 deletions svelte.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import adapter from '@sveltejs/adapter-static';
import type { Config } from '@sveltejs/kit';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';

const config: Config = {
kit: { adapter: adapter() },
// https://kit.svelte.dev/docs/integrations#preprocessors
preprocess: vitePreprocess(),
};

export default config;
8 changes: 0 additions & 8 deletions tailwind.config.js

This file was deleted.

11 changes: 11 additions & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import type { Config } from 'tailwindcss';

const config: Config = {
content: ['./src/**/*.{html,js,svelte,ts}'],
plugins: [],
theme: {
extend: {},
},
};

export default config;

0 comments on commit 8dc4cbc

Please sign in to comment.