Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ArjunQBTech committed Oct 15, 2024
2 parents 8ba55af + 536d392 commit 17abddf
Show file tree
Hide file tree
Showing 9 changed files with 171 additions and 20 deletions.
Binary file added src/StarDustAdventures_frontend/public/mbg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import React from 'react'
import './gameConcept.css'
import { gameConceptText } from '../../../constants/text'

const GameConceptM = () => {
return (
<div className='m-game-concept-main' style={{backgroundImage:'url("mbg.png")',backgroundSize:'cover'}}>
<div className="mgc-header">
<h1 className="mgc-title">
Overview of Star Dust Adventures
</h1>
<p className="mgc-subtext">
A Tap-to-Earn Game Combining Exploration and Blockchain
</p>
</div>
<div className="mgc-content">
<img src="red_planet.png" alt="red planet" className="mgc-img" />
<div className="mgc-info-cont">
{
gameConceptText.left.map((item,index)=>(
<div className={index==1?"mgci-item2":"mgci-item"} key={index}>
<h3 className="mgci-title">{item.title}</h3>
<p className="mgci-text">{item.text}</p>
</div>
))
}
<div className="mgci-item3">
<h3 className="mgci-title">{gameConceptText.center.title}</h3>
<p className="mgci-text">{gameConceptText.center.text}</p>
</div>
{
gameConceptText.right.map((item,index)=>(
<div className={index==0?"mgci-item2":"mgci-item"} key={index}>
<h3 className="mgci-title">{item.title}</h3>
<p className="mgci-text">{item.text}</p>
</div>
))
}
</div>
</div>

</div>
)
}

export default GameConceptM
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
.m-game-concept-main{
@apply py-14 flex flex-col items-center relative
}
.mgc-header{
@apply flex flex-col items-center w-[80%] mt-20 min-w-[280px]
}
.mgc-title{
@apply text-center text-3xl mb-4 font-pixelify-sans
}
.mgc-subtext{
@apply text-center text-xs font-sf-pro-display
}

.mgc-content{
@apply min-w-[300px] relative flex items-center mt-16 pr-20
}

.mgc-img{
@apply absolute w-[200px] justify-start mb-4
}
.mgc-info-cont{
@apply z-10 flex w-[90%] flex-col items-start gap-1 ml-[27vw]
}
.mgci-item{
@apply flex flex-col items-start w-[200px]
}
.mgci-item2{
@apply flex flex-col items-start w-[200px] ml-[110px]
}
.mgci-item3{
@apply flex flex-col items-start min-w-[180px] max-w-[200px] ml-[160px]
}
.mgci-title{
@apply text-sm font-semibold
}
.mgci-text{
@apply text-[10px] mb-3
}

@media only screen and (min-width:450px)and (max-width:700px) {

.mgc-content{
@apply max-w-[400px] min-w-[300px] relative flex items-center mt-16 pr-20
}
.mgc-info-cont{
@apply ml-[18vw]
}

}
@media only screen and (min-width:701px)and (max-width:1024px) {
.mgc-title{
@apply text-center text-4xl mb-4 font-pixelify-sans
}
.mgc-subtext{
@apply text-center text-sm font-sf-pro-display
}
.mgc-content{
@apply w-[80%]
}
.mgc-img{
@apply w-[290px]
}
.mgci-title{
@apply text-base font-semibold
}
.mgci-text{
@apply text-[14px] mb-3
}
.mgci-item{
@apply w-[300px]
}
.mgci-item2{
@apply w-[300px] ml-[140px]
}
.mgci-item3{
@apply max-w-[300px] ml-[200px]
}
.mgc-info-cont{
@apply ml-[23vw]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import './lore.css'

const LoreM = () => {
return (
<div>LoreM</div>
)
}

export default LoreM
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
@apply flex flex-col items-end
}
.gcs-sl-title{
@apply mb-3 text-3xl font-semibold text-right
@apply mb-3 xl:text-3xl md:text-xl font-semibold text-right
}
.gcs-sl-text{
@apply w-[350px] text-right font-medium text-lg
@apply xl:w-[350px] text-right font-medium text-lg
}

/* right */
Expand All @@ -23,26 +23,26 @@
@apply flex flex-col items-start
}
.gcs-sr-title{
@apply mb-3 text-3xl font-semibold text-left
@apply mb-3 xl:text-3xl md:text-xl font-semibold text-left
}
.gcs-sr-text{
@apply w-[350px] text-left font-medium text-lg
@apply xl:w-[350px] text-left font-medium text-lg
}

