mirror of
https://github.com/liyunze-coding/RythonDev.git
synced 2026-09-22 15:53:57 +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 tailwind from "@astrojs/tailwind";
|
||||||
import svelte from "@astrojs/svelte";
|
import svelte from "@astrojs/svelte";
|
||||||
|
|
||||||
|
import mdx from "@astrojs/mdx";
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
integrations: [tailwind(), svelte()],
|
integrations: [tailwind(), svelte(), mdx()],
|
||||||
server: {
|
server: {
|
||||||
port: 8008,
|
port: 8008,
|
||||||
hostname: "RythonDev",
|
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"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@astrojs/mdx": "^4.3.0",
|
||||||
"@astrojs/svelte": "7.0.4",
|
"@astrojs/svelte": "7.0.4",
|
||||||
"@astrojs/tailwind": "6.0.0",
|
"@astrojs/tailwind": "6.0.0",
|
||||||
"astro": "5.3.0",
|
"astro": "5.3.0",
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,12 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { onMount } from "svelte";
|
import { onMount } from "svelte";
|
||||||
import Socials from "../elements/Socials.svelte";
|
// import Socials from "../elements/Socials.svelte";
|
||||||
|
|
||||||
// Roles
|
// Roles
|
||||||
let roles: string[] = [
|
let roles = $state(["Developer", "Streamer", "Content creator", "Student"]);
|
||||||
"Developer",
|
|
||||||
"Streamer",
|
|
||||||
"Content creator",
|
|
||||||
"Student",
|
|
||||||
];
|
|
||||||
let roleState: string = $state("");
|
let roleState: string = $state("");
|
||||||
let role: string;
|
let role: string;
|
||||||
let counter: number = 0;
|
let counter: number = $state(0);
|
||||||
let roleEmpty: boolean = true;
|
let roleEmpty: boolean = true;
|
||||||
const roleInterval: number = 50;
|
const roleInterval: number = 50;
|
||||||
const roleUpdateDelay: number = 2000; // delay after updating
|
const roleUpdateDelay: number = 2000; // delay after updating
|
||||||
|
|
@ -164,7 +159,7 @@
|
||||||
<b>data science</b>.
|
<b>data science</b>.
|
||||||
</p>
|
</p>
|
||||||
<div class="mt-5 flex flex-row items-center justify-center">
|
<div class="mt-5 flex flex-row items-center justify-center">
|
||||||
<Socials />
|
<!-- <Socials /> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,8 @@
|
||||||
import { vitePreprocess } from "@astrojs/svelte";
|
import { vitePreprocess } from "@astrojs/svelte";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
preprocess: vitePreprocess(),
|
preprocess: vitePreprocess({script:true}),
|
||||||
compilerOptions: {
|
compilerOptions: {
|
||||||
compatibility: {
|
|
||||||
componentApi: 4,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue