Transitioning to Vue. Installed environment and restored homepage scene overview.

This commit is contained in:
2019-06-03 05:31:38 +02:00
parent b8c2878fc3
commit b8aa81b3f1
37 changed files with 5261 additions and 413 deletions

11
assets/views/header.jsx Normal file
View File

@@ -0,0 +1,11 @@
'use strict';
const React = require('react');
const Header = () => (
<header className="header">
<h1>Porn Radar</h1>
</header>
);
module.exports = Header;

View File

@@ -3,6 +3,8 @@
const React = require('react');
const PropTypes = require('prop-types');
const Header = require('./header.jsx');
const Layout = ({ children, title }) => (
<html lang="en">
<head>
@@ -15,9 +17,7 @@ const Layout = ({ children, title }) => (
</head>
<body>
<header>
<h1>Porn Radar</h1>
</header>
<Header />
<div className="content">
{children}