diff --git a/.babelrc b/.babelrc old mode 100644 new mode 100755 diff --git a/index.html b/index.html old mode 100644 new mode 100755 index e75dd03..6b65b5e --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ - - + + diff --git a/package.json b/package.json old mode 100644 new mode 100755 index edde2c6..bef44d3 --- a/package.json +++ b/package.json @@ -2,25 +2,29 @@ "name": "portfolio-site", "version": "1.0.0", "description": "Portfolio Site", - "main": "src/index.jsx", "scripts": { "start": "rm -v dist/* && node postbuild.js && parcel index.html", "build": "rm -rv dist && parcel build index.html && exec node postbuild.js" }, + "browserslist": [ + "defaults", + "not IE 11", + "maintained node versions" + ], "author": "", "license": "BSD-2-Clause", "devDependencies": { "@babel/core": "^7.12.3", "@babel/plugin-transform-react-jsx": "^7.12.5", - "cssnano": "^4.1.10", - "parcel-bundler": "^1.12.4", + "cssnano": "^5.1.0", + "parcel": "^2.0.0", "typescript": "^4.0.5" }, "dependencies": { "@material-ui/core": "^4.11.0", "@types/react": "^16.9.56", "fontsource-roboto": "^3.0.3", - "hls.js": "^0.14.16", + "hls.js": "^1.1.5", "preact": "^10.5.5", "preact-async-route": "^2.2.1", "preact-router": "^3.2.1", diff --git a/postbuild.js b/postbuild.js old mode 100644 new mode 100755 diff --git a/src/Contact.jsx b/src/Contact.jsx old mode 100644 new mode 100755 diff --git a/src/GameProjects.jsx b/src/GameProjects.jsx old mode 100644 new mode 100755 diff --git a/src/Greeting.jsx b/src/Greeting.jsx old mode 100644 new mode 100755 index ad041dd..63bfe9d --- a/src/Greeting.jsx +++ b/src/Greeting.jsx @@ -7,7 +7,7 @@ import { Typography, Button, } 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"; diff --git a/src/Header.jsx b/src/Header.jsx old mode 100644 new mode 100755 diff --git a/src/Home.jsx b/src/Home.jsx old mode 100644 new mode 100755 diff --git a/src/VideoPlayer.jsx b/src/VideoPlayer.jsx old mode 100644 new mode 100755 index 05c3dd7..0bc2392 --- a/src/VideoPlayer.jsx +++ b/src/VideoPlayer.jsx @@ -1,13 +1,13 @@ import { h, render, Component } from "preact"; //import React from "react"; 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 { state = {}; // componentDidUpdate() { componentDidMount() { 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()) { const hls = new Hls(); diff --git a/src/WebProjects.jsx b/src/WebProjects.jsx old mode 100644 new mode 100755 diff --git a/src/index.jsx b/src/index.jsx old mode 100644 new mode 100755 diff --git a/src/theme.js b/src/theme.js old mode 100644 new mode 100755 index dca8218..a2f763c --- a/src/theme.js +++ b/src/theme.js @@ -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 = { main: "#282828", contrastText: "#282828" }; @@ -12,7 +12,7 @@ const gray = { main: "#a89984", contrastText: "#282828" }; const orange = { main: "#8ec07c", contrastText: "#282828" }; const fg = { main: "#ebdbb2", contrastText: "#282828" }; -const theme = createMuiTheme({ +const theme = createTheme({ palette: { type: "dark", primary: green, diff --git a/static/cv.pdf b/static/cv.pdf old mode 100644 new mode 100755 diff --git a/static/images/Graphics.png b/static/images/Graphics.png old mode 100644 new mode 100755 diff --git a/static/images/Monq.jpg b/static/images/Monq.jpg old mode 100644 new mode 100755 diff --git a/static/images/RambleScreenshot.png b/static/images/RambleScreenshot.png old mode 100644 new mode 100755 diff --git a/static/video/Portfolio.mp4 b/static/video/Portfolio.mp4 old mode 100644 new mode 100755 diff --git a/static/video/Portfolio.webm b/static/video/Portfolio.webm old mode 100644 new mode 100755 diff --git a/static/video/index.m3u8 b/static/video/index.m3u8 old mode 100644 new mode 100755 diff --git a/static/video/index0.ts b/static/video/index0.ts old mode 100644 new mode 100755 diff --git a/static/video/index1.ts b/static/video/index1.ts old mode 100644 new mode 100755 diff --git a/static/video/index2.ts b/static/video/index2.ts old mode 100644 new mode 100755 diff --git a/static/video/index3.ts b/static/video/index3.ts old mode 100644 new mode 100755 diff --git a/static/video/index4.ts b/static/video/index4.ts old mode 100644 new mode 100755 diff --git a/static/video/index5.ts b/static/video/index5.ts old mode 100644 new mode 100755 diff --git a/static/video/index6.ts b/static/video/index6.ts old mode 100644 new mode 100755