diff --git a/package.json b/package.json index 847076a2..9c00e6f1 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "generate-preview-screenshot": "node ./generate-preview-image.cjs" }, "dependencies": { + "@chenfengyuan/vue-countdown": "^1.1.5", "@egjs/flicking-plugins": "^4.4.0", "@egjs/vue-flicking": "^4.10.0", "@nuxt/content": "^1.15.1", diff --git a/pages/f1-countdown.vue b/pages/f1-countdown.vue new file mode 100644 index 00000000..8995ac4d --- /dev/null +++ b/pages/f1-countdown.vue @@ -0,0 +1,28 @@ + + + diff --git a/store/index.js b/store/index.js index 23f3b1d1..f1ee824b 100644 --- a/store/index.js +++ b/store/index.js @@ -6,7 +6,7 @@ export const state = () => ({ routes.HOME, { title: 'General', - links: [routes.ABOUT_ME, routes.RESOURCES_OVERVIEW], + links: [routes.ABOUT_ME, routes.RESOURCES_OVERVIEW, routes.F1_COUNTDOWN], }, { title: 'Projects', diff --git a/util/routes.cjs b/util/routes.cjs index 49af75a4..191e2899 100644 --- a/util/routes.cjs +++ b/util/routes.cjs @@ -34,6 +34,10 @@ const routes = { to: '/minesweeper', name: 'Minesweeper', }, + F1_COUNTDOWN: { + to: '/f1-countdown', + name: 'F1 Countdown', + }, }; module.exports = { routes }; diff --git a/yarn.lock b/yarn.lock index 02cdb710..3e2ea371 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1043,6 +1043,11 @@ resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== +"@chenfengyuan/vue-countdown@^1.1.5": + version "1.1.5" + resolved "https://registry.yarnpkg.com/@chenfengyuan/vue-countdown/-/vue-countdown-1.1.5.tgz#33c1fe68bd28496cb70dda8eed6ecc874a6dc386" + integrity sha512-BB0taTfJzxsXFUPioREWLKpMDdHOoD8EiSW6lhB3yCdJh3I7jiNQzC8Hw5dPxoPNgZekeEPMQwsdPkjQPyxIeA== + "@cfcs/core@^0.0.4": version "0.0.4" resolved "https://registry.yarnpkg.com/@cfcs/core/-/core-0.0.4.tgz#5c1e89c2c170dfa9ba69450376ed0d894e19e2a1"