diff --git a/.vscode/settings.json b/.vscode/settings.json index 8f3288b..849ad83 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -19,6 +19,7 @@ "cSpell.words": [ "Initialised", "Uploader", + "describedby", "initialise", "redwoodjs" ] diff --git a/web/config/webpack.config.js b/web/config/webpack.config.js index 10c2846..d78b1f3 100644 --- a/web/config/webpack.config.js +++ b/web/config/webpack.config.js @@ -1,5 +1,12 @@ const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin') -module.exports = { - plugins: [new MonacoWebpackPlugin()], +module.exports = (config, { env }) => { + config.plugins.forEach((plugin) => { + if (plugin.constructor.name === 'HtmlWebpackPlugin') { + plugin.options.favicon = './src/favicon.svg' + } + }) + config.plugins.push(new MonacoWebpackPlugin()) + + return config } diff --git a/web/package.json b/web/package.json index 502c03d..062e332 100644 --- a/web/package.json +++ b/web/package.json @@ -39,6 +39,7 @@ }, "devDependencies": { "autoprefixer": "9.8.6", + "html-webpack-plugin": "^4.5.0", "postcss-loader": "4.0.2", "tailwindcss": "^1.9.1" } diff --git a/web/public/favi2.jpg b/web/public/favi2.jpg deleted file mode 100644 index 552b530..0000000 Binary files a/web/public/favi2.jpg and /dev/null differ diff --git a/web/public/favicon.png b/web/public/favicon.png deleted file mode 100644 index f0cdd00..0000000 Binary files a/web/public/favicon.png and /dev/null differ diff --git a/web/src/Routes.js b/web/src/Routes.js index 8a6d6e6..d139aae 100644 --- a/web/src/Routes.js +++ b/web/src/Routes.js @@ -6,10 +6,30 @@ // // 'src/pages/HomePage/HomePage.js' -> HomePage // 'src/pages/Admin/BooksPage/BooksPage.js' -> AdminBooksPage - +import { useEffect } from 'react' import { Router, Route, Private } from '@redwoodjs/router' +const welcomeMessage = ` +%cHey, 👋. +%c______________________________________________________________________________ + +%cCadHub is in active development - Want to lend a hand? +%chttps://github.com/Irev-Dev/cadhub + +` + const Routes = () => { + useEffect( + () => + console.log( + welcomeMessage, + 'font-family: Georgia, serif; font-weight:bold; line-height: 2rem; font-size: 32px; color: #3c366b; padding-left: 5rem;', + 'font-size: 10px; color:#D3D3D3; padding-left: 5rem;', + 'font-family: "Ropa Sans",Georgia, serif; font-size: 16px;line-height:3rem; padding-left: 5rem;', + 'font-family: Helvetica Neue, sans-serif; font-size: 16px; line-height: 1.5rem; color:#gray;padding-left: 5rem' + ), + [] + ) return ( diff --git a/web/src/components/Svg/Svg.js b/web/src/components/Svg/Svg.js index 2bc5049..5d50779 100644 --- a/web/src/components/Svg/Svg.js +++ b/web/src/components/Svg/Svg.js @@ -45,6 +45,105 @@ const Svg = ({ name, className: className2, strokeWidth = 2 }) => { /> ), + favicon: ( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ), fork: ( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + CahHub + + + diff --git a/web/src/index.html b/web/src/index.html index bc8eca9..0b64177 100644 --- a/web/src/index.html +++ b/web/src/index.html @@ -8,7 +8,6 @@ <%= htmlWebpackPlugin.options.title %> -