diff options
author | 2023-04-19 21:38:59 +0200 | |
---|---|---|
committer | 2023-04-19 22:33:22 +0200 | |
commit | c45bce36f985a550d7bfad744099b601cb61e449 (patch) | |
tree | 2c5e186db857776a06879dce7529b5396de214b1 /src/pages | |
parent | df989e24b3937876f094301e33762677d604888a (diff) | |
download | it-tools-c45bce36f985a550d7bfad744099b601cb61e449.tar.gz it-tools-c45bce36f985a550d7bfad744099b601cb61e449.tar.zst it-tools-c45bce36f985a550d7bfad744099b601cb61e449.zip |
refactor(ui): getting ride of naive ui buttons
Diffstat (limited to 'src/pages')
-rw-r--r-- | src/pages/404.page.vue | 4 | ||||
-rw-r--r-- | src/pages/About.vue | 39 |
2 files changed, 12 insertions, 31 deletions
diff --git a/src/pages/404.page.vue b/src/pages/404.page.vue index 4ec1cb4..fb879aa 100644 --- a/src/pages/404.page.vue +++ b/src/pages/404.page.vue @@ -13,8 +13,6 @@ useHead({ title: 'Page not found - IT Tools' }); <n-text mt-4 block depth="3">Sorry, this page does not seem to exist</n-text> <n-text mb-8 block depth="3">Maybe the cache is doing tricky things, try force-refreshing?</n-text> - <router-link to="/" #="{ navigate, href }" custom> - <n-button tag="a" :href="href" secondary @click="navigate"> Back home </n-button> - </router-link> + <c-button to="/"> Back home </c-button> </div> </template> diff --git a/src/pages/About.vue b/src/pages/About.vue index 91d5d1b..6ed4d08 100644 --- a/src/pages/About.vue +++ b/src/pages/About.vue @@ -11,25 +11,21 @@ const { tracker } = useTracker(); <n-h1>About</n-h1> <n-p> This wonderful website, made with ❤ by - <n-button text tag="a" href="https://github.com/CorentinTh" target="_blank" rel="noopener" type="primary"> - Corentin Thomasset </n-button - >, aggregates useful tools for developer and people working in IT. If you find it useful, please fell free to - share it to people you think may find it useful too and don't forget to pin it in your shortcut bar ! + <c-link href="https://github.com/CorentinTh" target="_blank" rel="noopener"> Corentin Thomasset </c-link>, + aggregates useful tools for developer and people working in IT. If you find it useful, please fell free to share + it to people you think may find it useful too and don't forget to pin it in your shortcut bar ! </n-p> <n-p> IT Tools is open-source (under the MIT license) and free, and will always be, but it cost me money to host and renew the domain name, if you want to support my work, and encourage me to add more tools, please consider supporting by - <n-button - type="primary" - tag="a" - text + <c-link href="https://www.buymeacoffee.com/cthmsst" rel="noopener" target="_blank" @click="() => tracker.trackEvent({ eventName: 'Support button clicked' })" > - sponsoring me </n-button + sponsoring me </c-link >. </n-p> @@ -37,16 +33,9 @@ const { tracker } = useTracker(); <n-p> IT Tools is made in Vue JS (vue 3) with the the naive-ui component library and is hosted and continuously deployed by Vercel. Third party open-source libraries are used in some tools, you may find the complete list in the - <n-button - type="primary" - tag="a" - text - href="https://github.com/CorentinTh/it-tools/blob/main/package.json" - rel="noopener" - target="_blank" - > + <c-link href="https://github.com/CorentinTh/it-tools/blob/main/package.json" rel="noopener" target="_blank"> package.json - </n-button> + </c-link> file of the repository. </n-p> @@ -54,30 +43,24 @@ const { tracker } = useTracker(); <n-p> If you need a tool that is currently not present here, and you think can be relevant, you are welcome to submit a feature request in the - <n-button - type="primary" - tag="a" - text + <c-link href="https://github.com/CorentinTh/it-tools/issues/new?assignees=CorentinTh&labels=enhancement&template=feature_request.md&title=%5BFEAT%5D%20My%20feature" rel="noopener" target="_blank" > issues section - </n-button> + </c-link> in the GitHub repository. </n-p> <n-p> And if you found a bug, or something broken that doesn't work as expected, please fill a bug report in the - <n-button - type="primary" - tag="a" - text + <c-link href="https://github.com/CorentinTh/it-tools/issues/new?assignees=CorentinTh&labels=bug&template=bug_report.md&title=%5BBUG%5D%20My%20bug" rel="noopener" target="_blank" > issues section - </n-button> + </c-link> in the GitHub repository. </n-p> </div> |