diff --git a/gca-admin-gurusoft-message-dashboard/src/App.vue b/gca-admin-gurusoft-message-dashboard/src/App.vue index d11d61a..228002d 100644 --- a/gca-admin-gurusoft-message-dashboard/src/App.vue +++ b/gca-admin-gurusoft-message-dashboard/src/App.vue @@ -1,9 +1,49 @@ + + - \ No newline at end of file + header .wrapper { + display: flex; + place-items: flex-start; + flex-wrap: wrap; + } +} + diff --git a/gca-admin-gurusoft-message-dashboard/src/components/ElementWrapper.Vue b/gca-admin-gurusoft-message-dashboard/src/components/ElementWrapper.Vue new file mode 100644 index 0000000..2abcc88 --- /dev/null +++ b/gca-admin-gurusoft-message-dashboard/src/components/ElementWrapper.Vue @@ -0,0 +1,18 @@ + + + + + + diff --git a/gca-admin-gurusoft-message-dashboard/src/components/MarkedsBanner.vue b/gca-admin-gurusoft-message-dashboard/src/components/MarkedsBanner.vue new file mode 100644 index 0000000..a5ff384 --- /dev/null +++ b/gca-admin-gurusoft-message-dashboard/src/components/MarkedsBanner.vue @@ -0,0 +1,76 @@ + + + + + diff --git a/gca-admin-gurusoft-message-dashboard/src/components/MarkedsBannerPage.vue b/gca-admin-gurusoft-message-dashboard/src/components/MarkedsBannerPage.vue new file mode 100644 index 0000000..d873f2b --- /dev/null +++ b/gca-admin-gurusoft-message-dashboard/src/components/MarkedsBannerPage.vue @@ -0,0 +1,22 @@ + + + diff --git a/gca-admin-gurusoft-message-dashboard/src/components/SystemBanner.vue b/gca-admin-gurusoft-message-dashboard/src/components/SystemBanner.vue new file mode 100644 index 0000000..a2cced4 --- /dev/null +++ b/gca-admin-gurusoft-message-dashboard/src/components/SystemBanner.vue @@ -0,0 +1,137 @@ + + + + + + diff --git a/gca-admin-gurusoft-message-dashboard/src/components/SystemBannerPage.vue b/gca-admin-gurusoft-message-dashboard/src/components/SystemBannerPage.vue new file mode 100644 index 0000000..ac56e9a --- /dev/null +++ b/gca-admin-gurusoft-message-dashboard/src/components/SystemBannerPage.vue @@ -0,0 +1,73 @@ + + + diff --git a/gca-admin-gurusoft-message-dashboard/src/mocks/MarkedsBanner.json b/gca-admin-gurusoft-message-dashboard/src/mocks/MarkedsBanner.json new file mode 100644 index 0000000..20dfb7d --- /dev/null +++ b/gca-admin-gurusoft-message-dashboard/src/mocks/MarkedsBanner.json @@ -0,0 +1,57 @@ +[ + { + "id": 4, + "createdBy": 123, + "created": "2025-06-25T10:27:34Z", + "updatedBy": 124, + "updated": "2025-06-25T10:27:34Z", + "title": "Sommersalg", + "url": "https://example.com/salg", + "image": "https://providavarmeshop.no/wp-content/uploads/2023/06/sommersalg-tekst-300x137.png", + "type": "PROMO" + }, + { + "id": 5, + "createdBy": 123, + "created": "2025-06-25T10:27:34Z", + "updatedBy": 124, + "updated": "2025-06-25T10:27:34Z", + "title": "Ny produktlansering", + "url": "https://example.com/nytt-produkt", + "image": "https://providavarmeshop.no/wp-content/uploads/2023/06/sommersalg-tekst-300x137.png", + "type": "PROMO" + }, + { + "id": 6, + "createdBy": 123, + "created": "2025-06-25T10:27:34Z", + "updatedBy": 124, + "updated": "2025-06-25T10:27:34Z", + "title": "Kundelojalitetsprogram", + "url": "https://example.com/kundelojalitet", + "image": "https://providavarmeshop.no/wp-content/uploads/2023/06/sommersalg-tekst-300x137.png", + "type": "PROMO" + }, + { + "id": 7, + "createdBy": 123, + "created": "2025-06-25T10:27:34Z", + "updatedBy": 124, + "updated": "2025-06-25T10:27:34Z", + "title": "Kundeservice tilgjengelig", + "url": "https://example.com/kundeservice", + "image": "https://providavarmeshop.no/wp-content/uploads/2023/06/sommersalg-tekst-300x137.png", + "type": "PROMO" + }, + { + "id": 8, + "createdBy": 123, + "created": "2025-06-25T10:27:34Z", + "updatedBy": 124, + "updated": "2025-06-25T10:27:34Z", + "title": "Vår nye nettbutikk er lansert!", + "url": "https://example.com/ny-nettbutikk", + "image": "https://providavarmeshop.no/wp-content/uploads/2023/06/sommersalg-tekst-300x137.png", + "type": "PROMO" + } +] \ No newline at end of file diff --git a/gca-admin-gurusoft-message-dashboard/src/mocks/mockdata.json b/gca-admin-gurusoft-message-dashboard/src/mocks/mockdata.json index e69de29..ed05ed0 100644 --- a/gca-admin-gurusoft-message-dashboard/src/mocks/mockdata.json +++ b/gca-admin-gurusoft-message-dashboard/src/mocks/mockdata.json @@ -0,0 +1,35 @@ +[ + { + "id": 1, + "createdBy": 123, + "created": "2025-06-25T10:27:34Z", + "updatedBy": 124, + "updated": "2025-06-25T10:27:34Z", + "title": "Velkommen til systemet", + "text": "Dette er en viktig melding fra systemet.", + "link": "https://example.com/info", + "type": "WARNING" + }, + { + "id": 2, + "createdBy": 123, + "created": "2025-06-25T10:27:34Z", + "updatedBy": 124, + "updated": "2025-06-25T10:27:34Z", + "title": "Systemvedlikehold", + "text": "Systemet vil være utilgjengelig fra 12:00 til 14:00.", + "link": "https://example.com/maintenance", + "type": "INFO" + }, + { + "id": 3, + "createdBy": 123, + "created": "2025-06-25T10:27:34Z", + "updatedBy": 124, + "updated": "2025-06-25T10:27:34Z", + "title": "Feil i systemet", + "text": "Det har oppstått en feil i systemet. Vennligst kontakt support.", + "link": null, + "type": "ERROR" + } +] \ No newline at end of file diff --git a/gca-admin-gurusoft-message-dashboard/src/router/index.js b/gca-admin-gurusoft-message-dashboard/src/router/index.js index 38501bd..fb78225 100644 --- a/gca-admin-gurusoft-message-dashboard/src/router/index.js +++ b/gca-admin-gurusoft-message-dashboard/src/router/index.js @@ -3,12 +3,36 @@ import SystemMessagesPage from '../components/SystemMessagesPage.vue'; import SystemMessages from '../components/SystemMesssages.vue'; import Dashboard from '../components/Dashboard.vue'; import SystemLinks from '../components/SystemLinks.vue' +import SystemBannerPage from '../components/SystemBannerPage.vue' +import SystemBanner from '../components/SystemBanner.vue' +import MarkedsBannerPage from '../components/MarkedsBannerPage.vue' +import MarkedsBanner from '../components/MarkedsBanner.vue' const routes = [ {path: '/systemmessage', name: 'SystemMessage', component: SystemMessages}, {path: '/systemmessagelist', name: 'SystemMessageList', component: SystemMessagesPage}, {path: '/systemlinks', name: 'SystemLinks', component: SystemLinks}, - {path: '/', name: 'Dashboard', component: Dashboard} + {path: '/', name: 'Dashboard', component: Dashboard}, + { + path: '/systembanner', + name: 'Home', + component: SystemBanner + }, + { + path: '/SystemBannerPage', + name: 'BannerPage', + component: SystemBannerPage + }, + { + path: '/markedsbanners', + name: 'MarkedsPage', + component: MarkedsBannerPage + }, + { + path: '/markedsbanner', + name: 'MarkedsStart', + component: MarkedsBanner + } ]; const router = createRouter({ diff --git a/gca-admin-gurusoft-message-dashboard/vite.config.js b/gca-admin-gurusoft-message-dashboard/vite.config.js index 4217010..0336b15 100644 --- a/gca-admin-gurusoft-message-dashboard/vite.config.js +++ b/gca-admin-gurusoft-message-dashboard/vite.config.js @@ -4,7 +4,6 @@ import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import vueDevTools from 'vite-plugin-vue-devtools' -// https://vite.dev/config/ export default defineConfig({ plugins: [ vue(), diff --git a/package-lock.json b/package-lock.json index 14ac494..12330fd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,4 @@ { - "name": "sommer2025", "lockfileVersion": 3, "requires": true, - "packages": {} } diff --git a/package.json b/package.json new file mode 100644 index 0000000..79d5249 --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "bootstrap": "^5.3.7" + } +}