- Hello App!
-
- Current route path: {{ $route.fullPath }}
-
-
-
+ Hello App!
+
+ Current route path: {{ $route.fullPath }}
+
+
\ No newline at end of file
diff --git a/src/api.js b/src/api.js
new file mode 100644
index 0000000..314cac3
--- /dev/null
+++ b/src/api.js
@@ -0,0 +1,11 @@
+import axios from 'axios';
+
+const api = axios.create({
+ baseURL: 'http://127.0.0.1:8000/api',
+ timeout: 2500,
+});
+
+export const createUser = async (userData) => {
+ const response = await api.post('/users', userData);
+ return response.data
+}
\ No newline at end of file
diff --git a/src/main.js b/src/main.js
index f228cab..9cb9bb0 100644
--- a/src/main.js
+++ b/src/main.js
@@ -1,11 +1,14 @@
import { createApp } from 'vue'
import './style.css'
-import App from './App.vue'
+import App from './app.vue'
import PrimeVue from 'primevue/config';
-import Aura from '@primevue/themes/aura';
-
+import Aura from '@primevue/themes/material';
import router from "./router"
+import 'primeicons/primeicons.css'
+import ToastService from 'primevue/toastservice';
+
+
const app = createApp(App);
app.use(PrimeVue,{
@@ -13,5 +16,6 @@ app.use(PrimeVue,{
preset:Aura
}
});
+app.use(ToastService);
app.use(router);
app.mount("#app");
\ No newline at end of file
diff --git a/src/style.css b/src/style.css
index db627cf..faf8a7f 100644
--- a/src/style.css
+++ b/src/style.css
@@ -5,7 +5,7 @@
color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
- background-color: #ffffff;
+ background-color: #1d1d1d;
font-synthesis: none;
text-rendering: optimizeLegibility;
@@ -25,6 +25,7 @@ a:hover {
h1 {
font-size: 3.2em;
line-height: 1.1;
+ color:rgb(255, 255, 255)
}
#app {
diff --git a/src/views/Home.vue b/src/views/Home.vue
index 9263b9b..03afbbe 100644
--- a/src/views/Home.vue
+++ b/src/views/Home.vue
@@ -3,6 +3,6 @@