/* center */

.gcs-sub-center{
@apply flex flex-col items-center h-[100%] justify-between mx-20 font-sf-pro-display
@apply flex flex-col items-center h-[100%] justify-between xl:mx-20 lg:mx-12 font-sf-pro-display
}
.gcs-sc-text-item{
@apply flex flex-col items-center mt-20 mb-20
}
.gcs-sc-img{
@apply w-[25vw] min-w-[450px]
@apply w-[25vw] lg:min-w-[350px]
}
.gcs-sc-text{
@apply w-[400px] text-center font-medium text-lg
@apply xl:w-[400px] text-center font-medium xl:text-lg md:text-base
}
.gcs-sc-title{
@apply mb-3 text-3xl font-semibold text-center
@apply mb-3 xl:text-3xl md:text-xl font-semibold text-center
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import React, { useEffect } from 'react'
import Button from '../../re-usables/Button'
import './hero.css'
import BgOverlay from '../../re-usables/BgOverlay'
Expand Down Expand Up @@ -36,14 +36,20 @@ const Hero = () => {
className="hs-falling-astro"
fetchPriority='high'
/>
<div className="hs-text-cont2">
<h3 className="hstc2-title">
Overview of Star Dust Adventures
</h3>
<p className="hstc2-text">
A Tap-to-Earn Game Combining Exploration and Blockchain
</p>
</div>
{
window.innerWidth>1024?
<div className="hs-text-cont2">
<h3 className="hstc2-title">
Overview of Star Dust Adventures
</h3>
<p className="hstc2-text">
A Tap-to-Earn Game Combining Exploration and Blockchain
</p>
</div>
:
<></>
}

</div>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
@apply flex flex-col items-center my-4 text-white z-20
}
.hstc2-title{
@apply text-6xl font-semibold font-pixelify-sans mb-7
@apply text-6xl font-semibold font-pixelify-sans mb-7 text-center
}
.hstc2-text{
@apply text-xl text-center mt-4 mb-7 font-sf-pro-display
Expand Down
12 changes: 10 additions & 2 deletions src/StarDustAdventures_frontend/src/pages/Landing.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React from 'react'
import React, { useEffect, useState } from 'react'
import '../components/landing/landing.css'
import Hero from '../components/landing/hero/Hero'
import Footer from '../components/landing/footer'
import GamePlayMechanics from '../components/landing/gamePlayMechanics'
import GameConcept from '../components/landing/gameConcept/GameConcept'
import Lore from '../components/landing/loreStoryline/Lore'
import GradientCover from '../components/landing/GradientCover'
import GameConceptM from '../components/landing-mobile/gameConcept/GameConceptM'

const PatternCover = () => {
return(
Expand All @@ -17,10 +18,17 @@ const PatternCover = () => {
}

const Landing = () => {
const [width,setWidth]=useState(window.innerWidth)

useEffect(()=>{
window.addEventListener("resize", ()=>setWidth(window.innerWidth));
return () => window.removeEventListener("resize", ()=>setWidth(window.innerWidth));
},[])

return (
<div className='page'>
<Hero/>
<GameConcept/>
{width>1024?<GameConcept/>:<GameConceptM/>}
<PatternCover/>
<Footer/>
</div>
Expand Down

0 comments on commit 17abddf

Please sign in to comment.