Skip to content

Commit d95a41c

Browse files
committed
Copy Naples website and dataset replace with placeholders
0 parents  commit d95a41c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+9115
-0
lines changed

.babelrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"presets": ["poi"],
3+
"plugins": ["react-hot-loader/babel"]
4+
}

.eslintrc.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"extends": "eslint-config-synacor",
3+
"parser": "typescript-eslint-parser",
4+
"plugins": ["typescript"],
5+
"rules": {
6+
"indent": ["error", 4],
7+
"comma-dangle": 0,
8+
"react/prefer-stateless-function": 0,
9+
"no-undef": 0,
10+
"no-unused-vars": 0,
11+
"react/jsx-indent-props": 0,
12+
"compat/compat": 0
13+
}
14+
}

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.DS_Store
2+
node_modules/
3+
build/
4+
.vscode/last.sql
5+
yarn-error.log

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v10.4.1

.vscode/settings.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Place your settings in this file to overwrite default and user settings.
2+
{
3+
"prettier.useTabs": false,
4+
"prettier.singleQuote": true,
5+
"prettier.tabWidth": 4,
6+
"prettier.printWidth": 120,
7+
"prettier.trailingComma": "es5",
8+
"editor.formatOnSave": true
9+
}

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.PHONY: build
2+
3+
build:
4+
yarn build

assets/bg.jpg

482 KB
Loading

assets/logo.svg

+22
Loading

assets/socials/facebook.png

1.35 KB
Loading

assets/socials/instagram.png

1.97 KB
Loading

assets/socials/twitter.png

2.03 KB
Loading

assets/speakers/.gitkeep

Whitespace-only changes.

assets/sponsors/.gitkeep

Whitespace-only changes.

assets/wave.svg

+9
Loading

index.ejs

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<title>Python Pizza Hamburg</title>
8+
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=2" />
9+
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?v=2" />
10+
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v=2" />
11+
<link rel="manifest" href="/site.webmanifest" />
12+
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#ed4337" />
13+
<meta name="msapplication-TileColor" content="#ed4337" />
14+
<meta name="theme-color" content="#ed4337" />
15+
16+
<meta name="description" content="Python Pizza Hamburg is a micro conference" />
17+
18+
<meta name="twitter:card" value="summary_large_image" />
19+
<meta property="og:title" content="Python Pizza" />
20+
<meta property="og:type" content="website" />
21+
<meta property="og:url" content="https://hamburg.python.pizza/" />
22+
<meta property="og:image" content="https://hamburg.python.pizza/social-image.jpg?v=2" />
23+
<meta property="og:image:width" content="1640" />
24+
<meta property="og:image:height" content="624" />
25+
<meta property="og:description" content="Python Pizza Hamburg is a micro conference" />
26+
</head>
27+
28+
<body>
29+
<noscript>
30+
You need to enable JavaScript to run this app.
31+
</noscript>
32+
33+
<div id="app"></div>
34+
35+
<!-- Global site tag (gtag.js) - Google Analytics -->
36+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-123182070-2"></script>
37+
<script type="text/javascript">
38+
window.dataLayer = window.dataLayer || [];
39+
40+
function gtag() {
41+
dataLayer.push(arguments);
42+
}
43+
gtag('js', new Date());
44+
45+
gtag('config', 'UA-123182070-2');
46+
</script>
47+
</body>
48+
</html>

package.json

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "hamburg.python.pizza",
3+
"version": "2019",
4+
"main": "src/index.js",
5+
"license": "MIT",
6+
"scripts": {
7+
"dev": "./node_modules/.bin/poi develop",
8+
"build": "./node_modules/.bin/poi build"
9+
},
10+
"devDependencies": {
11+
"@poi/plugin-typescript": "10.2.0",
12+
"@types/react": "16.3.18",
13+
"@types/react-dom": "16.0.6",
14+
"eslint": "^4.5.0",
15+
"eslint-config-synacor": "^1.1.0",
16+
"if-env": "^1.0.0",
17+
"poi": "10.2.9",
18+
"react-hot-loader": "4.3.3"
19+
},
20+
"dependencies": {
21+
"@types/classnames": "^2.2.6",
22+
"@types/smoothscroll-polyfill": "0.3.0",
23+
"classnames": "^2.2.5",
24+
"eslint-plugin-typescript": "0.12.0",
25+
"postcss-custom-media": "6.0.0",
26+
"postcss-nested": "3.0.0",
27+
"prettier": "^1.6.0",
28+
"raw-loader": "0.5.1",
29+
"react": "16.4.1",
30+
"react-dom": "16.4.1",
31+
"react-svg-inline": "2.1.1",
32+
"smoothscroll-polyfill": "0.4.3",
33+
"tslint": "5.10.0",
34+
"typescript": "2.9.2",
35+
"typescript-eslint-parser": "16.0.0"
36+
}
37+
}

poi.config.js

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
const path = require('path');
2+
3+
const root = path.resolve(__dirname);
4+
5+
module.exports = {
6+
outDir: 'build/',
7+
plugins: [
8+
require('@poi/plugin-typescript')({
9+
vue: false,
10+
}),
11+
],
12+
configureWebpack(config, context) {
13+
config.resolve.extensions = [...config.resolve.extensions, '.tsx'];
14+
config.resolve.alias = {
15+
...config.resolve.alias,
16+
Assets: path.resolve(root, 'assets'),
17+
};
18+
for (const rule of config.module.rules) {
19+
if (rule.test.toString() !== /\.(svg)(\?.*)?$/.toString()) {
20+
continue;
21+
}
22+
23+
rule.use[0].loader = 'raw-loader';
24+
}
25+
return config;
26+
},
27+
};

postcss.config.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
plugins: {
3+
'postcss-nested': {},
4+
'postcss-custom-media': {
5+
extensions: {
6+
'--mobile': '(min-width: 480px)',
7+
'--tablet': '(min-width: 769px)',
8+
'--laptop': '(min-width: 1025px)',
9+
},
10+
appendExtensions: true,
11+
},
12+
},
13+
};

src/Components/App/index.tsx

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import * as React from 'react';
2+
3+
import * as smoothscroll from 'smoothscroll-polyfill';
4+
5+
import Home from '@/Components/Home';
6+
import Header from '@/Components/Header';
7+
import Footer from '@/Components/Footer';
8+
9+
import './reset.css';
10+
import './theme.css';
11+
import './typography.css';
12+
13+
smoothscroll.polyfill();
14+
15+
export default class App extends React.Component {
16+
componentWillMount() {
17+
if ('serviceWorker' in navigator) {
18+
navigator.serviceWorker.ready.then(registration => {
19+
registration.unregister();
20+
});
21+
}
22+
}
23+
24+
render() {
25+
return (
26+
<div>
27+
<Header />
28+
<Home />
29+
<Footer />
30+
</div>
31+
);
32+
}
33+
}

0 commit comments

Comments
 (0)