-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
// Bricks: content for horse galloping
- Loading branch information
Showing
4 changed files
with
49 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.horse-galloping { | ||
--textColor: #fff; | ||
color: var(--textColor); | ||
padding-top: var(--frame-close-button-size); | ||
box-sizing: border-box; | ||
height: 100%; | ||
|
||
.description { | ||
width: clamp(150px, 100%, 400px); | ||
} | ||
} |
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,28 @@ | ||
import './HorseGalloping.styl'; | ||
import { View } from '@react-three/drei'; | ||
import { usePointer } from '../../../utils/usePointer'; | ||
import React, { useRef } from 'react'; | ||
import { Muybridge } from './Muybridge'; | ||
|
||
export const HorseGalloping = () => { | ||
|
||
const elementRef = useRef<HTMLDivElement>(null); | ||
const canvasPointer$ = usePointer(elementRef); | ||
|
||
return ( | ||
<> | ||
<div className='horse-galloping bricks-content' ref={elementRef}> | ||
<h2>Horse Galloping</h2> | ||
<p className='description'> | ||
A LEGO build of Eadweard Muybridge's Horse in Motion replicates his groundbreaking photographic sequence in brick form. | ||
Designed with attention to detail and clever use of LEGO elements, the build highlights both the artistic and scientific significance of Muybridge’s work. | ||
</p> | ||
</div> | ||
<div style={{ left: 0, top: 0, right: 0, bottom: 0, zIndex: -1, overflow: 'hidden', position: 'absolute' }}> | ||
<View style={{ height: '100%', marginRight: -20 }}> | ||
<Muybridge pointer$={canvasPointer$} /> | ||
</View> | ||
</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