-
-
New
-
+
+
New
+
Added new route system, check it here
diff --git a/src/components/WhyMinima.vue b/src/components/WhyMinima.vue
index c5e9e4a..0a7ecbb 100644
--- a/src/components/WhyMinima.vue
+++ b/src/components/WhyMinima.vue
@@ -1,44 +1,105 @@
-
-
- Why Minima?
- Minima has all the tools you need to make the Backend but with a minimal feel.
-
-
-
-
-
Simple Setup
-
Made to be minimal yet easy to learn for begginers and easy to understand from other ecosytems like javascript and python
-
- Documentation
-
-
-
-
-
-
-
Minimal Routing
-
Easy to setup minimal routing made to scale, with multiple router instances at once which can be used in main instance!
-
- Documentation
-
-
-
-
-
-
+
+
+ Why Minima?
+
+ Minima has all the tools you need to make the Backend but with a minimal feel.
+
+
+
+
+
+
+
Simple Setup
+
+ Made to be minimal yet easy to learn for begginers and easy to understand from other
+ ecosytems like javascript and python
+
+
+ Documentation
+
+
+
+
+
+
Minimal Routing
+
+ Easy to setup minimal routing made to scale, with multiple router instances at once which
+ can be used in main instance!
+
+
+ Documentation
+
+
+
+
+
+
-
\ No newline at end of file
+ data() {
+ return {
+ setupRelatedCode: '',
+ routingRelatedCode: '',
+ };
+ },
+ created() {
+ this.getCode();
+ },
+ methods: {
+ async getCode() {
+ this.setupRelatedCode = parseMarkdownColors(
+`
+ package main
+
+ import "github.com/gominima/minima"
+
+ func main() {
+ app := minima.New()
+
+ app.Get("/"), func(res *minima.Response, req *minima.Request) {
+ res.OK().Send("Hello World")
+ })
+ app.Listen(":3000")
+ }
+ `.trim(), 'go');
+ this.routingRelatedCode = parseMarkdownColors(
+`
+ router := minima.NewRouter()
+ router.Get("/", func(res *minima.Response, req *minima.Request) {
+ res.OK().Send("Hello world!")
+ })
+
+ router.Get("/:id", func(res *minima.Response, req *minima.Request) {
+ res.OK().Send(req.GetParam("id"))
+ })
+
+ app.UseRouter(router())
+ `.trim(), 'go');
+ },
+ },
+});
+
diff --git a/src/env.d.ts b/src/env.d.ts
index a735ff2..b119c8b 100644
--- a/src/env.d.ts
+++ b/src/env.d.ts
@@ -6,3 +6,5 @@ declare module '*.vue' {
const component: DefineComponent<{}, {}, any>;
export default component;
}
+
+declare module 'theme-change'
\ No newline at end of file
diff --git a/src/index.css b/src/index.css
new file mode 100644
index 0000000..185ef2e
--- /dev/null
+++ b/src/index.css
@@ -0,0 +1,29 @@
+@tailwind base;
+@tailwind components;
+@tailwind utilities;
+
+@layer base {
+
+ .code-img {
+ width: 45rem;
+ }
+
+ .code-img1 {
+ width: 37rem;
+ }
+
+ /* CSS: CUSTOM SCROLLBAR */
+
+ ::-webkit-scrollbar {
+ width: 6px;
+ }
+ ::-webkit-scrollbar-track {
+ background: #191919;
+ }
+ ::-webkit-scrollbar-thumb {
+ background: #252525;
+ }
+ ::-webkit-scrollbar-thumb:hover {
+ background: #303030;
+ }
+}
diff --git a/src/main.ts b/src/main.ts
index a45229d..d6f62a5 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -1,6 +1,6 @@
import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
-import './assets/tailwind.css';
+import './index.css';
createApp(App).use(router).mount('#app');
diff --git a/src/pages/[...all].vue b/src/pages/[...all].vue
index 9abda6d..3521215 100644
--- a/src/pages/[...all].vue
+++ b/src/pages/[...all].vue
@@ -2,11 +2,11 @@
404
Oops! We couldn't find that page.
@@ -14,9 +14,9 @@
class="mt-5 sm:space-x-0 md:space-x-8 lg:space-x-8 sm:mt-8 sm:mx-24 sm:flex sm:justify-center lg:justify-start"
>
- Go back to home
+ Home