Skip to content

Commit

Permalink
replace tagline with typewriter
Browse files Browse the repository at this point in the history
  • Loading branch information
marcolarosa committed Jun 3, 2024
1 parent 1cc7e64 commit 428b9dd
Show file tree
Hide file tree
Showing 4 changed files with 205 additions and 6 deletions.
176 changes: 172 additions & 4 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"add": "^2.0.6",
"element-plus": "^2.7.3",
"lodash-es": "^4.17.21",
"medium-zoom": "^1.1.0"
"medium-zoom": "^1.1.0",
"typewriter-effect": "^2.21.0"
}
}
6 changes: 5 additions & 1 deletion src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ layout: home
<div>
<img src="/images/logos/describo-logo.webp" class="h-16 lg:h-32" />
</div>
<div class="text-xl lg:text-3xl text-slate-600">Analyse and describe your data</div>
<div class="text-xl lg:text-3xl text-slate-600"><TagLine /></div>
</div>
</div>
<div class="w-full md:w-1/2 flex flex-row items-center">
Expand Down Expand Up @@ -219,3 +219,7 @@ layout: home
</div>

<FooterComponent class="mt-6"/>

<script setup>
import TagLine from "./vue-components/TagLine.vue";
</script>
26 changes: 26 additions & 0 deletions src/vue-components/TagLine.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<template>
<div ref="typewriter"></div>
</template>

<script setup>
import { ref, onMounted } from "vue";
import Typewriter from "typewriter-effect/dist/core";
const typewriter = ref();
onMounted(() => {
new Typewriter(typewriter.value, {
strings: [
"Transform your data.",
"Discover the information.",
"Explore the narratives.",
"Describe the insights.",
"Extract the value.",
],
delay: 50,
deleteSpeed: "natural",
loop: true,
pauseFor: 1200,
autoStart: true,
});
});
</script>

0 comments on commit 428b9dd

Please sign in to comment.