Update Svelte and other dependencies
This commit is contained in:
parent
1e652d9818
commit
fc0d884cce
17
package.json
17
package.json
|
|
@ -12,20 +12,19 @@
|
||||||
"prepare": "husky"
|
"prepare": "husky"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sveltejs/vite-plugin-svelte": "^3.1.2",
|
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
||||||
"@tsconfig/svelte": "^4.0.1",
|
"@tailwindcss/vite": "^4.0.12",
|
||||||
"autoprefixer": "^10.4.14",
|
"@tsconfig/svelte": "^5.0.4",
|
||||||
"husky": "^9.0.11",
|
"husky": "^9.0.11",
|
||||||
"postcss": "^8.4.39",
|
"svelte": "^5.22.6",
|
||||||
"svelte": "^3.58.0",
|
"svelte-check": "^4.1.5",
|
||||||
"svelte-check": "^3.3.1",
|
"tailwindcss": "^4.0.12",
|
||||||
"tailwindcss": "^3.3.2",
|
|
||||||
"tslib": "^2.5.0",
|
"tslib": "^2.5.0",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.8.2",
|
||||||
"vite": "^6.0.2"
|
"vite": "^6.0.2"
|
||||||
},
|
},
|
||||||
"packageManager": "yarn@3.5.1",
|
"packageManager": "yarn@3.5.1",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tailwind-merge": "^2.5.5"
|
"tailwind-merge": "^3.0.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
export default {
|
|
||||||
plugins: {
|
|
||||||
tailwindcss: {},
|
|
||||||
autoprefixer: {},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
@ -1,3 +1 @@
|
||||||
@tailwind base;
|
@import "tailwindcss";
|
||||||
@tailwind components;
|
|
||||||
@tailwind utilities;
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import Header from "./components/Header.svelte";
|
import Header from './components/Header.svelte'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section class="container mx-auto px-4">
|
<section class="container mx-auto px-4">
|
||||||
|
|
@ -7,18 +7,22 @@
|
||||||
|
|
||||||
<div class="content-center lg:text-lg">
|
<div class="content-center lg:text-lg">
|
||||||
<table class="mx-auto sm:whitespace-nowrap">
|
<table class="mx-auto sm:whitespace-nowrap">
|
||||||
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="block sm:table-cell font-bold w-auto pr-3 lg:pr-5 text-left">Backend:</th>
|
<th class="block sm:table-cell font-bold w-auto pr-3 lg:pr-5 text-left">Backend:</th>
|
||||||
<td class="block pb-4 sm:pb-0 sm:table-cell text-left">Ruby, Ruby on Rails, Node.js, Sinatra</td>
|
<td class="block pb-4 sm:pb-0 sm:table-cell text-left">Ruby, Ruby on Rails, Node.js, Sinatra</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="block sm:table-cell font-bold w-auto pr-3 lg:pr-5 text-left">Frontend:</th>
|
<th class="block sm:table-cell font-bold w-auto pr-3 lg:pr-5 text-left">Frontend:</th>
|
||||||
<td class="block pb-4 sm:pb-0 sm:table-cell text-left">ES6, TypeScript, React, Redux, CSS/Sass, Webpack, Vite</td>
|
<td class="block pb-4 sm:pb-0 sm:table-cell text-left">ES6, TypeScript, React, Redux, CSS/Sass, Webpack,
|
||||||
|
Vite
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="block sm:table-cell font-bold w-auto pr-3 lg:pr-5 text-left">Data:</th>
|
<th class="block sm:table-cell font-bold w-auto pr-3 lg:pr-5 text-left">Data:</th>
|
||||||
<td class="block pb-4 sm:pb-0 sm:table-cell text-left">PostgreSQL, MySQL, Redis, Elasticsearch</td>
|
<td class="block pb-4 sm:pb-0 sm:table-cell text-left">PostgreSQL, MySQL, Redis, Elasticsearch</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
<script lang="ts">
|
||||||
|
let { children } = $props();
|
||||||
|
</script>
|
||||||
|
|
||||||
<h1 class="text-center text-white text-3xl font-bold mt-20 mb-10">
|
<h1 class="text-center text-white text-3xl font-bold mt-20 mb-10">
|
||||||
<slot />
|
{@render children?.()}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,17 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export let title: string;
|
type Props = {
|
||||||
export let imageUrl: string;
|
children?: any
|
||||||
export let imageAlt: string;
|
title: string
|
||||||
|
imageUrl: string
|
||||||
|
imageAlt: string
|
||||||
|
};
|
||||||
|
let { children, title, imageUrl, imageAlt }: Props = $props()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="px-6 py-1 pb-10 sm:pt-32 sm:pb-24 lg:px-8">
|
<div class="px-6 py-1 pb-10 sm:pt-32 sm:pb-24 lg:px-8">
|
||||||
<div class="mx-auto max-w-2xl text-center">
|
<div class="mx-auto max-w-2xl text-center">
|
||||||
<img class="mx-auto mb-6 w-32 h-32 lg:w-48 lg:h-48 rounded-full" src={imageUrl} alt={imageAlt} />
|
<img class="mx-auto mb-6 w-32 h-32 lg:w-48 lg:h-48 rounded-full" src={imageUrl} alt={imageAlt} />
|
||||||
<h2 class="text-4xl lg:text-6xl font-bold tracking-tight text-gray-100 sm:text-6x1">{title}</h2>
|
<h2 class="text-4xl lg:text-6xl font-bold tracking-tight text-gray-100 sm:text-6x1">{title}</h2>
|
||||||
<slot />
|
{@render children?.()}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,9 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import type { HTMLAnchorAttributes } from 'svelte/elements'
|
import type { HTMLAnchorAttributes } from 'svelte/elements'
|
||||||
|
type LinkProps = { children: any, href: string; target: HTMLAnchorAttributes['target']; title?: HTMLAnchorAttributes['title'] }
|
||||||
|
|
||||||
export let href: string
|
let { children, href, target, title }: LinkProps = $props()
|
||||||
export let target: HTMLAnchorAttributes['target']
|
|
||||||
export let title: HTMLAnchorAttributes['title'] = undefined
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<a class="text-cyan-200 hover:text-cyan-400 hover:border-b border-dotted" {href} {target} {title}><slot /></a>
|
<a class="text-cyan-200 hover:text-cyan-400 hover:border-b border-dotted" {href} {target} {title}>{@render children?.()}</a>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
|
import { mount } from 'svelte'
|
||||||
import './app.css'
|
import './app.css'
|
||||||
import App from './App.svelte'
|
import App from './App.svelte'
|
||||||
|
|
||||||
const app = new App({
|
const app = mount(App, {
|
||||||
target: document.getElementById('app'),
|
target: document.getElementById('app')!,
|
||||||
})
|
})
|
||||||
|
|
||||||
export default app
|
export default app
|
||||||
|
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
/** @type {import('tailwindcss').Config} */
|
|
||||||
export default {
|
|
||||||
content: [
|
|
||||||
'./index.html',
|
|
||||||
'./src/**/*.svelte'
|
|
||||||
],
|
|
||||||
theme: {
|
|
||||||
extend: {},
|
|
||||||
},
|
|
||||||
plugins: [],
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
||||||
|
import tailwindcss from '@tailwindcss/vite'
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [svelte()],
|
plugins: [svelte(), tailwindcss()],
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue