@@ -10,16 +10,18 @@ const pageBkg = "https://cdn.hackclub.com/019e3e5a-3ad0-7120-8fb4-50638b3c0362/B
1010const shelf = "https://cdn.hackclub.com/019e3e5a-680b-700c-8428-8360f7195bf4/Shelf.png" ;
1111const joinButton = "https://cdn.hackclub.com/019e3e5a-6a7a-7e1a-b945-aa27b1fc4108/join_btn.png" ;
1212const legoChar1 = "https://cdn.hackclub.com/019e3e5a-6d71-79f0-9633-8668b69f464d/legoChar_1.png" ;
13- const shopButton = "https://cdn.hackclub.com/019e3e5a-6f68-719e-a33c-0592db4abd12/shop_btn.png" ;
1413const sectionThreeChar2 = "https://cdn.hackclub.com/019e3e5a-7373-7925-95c9-6d7b841e2004/Char2.png" ;
1514const sectionThreeChar3 = "https://cdn.hackclub.com/019e3e5a-76d6-79b5-9ed5-9ffe5ba40aa3/Char3.png" ;
1615const sectionThreeProject1 = "https://cdn.hackclub.com/019e3e5a-79ab-7a35-9061-cc0302e01074/prj1.png" ;
1716const sectionThreeProject2 = "https://cdn.hackclub.com/019e3e5a-7c73-72e3-8fdc-e2b73b735bc4/prj2.png" ;
1817const sectionThreeProject3 = "https://cdn.hackclub.com/019e3e5a-80e5-71be-8d1f-3017f5349089/prj3.png" ;
1918const faqText = "https://cdn.hackclub.com/019e3e5a-82d7-7105-a023-231cdb1aa700/faq_txt.png" ;
2019import { BrickModel } from "./BrickModel.jsx" ;
20+ import { FaqList } from "./FaqList.jsx" ;
2121import "./Hero.css" ;
2222
23+ const landingBrickRotation = { x : - 1.10 , y : - 0.30 , z : - 0.55 } ;
24+
2325export function Hero ( ) {
2426 return (
2527 < section className = "hero" aria-label = "Stack hero" >
@@ -52,9 +54,9 @@ export function Hero() {
5254 < nav className = "hero__nav" aria-label = "Primary" >
5355 < img className = "hero__nav-bg" src = { toolbar } alt = "" width = { 420 } height = { 56 } />
5456 < div className = "hero__nav-links" >
55- < a href = "#build " > Build</ a >
56- < a href = "#prizes" > Prizes </ a >
57- < a href = "#learn" > Learn </ a >
57+ < a href = "#project-examples " > Build</ a >
58+ < a href = "/faq" > FAQ </ a >
59+ < a href = "https://hackclub.com" target = "_blank" rel = "noopener noreferrer" > Hack Club </ a >
5860 </ div >
5961 </ nav >
6062
@@ -102,7 +104,7 @@ export function Hero() {
102104 alt = ""
103105 aria-hidden = "true"
104106 />
105- < BrickModel />
107+ < BrickModel rotation = { landingBrickRotation } />
106108 </ div >
107109
108110 < img
@@ -128,9 +130,6 @@ export function Hero() {
128130
129131 < div className = "section-two__shelf" >
130132 < img className = "section-two__shelf-image" src = { shelf } width = { 768 } height = { 640 } alt = "Shelf of LEGO prizes" />
131- < a className = "section-two__shop" href = "/shop" aria-label = "See the full prize listing" >
132- < img src = { shopButton } width = { 536 } height = { 113 } alt = "See the full listing..." />
133- </ a >
134133 </ div >
135134
136135 < a className = "section-two__join" href = "/login" aria-label = "Sign up or log in with Hack Club to join Stack" >
@@ -175,7 +174,7 @@ export function Hero() {
175174 </ p >
176175 </ section >
177176
178- < section className = "section-three" aria-label = "Project examples" >
177+ < section id = "project-examples" className = "section-three" aria-label = "Project examples" >
179178 < a
180179 href = "https://what-the-duck-ten.vercel.app/"
181180 aria-label = "Open joke website example"
@@ -234,7 +233,7 @@ export function Hero() {
234233 />
235234 </ section >
236235
237- < section className = "section-four" aria-labelledby = "faq-heading" >
236+ < section id = "faq" className = "section-four" aria-labelledby = "faq-heading" >
238237 < div className = "section-four__faq-strip" aria-hidden = "true" >
239238 < img className = "section-four__faq-title section-four__faq-title--left" src = { faqText } width = { 623 } height = { 380 } alt = "" />
240239 < img className = "section-four__faq-title section-four__faq-title--center" src = { faqText } width = { 623 } height = { 380 } alt = "" />
@@ -245,17 +244,7 @@ export function Hero() {
245244 FAQ
246245 </ h2 >
247246
248- < div className = "section-four__questions" >
249- < button className = "section-four__question" type = "button" >
250- What can I build for Stack?
251- </ button >
252- < button className = "section-four__question" type = "button" >
253- How do I submit my project?
254- </ button >
255- < button className = "section-four__question" type = "button" >
256- When do I get my LEGO set?
257- </ button >
258- </ div >
247+ < FaqList className = "section-four__questions" />
259248 </ section >
260249 </ section >
261250 ) ;
0 commit comments