Skip to content

Commit

Permalink
Merge pull request #51 from fastsurvey/implement-landing-page
Browse files Browse the repository at this point in the history
Release 0.3 Sprint
  • Loading branch information
dostuffthatmatters authored Sep 13, 2021
2 parents 588b4ab + d20d9d6 commit a600b43
Show file tree
Hide file tree
Showing 89 changed files with 3,545 additions and 11,497 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.idea
*.out.css
scripts
dist

# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

Expand Down Expand Up @@ -593,4 +594,4 @@ $RECYCLE.BIN/
# Windows shortcuts
*.lnk

# End of https://www.gitignore.io/api/git,node,react,linux,macos,flask,python,pycharm,windows,intellij,webstorm
# End of https://www.gitignore.io/api/git,node,react,linux,macos,flask,python,pycharm,windows,intellij,webstorm
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ COPY yarn.lock yarn.lock
RUN yarn install --production=true

COPY server.js server.js
COPY build build
COPY dist dist

EXPOSE 8080
CMD [ "node", "server.js" ]
44 changes: 0 additions & 44 deletions README.md

This file was deleted.

22 changes: 0 additions & 22 deletions app.js

This file was deleted.

7 changes: 0 additions & 7 deletions app.yaml

This file was deleted.

1 change: 0 additions & 1 deletion icon-information.svg

This file was deleted.

27 changes: 27 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link
rel="icon"
type="image/svg+xml"
href="/src/assets/branding/favicon.svg"
/>
<link
rel="icon"
type="image/png"
href="/src/assets/branding/favicon-512.png"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>FastSurvey</title>
<meta name="og:title" content="FastSurvey" />
<meta
name="og:description"
content="Never assume anymore - transparent, fair and usable online surveys"
/>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
72 changes: 22 additions & 50 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,61 +6,33 @@
"email": "moritz@dostuffthatmatters.dev",
"url": "https://dostuffthatmatters.dev/"
},
"scripts": {
"develop": "vite --host",
"build": "tsc && vite build",
"serve": "vite preview"
},
"dependencies": {
"axios": "^0.19.2",
"axios": "^0.21.1",
"express": "^4.17.1",
"lodash": "^4.17.21",
"node-sass": "^4.14.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-redux": "^7.2.0",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"react-redux": "^7.2.4",
"react-router-dom": "^5.2.0",
"react-scripts": "3.4.1",
"redux": "^4.0.5"
},
"scripts": {
"develop": "react-scripts start",
"develop:tailwind": "NODE_ENV=development postcss src/styles/tailwind.css -o src/styles/tailwind.out.css -w",
"build": "react-scripts build",
"build:tailwind": "NODE_ENV=production postcss src/styles/tailwind.css -o src/styles/tailwind.out.css",
"serve": "node app.js",
"lint": "tslint 'src/**/*.{ts,tsx,js}'",
"test": "react-scripts test"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
"redux": "^4.1.1",
"typeface-quicksand": "^1.1.13"
},
"devDependencies": {
"@tailwindcss/jit": "^0.1.18",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"@types/jest": "^24.0.0",
"@types/lodash": "^4.14.168",
"@types/node": "^12.0.0",
"@types/react": "^16.9.0",
"@types/react-dom": "^16.9.0",
"@types/react-redux": "^7.1.9",
"@types/react-router-dom": "^5.1.5",
"@types/redux": "^3.6.0",
"autoprefixer": "^10.2.5",
"postcss": "^8.2.13",
"postcss-cli": "^8.3.1",
"tailwindcss": "^2.1.2",
"ts-jest": "^26.3.0",
"tslint": "^6.1.2",
"typescript": "^3.9.5"
"@types/jest": "^26.0.23",
"@types/lodash": "^4.14.170",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@types/react-router-dom": "^5.1.7",
"@vitejs/plugin-react-refresh": "^1.3.1",
"autoprefixer": "^10.2.6",
"jest": "^27.0.6",
"tailwindcss": "^2.2.4",
"typescript": "^4.3.2",
"vite": "^2.3.8"
}
}
7 changes: 5 additions & 2 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
module.exports = {
plugins: [require('autoprefixer'), require('@tailwindcss/jit')],
};
plugins: [
require('tailwindcss'),
require('autoprefixer'),
]
};
Binary file removed public/favicon_512.ico
Binary file not shown.
27 changes: 0 additions & 27 deletions public/index.html

This file was deleted.

45 changes: 0 additions & 45 deletions public/manifest.json

This file was deleted.

3 changes: 0 additions & 3 deletions public/robots.txt

This file was deleted.

Binary file removed public/rocket_1024.png
Binary file not shown.
Binary file removed public/rocket_192.png
Binary file not shown.
Binary file removed public/rocket_256.png
Binary file not shown.
Binary file removed public/rocket_384.png
Binary file not shown.
Binary file removed public/rocket_512.png
Binary file not shown.
Binary file removed public/rocket_768.png
Binary file not shown.
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ const app = express();
app.disable('x-powered-by');

// Serve the static files from the React app
app.use(express.static(path.join(__dirname + '/build')));
app.use(express.static(path.join(__dirname + '/dist')));

// Handles any requests that don't match the ones above
app.get('*', (req, res) => {
res.sendFile(path.join(__dirname + '/build/index.html'));
res.sendFile(path.join(__dirname + '/dist/index.html'));
});

// Start the server
Expand Down
Binary file added src/assets/branding/favicon-1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/branding/favicon-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a600b43

Please sign in to comment.