diff --git a/postbuild.js b/postbuild.js index b31e3de..dbf0101 100755 --- a/postbuild.js +++ b/postbuild.js @@ -1,7 +1,18 @@ const Path = require("path"); const fs = require("fs"); -fs.copyFile("./static/video/index0.ts", "./dist/index0.ts", (err) => { +fs.copyFile("./static/video/background_video/index0.ts", + "./dist/index0.ts", (err) => { + if (err) { + return + console.error("Video segments were not copied! \n", + err); + } else { + return console.error("Video segments successfully copied! \n"); + } + }); + +fs.copyFile("./static/video/background_video/index1.ts", "./dist/index1.ts", (err) => { if (err) { return console.error("Video segments were not copied! \n", err); } else { @@ -9,43 +20,35 @@ fs.copyFile("./static/video/index0.ts", "./dist/index0.ts", (err) => { } }); -fs.copyFile("./static/video/index1.ts", "./dist/index1.ts", (err) => { +fs.copyFile("./static/video/background_video/index2.ts", "./dist/index2.ts", (err) => { if (err) { return console.error("Video segments were not copied! \n", err); } else { return console.error("Video segments successfully copied! \n"); } }); - -fs.copyFile("./static/video/index2.ts", "./dist/index2.ts", (err) => { +fs.copyFile("./static/video/background_video/index3.ts", "./dist/index3.ts", (err) => { if (err) { return console.error("Video segments were not copied! \n", err); } else { return console.error("Video segments successfully copied! \n"); } }); -fs.copyFile("./static/video/index3.ts", "./dist/index3.ts", (err) => { +fs.copyFile("./static/video/background_video/index4.ts", "./dist/index4.ts", (err) => { if (err) { return console.error("Video segments were not copied! \n", err); } else { return console.error("Video segments successfully copied! \n"); } }); -fs.copyFile("./static/video/index4.ts", "./dist/index4.ts", (err) => { +fs.copyFile("./static/video/background_video/index5.ts", "./dist/index5.ts", (err) => { if (err) { return console.error("Video segments were not copied! \n", err); } else { return console.error("Video segments successfully copied! \n"); } }); -fs.copyFile("./static/video/index5.ts", "./dist/index5.ts", (err) => { - if (err) { - return console.error("Video segments were not copied! \n", err); - } else { - return console.error("Video segments successfully copied! \n"); - } -}); -fs.copyFile("./static/video/index6.ts", "./dist/index6.ts", (err) => { +fs.copyFile("./static/video/background_video/index6.ts", "./dist/index6.ts", (err) => { if (err) { return console.error("Video segments were not copied! \n", err); } else { diff --git a/src/Contact.jsx b/src/Contact.jsx old mode 100755 new mode 100644 diff --git a/src/GameProjects.jsx b/src/GameProjects.jsx old mode 100755 new mode 100644 diff --git a/src/Greeting.jsx b/src/Greeting.jsx old mode 100755 new mode 100644 diff --git a/src/Header.jsx b/src/Header.jsx old mode 100755 new mode 100644 diff --git a/src/Home.jsx b/src/Home.jsx old mode 100755 new mode 100644 diff --git a/src/Ramble.jsx b/src/Ramble.jsx new file mode 100644 index 0000000..b689afb --- /dev/null +++ b/src/Ramble.jsx @@ -0,0 +1,64 @@ +import { h, render, Component } from "preact"; +import Header from "./Header"; +import { + Container, + Card, + CardHeader, + CardContent, + Typography, +} from "@material-ui/core"; +const rambleDemoWebm = new URL("../static/video/ramble_demo/ramble.webm", import.meta.url); +const rambleDemoMp4 = new URL("../static/video/ramble_demo/ramble.mp4", import.meta.url); + +class Ramble extends Component { + render() { + return ( + +
+ + + + + + + Ramble was a web project I created during my masters to try to + create a startup. + +

+ + It was essentially a website with chatroom functionality with + the ability to re-stream to audiences much like other apps that + came out in the time since, such as clubhouse. These high + profile alternatives to our product destroyed any forst to + market advantage we may have had slready secured a lot of + funding which we failed to procure leading us to choose to + abandon the project. + +

+ + Due to the projects reliance on software as a service projects + and it's part ownership of an incubator program, I'm + unfortunately unable to leave a demo running of the + functionality we had created. So here's a video of it in action + I took just before the shutoff. + +

+

+ +
+
+
+
+ + ); + } +} + +export default Ramble; diff --git a/src/VideoPlayer.jsx b/src/VideoPlayer.jsx old mode 100755 new mode 100644 index 0bc2392..12d6c02 --- a/src/VideoPlayer.jsx +++ b/src/VideoPlayer.jsx @@ -1,7 +1,7 @@ import { h, render, Component } from "preact"; //import React from "react"; import Hls from "hls.js"; -const PortfolioVideo = new URL("../static/video/index.m3u8", import.meta.url); +const PortfolioVideo = new URL("../static/video/background_video/index.m3u8", import.meta.url); export default class VideoPlayer extends Component { state = {}; // componentDidUpdate() { @@ -13,12 +13,12 @@ export default class VideoPlayer extends Component { hls.loadSource(url); hls.attachMedia(video); - hls.on(Hls.Events.MANIFEST_PARSED, function () { + hls.on(Hls.Events.MANIFEST_PARSED, function() { video.play(); }); } else if (video.canPlayType("application/vnd.apple.mpegurl")) { video.src = url; - video.addEventListener("loadedmetadata", function () { + video.addEventListener("loadedmetadata", function() { video.play(); }); } diff --git a/src/WebProjects.jsx b/src/WebProjects.jsx old mode 100755 new mode 100644 index f10f8b0..4704d11 --- a/src/WebProjects.jsx +++ b/src/WebProjects.jsx @@ -40,16 +40,9 @@ class WebProjects extends Component { - - diff --git a/src/index.jsx b/src/index.jsx old mode 100755 new mode 100644 index d0f8f39..24284b5 --- a/src/index.jsx +++ b/src/index.jsx @@ -21,6 +21,10 @@ class App extends Component { import("./Contact").then((module) => module.default) } /> + + import("./Ramble").then((module) => module.default) + } + /> import("./404Page").then((module) => module.default) } diff --git a/src/theme.js b/src/theme.js old mode 100755 new mode 100644 index a2f763c..8772120 --- a/src/theme.js +++ b/src/theme.js @@ -14,15 +14,23 @@ const fg = { main: "#ebdbb2", contrastText: "#282828" }; const theme = createTheme({ palette: { - type: "dark", - primary: green, - secondary: aqua, - text: { primary: fg.main, sencondary: gray.main }, - background: { default: bg_0h.main, paper: bg.main }, - }, - status: { - danger: red, - }, + type: 'light', + primary: { + main: '#00a878', + }, + secondary: { + main: '#046865', + }, + background: { + default: '#f8ffeb', + }, + error: { + main: '#e53d00', + }, + warning: { + main: '#ffe900', + }, + } }); export default theme; diff --git a/static/video/Portfolio.mp4 b/static/video/background_video/Portfolio.mp4 similarity index 100% rename from static/video/Portfolio.mp4 rename to static/video/background_video/Portfolio.mp4 diff --git a/static/video/Portfolio.webm b/static/video/background_video/Portfolio.webm similarity index 100% rename from static/video/Portfolio.webm rename to static/video/background_video/Portfolio.webm diff --git a/static/video/index.m3u8 b/static/video/background_video/index.m3u8 similarity index 100% rename from static/video/index.m3u8 rename to static/video/background_video/index.m3u8 diff --git a/static/video/index0.ts b/static/video/background_video/index0.ts similarity index 100% rename from static/video/index0.ts rename to static/video/background_video/index0.ts diff --git a/static/video/index1.ts b/static/video/background_video/index1.ts similarity index 100% rename from static/video/index1.ts rename to static/video/background_video/index1.ts diff --git a/static/video/index2.ts b/static/video/background_video/index2.ts similarity index 100% rename from static/video/index2.ts rename to static/video/background_video/index2.ts diff --git a/static/video/index3.ts b/static/video/background_video/index3.ts similarity index 100% rename from static/video/index3.ts rename to static/video/background_video/index3.ts diff --git a/static/video/index4.ts b/static/video/background_video/index4.ts similarity index 100% rename from static/video/index4.ts rename to static/video/background_video/index4.ts diff --git a/static/video/index5.ts b/static/video/background_video/index5.ts similarity index 100% rename from static/video/index5.ts rename to static/video/background_video/index5.ts diff --git a/static/video/index6.ts b/static/video/background_video/index6.ts similarity index 100% rename from static/video/index6.ts rename to static/video/background_video/index6.ts diff --git a/static/video/ramble_demo/ramble.mp4 b/static/video/ramble_demo/ramble.mp4 new file mode 100644 index 0000000..adf0298 Binary files /dev/null and b/static/video/ramble_demo/ramble.mp4 differ diff --git a/static/video/ramble_demo/ramble.webm b/static/video/ramble_demo/ramble.webm new file mode 100644 index 0000000..871b9a5 Binary files /dev/null and b/static/video/ramble_demo/ramble.webm differ