diff --git a/src/components/marquee/Marquee.astro b/src/components/marquee/Marquee.astro new file mode 100644 index 0000000..e78afde --- /dev/null +++ b/src/components/marquee/Marquee.astro @@ -0,0 +1,93 @@ +--- + +function placeholders() { + const word = "placeholder"; + let str: string; + const arr: string[] = []; + for (let i = 0; i < 10; i++) { + str = `${word}-${i}`; + arr.push(str); + } + return arr; +} + +const ph = placeholders(); +--- +
+ + + +
+
+
left
+
right
+
+ {ph.map(item =>
{item}
)} +
+
+ + diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 8ce9586..40f5b9e 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -1,5 +1,5 @@ --- -import Header from "@components/Header.astro"; +//import Header from "@components/Header.astro"; import Footer from "@src/components/Footer.astro"; import Head from "@config/Head.astro"; import PreTheme from "@config/PreTheme.astro"; @@ -18,7 +18,7 @@ const { title, description } = Astro.props; -
+