-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e64d4be
commit c09ebda
Showing
9 changed files
with
151 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
iframe { | ||
position: fixed; | ||
top: 40px; | ||
left: 0; | ||
width: 100%; | ||
height: calc(100% - 6.5%); | ||
border: none; | ||
display: none; | ||
} | ||
|
||
.show-iframe iframe { | ||
display: block; | ||
} | ||
|
||
#loading-overlay { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background-color: rgba(0, 0, 0, 0.5); | ||
z-index: -999; | ||
} | ||
|
||
.loading-content { | ||
text-align: center; | ||
color: #fff; | ||
} | ||
|
||
.loading-title { | ||
font-size: 24px; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.loading-message { | ||
font-size: 18px; | ||
} | ||
|
||
.info-menu { | ||
display: block; | ||
} | ||
|
||
.info-menu-item { | ||
font-size: 12px; | ||
} | ||
|
||
#container { | ||
position: absolute; | ||
top: 50px; | ||
bottom: 50px; | ||
left: 0; | ||
right: 0; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
#container object { | ||
width: 100%; | ||
height: 100%; | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// @ts-expect-error stfu | ||
import Nav from "@components/nav.tsx" | ||
// @ts-expect-error stfu | ||
import Footer from "@components/footer" | ||
// @ts-expect-error stfu | ||
import { regSW } from "@components/modules/sw" | ||
//import "/public/assets/css/frames.css" | ||
export default function Appframe() { | ||
return ( | ||
<div> | ||
<Nav /> | ||
|
||
<Footer /> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { Route } from "dreamland-router"; | ||
import Notfound from "./404"; | ||
import Settings from "./settings"; | ||
import Apps from "./apps"; | ||
import NoSW from "./proxy-invalid"; | ||
import WispBG from "./wisp"; | ||
import CreditsPage from "./credits"; | ||
import About from "./about"; | ||
import Games from "./games" | ||
import Home from "./main" | ||
import Appframe from "./appframe"; | ||
|
||
export const router = ( | ||
<Route path="/"> | ||
<Route path="" show={<Home />} /> | ||
<Route path="apps" show={<Apps />} /> | ||
<Route path="sw" show={<NoSW />} /> | ||
<Route path="service" show={<NoSW />} /> | ||
<Route path="wisp" show={<WispBG />} /> | ||
<Route path="games" show={<Games />} /> | ||
<Route path="settings" show={<Settings />} /> | ||
<Route path="credits" show={<CreditsPage />} /> | ||
<Route path="about" show={<About />} /> | ||
<Route path="appframe" show={<Appframe />} /> | ||
<Route regex path=".*" show={<Notfound />} /> | ||
</Route> | ||
).$ | ||
|
||
router.render(document.querySelector('.app')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// @ts-expect-error stfu | ||
import Nav from "@components/nav.tsx" | ||
// @ts-expect-error stfu | ||
import Footer from "@components/footer" | ||
// @ts-expect-error stfu | ||
import { regSW } from "@components/modules/sw" | ||
import "/public/assets/css/frames.css" | ||
export default function RuffleFrame() { | ||
// @ts-expect-error stfu | ||
window.RufflePlayer = new ruffle || {}; | ||
// @ts-ignore | ||
window.addEventListener("load", (event: event) => { | ||
// @ts-expect-error stfu | ||
const ruffle = window.RufflePlayer.newest(); | ||
const player = ruffle.createPlayer(); | ||
player.style.width = "100%"; player.style.height = "100%"; | ||
// @ts-expect-error stfu | ||
const container: HTMLDivElement = document.getElementById("container"); | ||
container.appendChild(player); | ||
const flashgame = sessionStorage.getItem('flashswf') | ||
player.load({ | ||
url: flashgame, | ||
}); | ||
}); | ||
return ( | ||
<div> | ||
<Nav /> | ||
<div id="container"></div> | ||
<Footer /> | ||
</div> | ||
) | ||
} |