diff --git a/.drone.yml b/.drone.yml index 54113b5..9ec2df5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -25,6 +25,7 @@ steps: sources: - ./public - ./docker-compose.prod.yml + - ./nginx.conf commands: - docker-compose -f docker-compose.prod.yml down - docker-compose -f docker-compose.prod.yml up -d diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 8175550..4ff0c55 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -8,6 +8,7 @@ services: - 80 volumes: - ./public:/usr/share/nginx/html:ro + - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro networks: - traefik labels: diff --git a/docker-compose.yml b/docker-compose.yml index 7469a30..dc2a2ab 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,8 +3,8 @@ version: '3' services: home: image: nginx:alpine - restart: always ports: - - 80 + - 80:80 volumes: - - ./public:/usr/share/nginx/html:ro \ No newline at end of file + - ./public:/usr/share/nginx/html:ro + - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro \ No newline at end of file diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..ac04c58 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,9 @@ +server { + listen 80; + server_name _; + + location / { + root /usr/share/nginx/html; + try_files $uri /index.html; + } +} \ No newline at end of file diff --git a/package.json b/package.json index 76b8ea9..342518a 100755 --- a/package.json +++ b/package.json @@ -2,18 +2,21 @@ "private": true, "scripts": { "build:dev": "webpack -d", + "build:dev:watch": "webpack -d -w", "build:prod": "webpack -p", "dev": "webpack-dev-server -d" }, "dependencies": { "animejs": "^3.0.1", "react": "^16.8", - "react-dom": "^16.8" + "react-dom": "^16.8", + "react-router-dom": "^5.0.0" }, "devDependencies": { "@types/animejs": "^2.0.1", "@types/react": "^16.8", "@types/react-dom": "^16.8", + "@types/react-router-dom": "^4.3.1", "awesome-typescript-loader": "^5", "css-loader": "^2", "file-loader": "^3", diff --git a/src/App.tsx b/src/App.tsx index 67a0869..9824c11 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,35 +1,23 @@ import React from 'react' +import { BrowserRouter as Router, Route, Switch } from 'react-router-dom' -import AnimatedBackground from './Components/AnimatedBackground' -import Cursor from './Components/Cursor' -import Parallax from './Components/Parallax' -import Letters from './Screens/Letters' +import Suspend from './Components/Suspend' + +const Home = React.lazy(() => import('./Screens/Home')) +const Privacy = React.lazy(() => import('./Screens/Privacy')) +const TOS = React.lazy(() => import('./Screens/TermsOfService')) export const Duration = 4000 const App: React.FC = () => { - return
Your privacy is important to us. It is Nicco IO's policy to respect your privacy regarding any + information we may collect from you across our website, http://nicco.io, + and other sites we own and operate.
+We only ask for personal information when we truly need it to provide a service to you. We collect it by + fair and lawful means, with your knowledge and consent. We also let you know why we’re collecting it and + how it will be used.
+We only retain collected information for as long as necessary to provide you with your requested service. + What data we store, we’ll protect within commercially acceptable means to prevent loss and theft, as + well as unauthorised access, disclosure, copying, use or modification.
+We don’t share any personally identifying information publicly or with third-parties, except when + required to by law.
+Our website may link to external sites that are not operated by us. Please be aware that we have no + control over the content and practices of these sites, and cannot accept responsibility or liability for + their respective privacy policies.
+You are free to refuse our request for your personal information, with the understanding that we may be + unable to provide you with some of your desired services.
+Your continued use of our website will be regarded as acceptance of our practices around privacy and + personal information. If you have any questions about how we handle user data and personal information, + feel free to contact us.
+This policy is effective as of 1 January 2019.
+By accessing the website at http://nicco.io, you are agreeing to be bound + by these terms of service, all applicable laws and regulations, and agree that you are responsible for + compliance with any applicable local laws. If you do not agree with any of these terms, you are + prohibited from using or accessing this site. The materials contained in this website are protected by + applicable copyright and trademark law.
+In no event shall Nicco IO or its suppliers be liable for any damages (including, without limitation, + damages for loss of data or profit, or due to business interruption) arising out of the use or inability + to use the materials on Nicco IO's website, even if Nicco IO or a Nicco IO authorized representative has + been notified orally or in writing of the possibility of such damage. Because some jurisdictions do not + allow limitations on implied warranties, or limitations of liability for consequential or incidental + damages, these limitations may not apply to you.
+The materials appearing on Nicco IO's website could include technical, typographical, or photographic + errors. Nicco IO does not warrant that any of the materials on its website are accurate, complete or + current. Nicco IO may make changes to the materials contained on its website at any time without notice. + However Nicco IO does not make any commitment to update the materials.
+Nicco IO has not reviewed all of the sites linked to its website and is not responsible for the contents + of any such linked site. The inclusion of any link does not imply endorsement by Nicco IO of the site. + Use of any such linked website is at the user's own risk.
+Nicco IO may revise these terms of service for its website at any time without notice. By using this + website you are agreeing to be bound by the then current version of these terms of service.
+These terms and conditions are governed by and construed in accordance with the laws of Germany and you + irrevocably submit to the exclusive jurisdiction of the courts in that State or location.
+