mirror of
https://github.com/liyunze-coding/RythonDev.git
synced 2026-09-22 07:44:26 +00:00
switched to npm
This commit is contained in:
parent
7267c82972
commit
6556347b7e
7 changed files with 6753 additions and 1034 deletions
|
|
@ -3,9 +3,11 @@ import { defineConfig } from "astro/config";
|
|||
import tailwind from "@astrojs/tailwind";
|
||||
import svelte from "@astrojs/svelte";
|
||||
|
||||
import mdx from "@astrojs/mdx";
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
integrations: [tailwind(), svelte()],
|
||||
integrations: [tailwind(), svelte(), mdx()],
|
||||
server: {
|
||||
port: 8008,
|
||||
hostname: "RythonDev",
|
||||
|
|
|
|||
6742
package-lock.json
generated
Normal file
6742
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -10,6 +10,7 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/mdx": "^4.3.0",
|
||||
"@astrojs/svelte": "7.0.4",
|
||||
"@astrojs/tailwind": "6.0.0",
|
||||
"astro": "5.3.0",
|
||||
|
|
|
|||
|
|
@ -1,17 +1,12 @@
|
|||
<script lang="ts">
|
||||
import { onMount } from "svelte";
|
||||
import Socials from "../elements/Socials.svelte";
|
||||
// import Socials from "../elements/Socials.svelte";
|
||||
|
||||
// Roles
|
||||
let roles: string[] = [
|
||||
"Developer",
|
||||
"Streamer",
|
||||
"Content creator",
|
||||
"Student",
|
||||
];
|
||||
let roles = $state(["Developer", "Streamer", "Content creator", "Student"]);
|
||||
let roleState: string = $state("");
|
||||
let role: string;
|
||||
let counter: number = 0;
|
||||
let counter: number = $state(0);
|
||||
let roleEmpty: boolean = true;
|
||||
const roleInterval: number = 50;
|
||||
const roleUpdateDelay: number = 2000; // delay after updating
|
||||
|
|
@ -164,7 +159,7 @@
|
|||
<b>data science</b>.
|
||||
</p>
|
||||
<div class="mt-5 flex flex-row items-center justify-center">
|
||||
<Socials />
|
||||
<!-- <Socials /> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,8 @@
|
|||
import { vitePreprocess } from "@astrojs/svelte";
|
||||
|
||||
export default {
|
||||
preprocess: vitePreprocess(),
|
||||
preprocess: vitePreprocess({script:true}),
|
||||
compilerOptions: {
|
||||
compatibility: {
|
||||
componentApi: 4,
|
||||
},
|
||||
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue