It now builds again
This commit is contained in:
parent
7d2725686b
commit
04f7b54c1a
27 changed files with 15 additions and 11 deletions
0
.babelrc
Normal file → Executable file
0
.babelrc
Normal file → Executable file
4
index.html
Normal file → Executable file
4
index.html
Normal file → Executable file
|
|
@ -1,5 +1,5 @@
|
||||||
<html>
|
<html>
|
||||||
<body style="margin : 0">
|
<body>
|
||||||
<script src="./src/index.jsx"></script>
|
<script type='module' src="./src/index.jsx"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
12
package.json
Normal file → Executable file
12
package.json
Normal file → Executable file
|
|
@ -2,25 +2,29 @@
|
||||||
"name": "portfolio-site",
|
"name": "portfolio-site",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "Portfolio Site",
|
"description": "Portfolio Site",
|
||||||
"main": "src/index.jsx",
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "rm -v dist/* && node postbuild.js && parcel index.html",
|
"start": "rm -v dist/* && node postbuild.js && parcel index.html",
|
||||||
"build": "rm -rv dist && parcel build index.html && exec node postbuild.js"
|
"build": "rm -rv dist && parcel build index.html && exec node postbuild.js"
|
||||||
},
|
},
|
||||||
|
"browserslist": [
|
||||||
|
"defaults",
|
||||||
|
"not IE 11",
|
||||||
|
"maintained node versions"
|
||||||
|
],
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "BSD-2-Clause",
|
"license": "BSD-2-Clause",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.12.3",
|
"@babel/core": "^7.12.3",
|
||||||
"@babel/plugin-transform-react-jsx": "^7.12.5",
|
"@babel/plugin-transform-react-jsx": "^7.12.5",
|
||||||
"cssnano": "^4.1.10",
|
"cssnano": "^5.1.0",
|
||||||
"parcel-bundler": "^1.12.4",
|
"parcel": "^2.0.0",
|
||||||
"typescript": "^4.0.5"
|
"typescript": "^4.0.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@material-ui/core": "^4.11.0",
|
"@material-ui/core": "^4.11.0",
|
||||||
"@types/react": "^16.9.56",
|
"@types/react": "^16.9.56",
|
||||||
"fontsource-roboto": "^3.0.3",
|
"fontsource-roboto": "^3.0.3",
|
||||||
"hls.js": "^0.14.16",
|
"hls.js": "^1.1.5",
|
||||||
"preact": "^10.5.5",
|
"preact": "^10.5.5",
|
||||||
"preact-async-route": "^2.2.1",
|
"preact-async-route": "^2.2.1",
|
||||||
"preact-router": "^3.2.1",
|
"preact-router": "^3.2.1",
|
||||||
|
|
|
||||||
0
postbuild.js
Normal file → Executable file
0
postbuild.js
Normal file → Executable file
0
src/Contact.jsx
Normal file → Executable file
0
src/Contact.jsx
Normal file → Executable file
0
src/GameProjects.jsx
Normal file → Executable file
0
src/GameProjects.jsx
Normal file → Executable file
2
src/Greeting.jsx
Normal file → Executable file
2
src/Greeting.jsx
Normal file → Executable file
|
|
@ -7,7 +7,7 @@ import {
|
||||||
Typography,
|
Typography,
|
||||||
Button,
|
Button,
|
||||||
} from "@material-ui/core";
|
} from "@material-ui/core";
|
||||||
import CV from "../static/cv.pdf";
|
const CV = new URL("../static/cv.pdf", import.meta.url);
|
||||||
|
|
||||||
import VideoPlayer from "./VideoPlayer.jsx";
|
import VideoPlayer from "./VideoPlayer.jsx";
|
||||||
|
|
||||||
|
|
|
||||||
0
src/Header.jsx
Normal file → Executable file
0
src/Header.jsx
Normal file → Executable file
0
src/Home.jsx
Normal file → Executable file
0
src/Home.jsx
Normal file → Executable file
4
src/VideoPlayer.jsx
Normal file → Executable file
4
src/VideoPlayer.jsx
Normal file → Executable file
|
|
@ -1,13 +1,13 @@
|
||||||
import { h, render, Component } from "preact";
|
import { h, render, Component } from "preact";
|
||||||
//import React from "react";
|
//import React from "react";
|
||||||
import Hls from "hls.js";
|
import Hls from "hls.js";
|
||||||
import PortfolioVideo from "../static/video/index.m3u8";
|
const PortfolioVideo = new URL("../static/video/index.m3u8", import.meta.url);
|
||||||
export default class VideoPlayer extends Component {
|
export default class VideoPlayer extends Component {
|
||||||
state = {};
|
state = {};
|
||||||
// componentDidUpdate() {
|
// componentDidUpdate() {
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
const video = this.player;
|
const video = this.player;
|
||||||
const url = PortfolioVideo; //"https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8";
|
const url = PortfolioVideo.href; //"https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8";
|
||||||
if (Hls.isSupported()) {
|
if (Hls.isSupported()) {
|
||||||
const hls = new Hls();
|
const hls = new Hls();
|
||||||
|
|
||||||
|
|
|
||||||
0
src/WebProjects.jsx
Normal file → Executable file
0
src/WebProjects.jsx
Normal file → Executable file
0
src/index.jsx
Normal file → Executable file
0
src/index.jsx
Normal file → Executable file
4
src/theme.js
Normal file → Executable file
4
src/theme.js
Normal file → Executable file
|
|
@ -1,4 +1,4 @@
|
||||||
import { createMuiTheme } from "@material-ui/core/styles";
|
import { createTheme } from "@material-ui/core/styles";
|
||||||
|
|
||||||
const bg_0h = { main: "#1d2021", contrastText: "#282828" };
|
const bg_0h = { main: "#1d2021", contrastText: "#282828" };
|
||||||
const bg = { main: "#282828", contrastText: "#282828" };
|
const bg = { main: "#282828", contrastText: "#282828" };
|
||||||
|
|
@ -12,7 +12,7 @@ const gray = { main: "#a89984", contrastText: "#282828" };
|
||||||
const orange = { main: "#8ec07c", contrastText: "#282828" };
|
const orange = { main: "#8ec07c", contrastText: "#282828" };
|
||||||
const fg = { main: "#ebdbb2", contrastText: "#282828" };
|
const fg = { main: "#ebdbb2", contrastText: "#282828" };
|
||||||
|
|
||||||
const theme = createMuiTheme({
|
const theme = createTheme({
|
||||||
palette: {
|
palette: {
|
||||||
type: "dark",
|
type: "dark",
|
||||||
primary: green,
|
primary: green,
|
||||||
|
|
|
||||||
0
static/cv.pdf
Normal file → Executable file
0
static/cv.pdf
Normal file → Executable file
0
static/images/Graphics.png
Normal file → Executable file
0
static/images/Graphics.png
Normal file → Executable file
|
Before Width: | Height: | Size: 1 MiB After Width: | Height: | Size: 1 MiB |
0
static/images/Monq.jpg
Normal file → Executable file
0
static/images/Monq.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
0
static/images/RambleScreenshot.png
Normal file → Executable file
0
static/images/RambleScreenshot.png
Normal file → Executable file
|
Before Width: | Height: | Size: 144 KiB After Width: | Height: | Size: 144 KiB |
0
static/video/Portfolio.mp4
Normal file → Executable file
0
static/video/Portfolio.mp4
Normal file → Executable file
0
static/video/Portfolio.webm
Normal file → Executable file
0
static/video/Portfolio.webm
Normal file → Executable file
0
static/video/index.m3u8
Normal file → Executable file
0
static/video/index.m3u8
Normal file → Executable file
0
static/video/index0.ts
Normal file → Executable file
0
static/video/index0.ts
Normal file → Executable file
0
static/video/index1.ts
Normal file → Executable file
0
static/video/index1.ts
Normal file → Executable file
0
static/video/index2.ts
Normal file → Executable file
0
static/video/index2.ts
Normal file → Executable file
0
static/video/index3.ts
Normal file → Executable file
0
static/video/index3.ts
Normal file → Executable file
0
static/video/index4.ts
Normal file → Executable file
0
static/video/index4.ts
Normal file → Executable file
0
static/video/index5.ts
Normal file → Executable file
0
static/video/index5.ts
Normal file → Executable file
0
static/video/index6.ts
Normal file → Executable file
0
static/video/index6.ts
Normal file → Executable file
Loading…
Reference in a new issue