Skip to content

Commit

Permalink
Initial commits
Browse files Browse the repository at this point in the history
  • Loading branch information
khoaxuantu committed Jun 30, 2024
0 parents commit 84d610b
Show file tree
Hide file tree
Showing 13 changed files with 21,589 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# AR Photobooth
72 changes: 72 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Google I/O Extended Hanoi 2024 | AR Photobooth</title>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="../static/js/build/mindar-image-aframe.prod.js"></script>
<script src="../static/js/build/aframe-gif-shader.js"></script>
<link rel="stylesheet" href="../static/css/style.css" />
<script src="../static/js/screenshot.js"></script>
</head>
<body>
<a-scene
mindar-image="imageTargetSrc: ../static/mindar-target/5/targets.prod.mind; uiScanning:no; maxTrack:5"
renderer="colorManagement: true, physicallyCorrectLights"
color-space="sRGB"
vr-mode-ui="enabled: false"
device-orientation-permission-ui="enabled: false"
>
<a-assets>
<img src="../static/gifs/flutter.gif" id="flutterModel">
<img src="../static/gifs/firebase.gif" id="firebaseModel">
<img src="../static/gifs/gdg.gif" id="gdgModel">
<img src="../static/gifs/io.gif" id="ioModel">
<img src="../static/gifs/random.gif" id="randomModel">
</a-assets>
<a-entity mindar-image-target="targetIndex: 0">
<a-entity
geometry="primitive:plane"
material="shader:gif;src:#flutterModel;"
position="0.15 -0.15 1"
scale="0.1 0.1 0.1"
></a-entity>
</a-entity>
<a-entity mindar-image-target="targetIndex: 1">
<a-entity
geometry="primitive:plane"
material="shader:gif;src:#firebaseModel;"
position="-0.15 -0.075 1"
scale="0.1 0.1 0.1"
></a-entity>
</a-entity>
<a-entity mindar-image-target="targetIndex: 2">
<a-entity
geometry="primitive:plane"
material="shader:gif;src:#gdgModel;"
position="0.075 0.2 1"
scale="0.1 0.1 0.1"
></a-entity>
</a-entity>
<a-entity mindar-image-target="targetIndex: 3">
<a-entity
geometry="primitive:plane"
material="shader:gif;src:#ioModel;"
position="-0.15 -0.15 1"
scale="0.1 0.1 0.1"
></a-entity>
</a-entity>
<a-entity mindar-image-target="targetIndex: 4">
<a-entity
geometry="primitive:plane"
material="shader:gif;src:#randomModel;"
position="-0.075 0.2 1"
scale="0.1 0.1 0.1"
></a-entity>
</a-entity>
<a-camera position="0 0 0" look-controls="enabled: false"></a-camera>
</a-scene>
<button id="screenshot" onclick="takeScreenshot()"></button>
</body>
</html>
28 changes: 28 additions & 0 deletions static/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
@import url("https://fonts.googleapis.com/css2?family=Inter&display=swap");

body {
font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

a {
text-decoration: none;
}

a:hover {
text-decoration: underline;
}

#screenshot {
border-radius: 50%;
width: 25%;
max-width: 48px;
aspect-ratio: 1;
position: fixed;
z-index: 2;
bottom: 2rem;
cursor: pointer;
right: 50dvw;
left: 50dvw;
border: 5px solid;
transform: translateX(-50%);
}
Binary file added static/gifs/firebase.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/gifs/flutter.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/gifs/gdg.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/gifs/io.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/gifs/random.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 84d610b

Please sign in to comment.