Skip to content

Commit 03415fe

Browse files
added image representation for the app to be shown in social media sharing
1 parent d2891a1 commit 03415fe

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

react/bitbybit-threejs/public/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
<meta name="description" content="his application shows how to integrate Bit By Bit Developers OCCT algorithms with ThreeJS game engine.">
1010
<meta property="og:title" content="Store - ThreeJS Example - Bit By Bit Developers">
1111
<meta property="og:description" content="This application shows how to integrate Bit By Bit Developers OCCT algorithms with ThreeJS game engine.">
12-
<meta property="og:image" content="https://bitbybit.dev/assets/apps/app-laptop-holder-small.webp">
12+
<meta property="og:image" content="https://app.bitbybit.dev/assets/bitbybit-threejs.png">
1313
<meta property="og:image:width" content="1210">
1414
<meta property="og:image:height" content="681">
15-
<meta property="og:url" content="https://app-store.bitbybit.dev/laptop-holder">
15+
<meta property="og:url" content="https://app-store.bitbybit.dev/bitbybit-threejs">
1616
<meta name="twitter:title" content="Store - ThreeJS Example - Bit By Bit Developers">
1717
<meta name="twitter:card" content="summary_large_image">
1818
<meta name="twitter:site" content="@bitbybit_dev">
1919
<meta name="twitter:description" content="This application shows how to integrate Bit By Bit Developers OCCT algorithms with ThreeJS game engine.">
20-
<meta name="twitter:image:src" content="https://bitbybit.dev/assets/apps/app-laptop-holder-small.webp">
20+
<meta name="twitter:image:src" content="https://app.bitbybit.dev/assets/bitbybit-threejs.png">
2121
<meta name="twitter:alt" content="Picture Showing Store - ThreeJS Example - Bit By Bit Developers">
2222
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
2323
<meta name="theme-color" content="#000000" />

react/bitbybit-threejs/src/App.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99
right: 20px;
1010
}
1111

12+
.imageback {
13+
position: absolute;
14+
z-index: -1;
15+
width: 100%;
16+
height: 100%;
17+
opacity: 0;
18+
}
19+
1220
.hidden {
1321
display: none;
1422
}

react/bitbybit-threejs/src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ function App() {
133133
controls.update();
134134
controls.target = new THREE.Vector3(0, 20, 0);
135135
controls.enableDamping = true;
136+
controls.dampingFactor = 0.1
136137
controls.zoomSpeed = 0.1;
137138

138139
renderer.shadowMap.enabled = true;
@@ -161,6 +162,7 @@ function App() {
161162

162163
return (
163164
<ThemeProvider theme={theme}>
165+
<img className="imageback" src="https://app.bitbybit.dev/assets/bitbybit-threejs.png" alt="image showing the bitbybit threejs 3d printable vase configurator app"></img>
164166
<div className="hideMenu">
165167
<Button onClick={() => setHideMenu(!hideMenu)} color="primary" variant="contained">{hideMenu ? 'Show menu' : 'Hide menu'}</Button>
166168
</div>

0 commit comments

Comments
 (0)