From 6fa3d22b68de869ac50b3dd72732bd926579989d Mon Sep 17 00:00:00 2001 From: Sitt Guruvanich Date: Sun, 11 Aug 2024 14:09:54 +0700 Subject: [PATCH] feat: modularize Hero section into a Hero.vue component --- src/App.vue | 48 ++------------------------------- src/components/Hero.vue | 51 ++++++++++++++++++++++++++++++++++++ src/components/HeroCards.vue | 2 +- src/components/index.js | 1 + 4 files changed, 55 insertions(+), 47 deletions(-) create mode 100644 src/components/Hero.vue diff --git a/src/App.vue b/src/App.vue index b1c6fdc..bfc4074 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,54 +1,10 @@ diff --git a/src/components/Hero.vue b/src/components/Hero.vue new file mode 100644 index 0000000..934553d --- /dev/null +++ b/src/components/Hero.vue @@ -0,0 +1,51 @@ + + + diff --git a/src/components/HeroCards.vue b/src/components/HeroCards.vue index 9a5ef4a..d553867 100644 --- a/src/components/HeroCards.vue +++ b/src/components/HeroCards.vue @@ -90,7 +90,7 @@ let gitHubTayanPage = () => { JavaScript Statechain - Alpha + Alpha

diff --git a/src/components/index.js b/src/components/index.js index 2d3bb43..f5b8740 100644 --- a/src/components/index.js +++ b/src/components/index.js @@ -1,5 +1,6 @@ /* ~~/src/components/index.js */ +export { default as Hero } from './Hero.vue' export { default as HeroCards } from './HeroCards.vue' export { default as Navbar } from './Navbar.vue' export { default as Sponsors } from './Sponsors.vue'