diff --git a/package.json b/package.json index f6c459a..4ce1f77 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,8 @@ "@fortawesome/fontawesome-free-brands": "^5.0.0", "@fortawesome/fontawesome-free-regular": "^5.0.0", "@fortawesome/fontawesome-free-solid": "^5.0.0", + "@fortawesome/fontawesome-svg-core": "^6.7.2", + "@fortawesome/free-solid-svg-icons": "^6.7.2", "@fortawesome/vue-fontawesome": "^0.0.21", "@sentry/browser": "^5.4.0", "@sentry/integrations": "^5.4.1", diff --git a/resources/assets/js/app.js b/resources/assets/js/app.js index a094891..84a0c21 100644 --- a/resources/assets/js/app.js +++ b/resources/assets/js/app.js @@ -20,6 +20,12 @@ import * as Integrations from '@sentry/integrations' import '~/plugins' import '~/components' +import { library } from '@fortawesome/fontawesome-svg-core' +import { faPencil, faPen, faSpinner, faTrash, faXmark } from '@fortawesome/free-solid-svg-icons' +import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome' + +library.add(faPencil, faSpinner, faPen, faTrash, faXmark) + Sentry.init({ dsn: window.config.sentry_dsn, integrations: [new Integrations.Vue({ Vue, attachProps: true })] @@ -28,6 +34,7 @@ Sentry.init({ Vue.use(BootstrapVue) Vue.component('v-select', vSelect) Vue.component('v-gravatar', Gravatar) +Vue.component('font-awesome-icon', FontAwesomeIcon) Vue.use(VueNoty, { theme: 'sunset' }) diff --git a/resources/assets/js/pages/new-welcome.vue b/resources/assets/js/pages/new-welcome.vue new file mode 100644 index 0000000..82fbfcc --- /dev/null +++ b/resources/assets/js/pages/new-welcome.vue @@ -0,0 +1,347 @@ + + + + diff --git a/resources/assets/js/router/routes.js b/resources/assets/js/router/routes.js index c93830e..dd2ee97 100644 --- a/resources/assets/js/router/routes.js +++ b/resources/assets/js/router/routes.js @@ -48,6 +48,11 @@ export default [ name: 'home', component: require('~/pages/home').default }, + { + path: '/new-welcome', + name: 'new-welcome', + component: require('~/pages/new-welcome').default + }, { path: '/user-agreement', name: 'user-agreement', diff --git a/resources/lang/en.json b/resources/lang/en.json index d04f0db..7fd6a72 100644 --- a/resources/lang/en.json +++ b/resources/lang/en.json @@ -375,6 +375,52 @@ "soc_already_added": "This user has already been assigned this society" } }, + "new_welcome": { + "title_1": "Welcome to", + "red_title": "IFRC", + "title_2": "Safety", + "title_3": "Message Database", + "text_header": "Access and share Red Cross Red Crescent safety messages across your platforms.", + "text_header_2": "Follow the #-step guide below..", + "bottom_subtitle": "Contact IFRC", + "bottom_text": "Email the IFRC team if you have questions: im@ifrc.org", + "bottom_btn": "Contact IFRC", + "slider_1": { + "btn": "Create an API key", + "step_1": { + "header": "Step 1: Create an app", + "text": "Create an API key to use the API in the database. Tell us about what you're building." + }, + "step_2": { + "header": "Step 2: Receive an API key", + "text": "When you have create an API key, it will be automatically generated.", + "text_2": "Important: Store your API key as securely as possible. Avoid sharing or otherwise exposing your API key within your own application." + }, + "step_3": { + "header": "Step 3: Make a request", + "text": "The database API uses HTTP(S) and provides RESTful endpoints to obtain published data. Each request must be authenticated using the API key created in the previous step. For more information on all API endpoints, see the API documentation" + }, + "step_4": { + "header": "Step 4: Share the messages", + "text": "Share the Red Cross Red Crescent safety messages with the public when there is a hazard threat. You can contact the IFRC team if you have any feedback on the messages: im@ifrc.org" + } + }, + "slider_2": { + "btn": "WhatNow Messages", + "step_1": { + "header": "Step 1: View the messages", + "text": "Visit the message database to view the available Red Cross Red Crescent National Society messages." + }, + "step_2": { + "header": "Step 2: Select the message set", + "text": "Select the National Society you want to view. Then choose a hazard type from the available list." + }, + "step_3": { + "header": "Step 3: Share the messages", + "text": "Look for the option to download the messages. You can share the set of messages as an image or as a PDF. Download and review to ensure you are sharing the right messages." + } + } + }, "content": { "content": "Content", "audit_log": {