Fixed greeter video position.
This commit is contained in:
parent
938c699fb0
commit
5103644233
4 changed files with 81 additions and 12 deletions
|
|
@ -18,11 +18,11 @@ class Greeting extends Component {
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
width: "100%",
|
width: "103%",
|
||||||
left: "50%",
|
left: "49%",
|
||||||
right: "50%",
|
right: "49%",
|
||||||
top: "25%",
|
top: "30%",
|
||||||
height: "50%",
|
height: "45%",
|
||||||
objectFit: "cover",
|
objectFit: "cover",
|
||||||
transform: "translate(-50%,-50%)",
|
transform: "translate(-50%,-50%)",
|
||||||
zIndex: "-1",
|
zIndex: "-1",
|
||||||
|
|
|
||||||
70
src/UniGraphics.jsx
Normal file
70
src/UniGraphics.jsx
Normal file
|
|
@ -0,0 +1,70 @@
|
||||||
|
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 (
|
||||||
|
<span>
|
||||||
|
<Header />
|
||||||
|
<p />
|
||||||
|
<Container maxWidth="md">
|
||||||
|
<Card>
|
||||||
|
<CardHeader title="Ramble" />
|
||||||
|
<CardContent>
|
||||||
|
<Typography varient="p">
|
||||||
|
Ramble was a web project I created during my master's degree to
|
||||||
|
create a startup. In this project, I was the CTO and built a
|
||||||
|
website that allowed users to stream their podcasts live and
|
||||||
|
accept call-ins in a similar vein to talk shows! I learnt the
|
||||||
|
entire javascript web development stack from React to audio
|
||||||
|
streaming to DevOps in order to make it a reality.
|
||||||
|
</Typography>.
|
||||||
|
<p />
|
||||||
|
<Typography varient="p">
|
||||||
|
It also had chatroom functionality with the ability to
|
||||||
|
re-stream to audiences much like other apps that came out in
|
||||||
|
the time since, such as Clubhouse.
|
||||||
|
</Typography>
|
||||||
|
<p />
|
||||||
|
<Typography varient="p">
|
||||||
|
During the project's lifespan of just under two years, I mostly
|
||||||
|
worked on creating the streaming functionality of the project
|
||||||
|
and managing how the project was designed to function behind
|
||||||
|
the hood when it was deployed. I learned a ton about how web
|
||||||
|
deployment works during this time allowing me to work on web
|
||||||
|
development modules in the Games Academy at Falmouth University
|
||||||
|
today.
|
||||||
|
</Typography>
|
||||||
|
<p />
|
||||||
|
<Typography varient="p">
|
||||||
|
Here's a demo of the project I took before we moved on.
|
||||||
|
</Typography>
|
||||||
|
<p />
|
||||||
|
<div>
|
||||||
|
<video controls loop muted autoPlay={true} style={{
|
||||||
|
width: "100%",
|
||||||
|
height: "auto",
|
||||||
|
objectFit: "cover",
|
||||||
|
}}>
|
||||||
|
<source src={rambleDemoMp4} type="video/mp4" />
|
||||||
|
<source src={rambleDemoWebm} type="video/webm" />
|
||||||
|
</video>
|
||||||
|
</div>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
</Container>
|
||||||
|
</span>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Ramble;
|
||||||
|
|
@ -13,12 +13,8 @@ class App extends Component {
|
||||||
return (
|
return (
|
||||||
<ThemeProvider theme={theme}>
|
<ThemeProvider theme={theme}>
|
||||||
<CssBaseline />
|
<CssBaseline />
|
||||||
<Background />
|
|
||||||
<Router>
|
<Router>
|
||||||
<AsyncRoute path="/" getComponent={() =>
|
<Home path="/" />
|
||||||
import("./Home").then((module) => module.default)
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
<AsyncRoute path="/contact" getComponent={() =>
|
<AsyncRoute path="/contact" getComponent={() =>
|
||||||
import("./Contact").then((module) => module.default)
|
import("./Contact").then((module) => module.default)
|
||||||
}
|
}
|
||||||
|
|
@ -27,6 +23,10 @@ class App extends Component {
|
||||||
import("./Ramble").then((module) => module.default)
|
import("./Ramble").then((module) => module.default)
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
<AsyncRoute path="/uni-graphics" getComponent={() =>
|
||||||
|
import("./UniGraphics").then((module) => module.default)
|
||||||
|
}
|
||||||
|
/>
|
||||||
<AsyncRoute path="/graphics-blog" getComponent={() =>
|
<AsyncRoute path="/graphics-blog" getComponent={() =>
|
||||||
import("./GraphicsBlog").then((module) => module.default)
|
import("./GraphicsBlog").then((module) => module.default)
|
||||||
}
|
}
|
||||||
|
|
@ -36,6 +36,7 @@ class App extends Component {
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</Router>
|
</Router>
|
||||||
|
<Background />
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,6 @@ canvas.style.cssText = `
|
||||||
top:0;
|
top:0;
|
||||||
z-index:-99999;
|
z-index:-99999;
|
||||||
`
|
`
|
||||||
console.log("HEY");
|
|
||||||
|
|
||||||
// set it's size
|
// set it's size
|
||||||
canvas.width = window.innerWidth;
|
canvas.width = window.innerWidth;
|
||||||
canvas.height = window.innerHeight;
|
canvas.height = window.innerHeight;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue