File tree Expand file tree Collapse file tree 5 files changed +67
-3
lines changed
public/images/robot/model Expand file tree Collapse file tree 5 files changed +67
-3
lines changed Original file line number Diff line number Diff line change 11import GilesCorey from "@/components/About/GilesCorey" ;
2+ import Hydra from "@/components/About/Hydra" ;
23import Viper from "@/components/About/Viper" ;
34import Breadcrumb from "@/components/Common/Breadcrumb" ;
45
@@ -17,8 +18,9 @@ const AboutPage = () => {
1718 pageName = "Robot"
1819 description = "Robot Page for 772 Golden Dragons"
1920 />
20- < GilesCorey />
21+ < Hydra />
2122 < Viper />
23+ < GilesCorey />
2224 </ >
2325 ) ;
2426} ;
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ const GilesCorey = () => {
5656 exposure = "0.65"
5757 shadow-softness = "0"
5858 disable-tap
59- poster = "/images/robot/2024.png"
59+ // poster="/images/robot/2024.png"
6060 disable-pan
6161 tone-mapping = "neutral"
6262 shadow-intensity = "1"
Original file line number Diff line number Diff line change 1+ import "./model.css" ;
2+ import SectionTitle from "../Common/SectionTitle" ;
3+ import Script from "next/script" ;
4+
5+ declare global {
6+ namespace JSX {
7+ interface IntrinsicElements {
8+ 'model_viewer' : any ;
9+ }
10+ }
11+ }
12+
13+ const checkIcon = (
14+ < svg width = "16" height = "13" viewBox = "0 0 16 13" className = "fill-current" >
15+ < path d = "M5.8535 12.6631C5.65824 12.8584 5.34166 12.8584 5.1464 12.6631L0.678505 8.1952C0.483242 7.99994 0.483242 7.68336 0.678505 7.4881L2.32921 5.83739C2.52467 5.64193 2.84166 5.64216 3.03684 5.83791L5.14622 7.95354C5.34147 8.14936 5.65859 8.14952 5.85403 7.95388L13.3797 0.420561C13.575 0.22513 13.8917 0.225051 14.087 0.420383L15.7381 2.07143C15.9333 2.26669 15.9333 2.58327 15.7381 2.77854L5.8535 12.6631Z" />
16+ </ svg >
17+ ) ;
18+
19+ const Hydra = ( ) => {
20+ return (
21+ < section id = "about" className = "pt-16 md:pt-20 lg:pt-28" >
22+ < div className = "container" >
23+ < div className = "border-b border-body-color/[.15] pb-16 dark:border-white/[.15] md:pb-20 lg:pb-28" >
24+ < div className = "-mx-4 flex flex-wrap-reverse items-center" >
25+ < div className = "w-full px-4 lg:w-1/2" >
26+ < SectionTitle
27+ title = "Hydra"
28+ paragraph = "Hydra is the Custom Robot for Golden Dragons' 2024-25 season. This robot is a lightweight and efficient machine used to score as many samples and specimen as possible during the match as well as hanging during endgame. This robot was an evolution of Viper and kept to the original naming conventions."
29+ mb = "44px"
30+
31+ />
32+ </ div >
33+ < div className = "w-full px-4 lg:w-1/2" >
34+ < div className = "relative mx-auto aspect-[25/24] sm:mb-5 max-w-[500px] lg:mr-0 flex justify-center" >
35+ < div className = "model" >
36+ < model-viewer
37+ className = "w-full h-[500px]"
38+ src = "/images/robot/model/2025_V2.glb"
39+ camera-controls
40+ camera-orbit = "320deg 80deg 25m"
41+ loading = "auto"
42+ powerPreference = "low-power"
43+ exposure = "0.65"
44+ shadow-softness = "0"
45+ disable-tap
46+ //poster="/images/robot/2025.png"
47+ disable-pan
48+ tone-mapping = "neutral"
49+ shadow-intensity = "1"
50+ alt = "Model Loading Failed"
51+ />
52+ </ div >
53+ </ div >
54+ </ div >
55+ </ div >
56+ </ div >
57+ </ div >
58+ </ section >
59+ ) ;
60+ } ;
61+
62+ export default Hydra ;
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ const Viper = () => {
4242 exposure = "0.65"
4343 shadow-softness = "0"
4444 disable-tap
45- poster = "/images/robot/2025.png"
45+ // poster="/images/robot/2025.png"
4646 disable-pan
4747 tone-mapping = "neutral"
4848 shadow-intensity = "1"
You can’t perform that action at this time.
0 commit comments