Skip to content

Commit

Permalink
Landing responsive Signin/Home button
Browse files Browse the repository at this point in the history
  • Loading branch information
ethancheez committed Nov 13, 2023
1 parent 088c0d3 commit 57be454
Showing 1 changed file with 119 additions and 104 deletions.
223 changes: 119 additions & 104 deletions app/imports/ui/pages/Landing.jsx
Original file line number Diff line number Diff line change
@@ -1,115 +1,130 @@
import React from 'react';
import { useTracker } from 'meteor/react-meteor-data';
import { Meteor } from 'meteor/meteor';
import { Col, Container, Image, Row, Button, Nav, Card, CardGroup } from 'react-bootstrap';
import { NavLink } from 'react-router-dom';
import { BsCloudUpload, BsImages, BsFillHouseAddFill, BsFillChatLeftTextFill } from 'react-icons/bs';

const Landing = () => (
<Container id="landing-page" fluid className="py-3">
<Row style={{ display: 'flex', alignItems: 'center', margin: '0% 5%' }}>
<Col sm={5}>
<h2 style={{ fontWeight: 'bold' }}>Facilitating Collaborative Redevelopment of Lahaina</h2>
<br />
<p>By fostering collaboration, inclusivity, cultural sensitivity and informed decision-making, Sim-Lahaina aims to expedite the recovery process and build a resilient, sustainable and viable Lahaina community.</p>
<Nav.Link id="statistics" as={NavLink} to="/signin" key="statistics"><Button className="theme-button">Sign In</Button></Nav.Link>
</Col>
<Col sm={7} style={{ display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
<Image src="/images/landing-1.png" width="550px" />
</Col>
</Row>
<br />
<br />
<Row style={{ borderTop: '5px solid red', display: 'flex', alignItems: 'center', backgroundColor: 'rgba(255, 53, 0, 0.75)' }}>
<Col sm={7} style={{ display: 'flex', alignItems: 'center', justifyContent: 'center', padding: '20px' }}>
<div>
<Image src="/images/landing-4.png" width="650px" />
</div>
</Col>
<Col sm={4} style={{ display: 'flex', justifyContent: 'flex-end', alignItems: 'flex-end', flexDirection: 'column', textAlign: 'right', color: 'white' }}>
<h2 style={{ fontWeight: 'bold' }}>Create Your Own Simulation</h2>
<br />
<p>Upload either self-designed 3D models or publicly available ones to create your customized 3D simulation for planning the redevelopment of Lahaina, Maui, and manipulate these models on a map.</p>
</Col>
</Row>
<br />
<br />
<Row style={{ display: 'flex', textAlign: 'center' }}>
<h2 style={{ fontWeight: 'bold' }}>How do you get started?</h2>
</Row>
<br />
<Row>
<CardGroup>
<Col style={{ padding: '10px' }}>
<Card style={{ border: '1px solid rgba(255, 53, 0, 0.75)' }}>
<div style={{ display: 'flex', justifyContent: 'center', paddingTop: '20px' }}>
<BsCloudUpload style={{ height: '100px', width: '100px' }} />
</div>
<Card.Body>
<Card.Title>1. Upload a Model</Card.Title>
<Card.Text>
Upload a self-designed 3D models. If not, you can use a publicly available ones made from other people (skip to step 3)
</Card.Text>
</Card.Body>
</Card>
const Landing = () => {
const { ready } = useTracker(() => {
const rdy = Meteor.user() !== undefined;
return {
ready: rdy,
};
}, []);

return ready ? (
<Container id="landing-page" fluid className="py-3">
<Row style={{ display: 'flex', alignItems: 'center', margin: '0% 5%' }}>
<Col sm={5}>
<h2 style={{ fontWeight: 'bold' }}>Facilitating Collaborative Redevelopment of Lahaina</h2>
<br />
<p>By fostering collaboration, inclusivity, cultural sensitivity and informed decision-making, Sim-Lahaina aims to expedite the recovery process and build a resilient, sustainable and viable Lahaina community.</p>
{Meteor.user() === null ? (
<Nav.Link id="landing-to-signin" as={NavLink} to="/signin" key="landing-to-signin"><Button className="theme-button">Sign In</Button></Nav.Link>
) : (
<Nav.Link id="landing-to-home" as={NavLink} to="/home" key="landing-to-home"><Button className="theme-button">Home Page</Button></Nav.Link>
)}
</Col>
<Col sm={7} style={{ display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
<Image src="/images/landing-1.png" width="550px" />
</Col>
</Row>
<br />
<br />
<Row style={{ borderTop: '5px solid red', display: 'flex', alignItems: 'center', backgroundColor: 'rgba(255, 53, 0, 0.75)' }}>
<Col sm={7} style={{ display: 'flex', alignItems: 'center', justifyContent: 'center', padding: '20px' }}>
<div>
<Image src="/images/landing-4.png" width="650px" />
</div>
</Col>
<Col style={{ padding: '10px' }}>
<Card style={{ border: '1px solid rgba(255, 53, 0, 0.75)' }}>
<div style={{ display: 'flex', justifyContent: 'center', paddingTop: '20px' }}>
<BsImages style={{ height: '100px', width: '100px' }} />
</div>
<Card.Body>
<Card.Title>2. Attached Images to Models</Card.Title>
<Card.Text>
Attach 2d images that illustrate your vision of the model or create them using our built-in AI image generated tool
</Card.Text>
</Card.Body>
</Card>
<Col sm={4} style={{ display: 'flex', justifyContent: 'flex-end', alignItems: 'flex-end', flexDirection: 'column', textAlign: 'right', color: 'white' }}>
<h2 style={{ fontWeight: 'bold' }}>Create Your Own Simulation</h2>
<br />
<p>Upload either self-designed 3D models or publicly available ones to create your customized 3D simulation for planning the redevelopment of Lahaina, Maui, and manipulate these models on a map.</p>
</Col>
<Col style={{ padding: '10px' }}>
<Card style={{ border: '1px solid rgba(255, 53, 0, 0.75)' }}>
<div style={{ display: 'flex', justifyContent: 'center', paddingTop: '20px' }}>
<BsFillHouseAddFill style={{ height: '100px', width: '100px' }} />
</div>
<Card.Body>
<Card.Title>3. Create a Simulation</Card.Title>
<Card.Text>
Use your self-designed or public 3D models to generate prototype simulations and strategize the redevelopment on a map of Lahaina
</Card.Text>
</Card.Body>
</Card>
</Row>
<br />
<br />
<Row style={{ display: 'flex', textAlign: 'center' }}>
<h2 style={{ fontWeight: 'bold' }}>How do you get started?</h2>
</Row>
<br />
<Row>
<CardGroup>
<Col style={{ padding: '10px' }}>
<Card style={{ border: '1px solid rgba(255, 53, 0, 0.75)' }}>
<div style={{ display: 'flex', justifyContent: 'center', paddingTop: '20px' }}>
<BsCloudUpload style={{ height: '100px', width: '100px' }} />
</div>
<Card.Body>
<Card.Title>1. Upload a Model</Card.Title>
<Card.Text>
Upload a self-designed 3D models. If not, you can use a publicly available ones made from other people (skip to step 3)
</Card.Text>
</Card.Body>
</Card>
</Col>
<Col style={{ padding: '10px' }}>
<Card style={{ border: '1px solid rgba(255, 53, 0, 0.75)' }}>
<div style={{ display: 'flex', justifyContent: 'center', paddingTop: '20px' }}>
<BsImages style={{ height: '100px', width: '100px' }} />
</div>
<Card.Body>
<Card.Title>2. Attached Images to Models</Card.Title>
<Card.Text>
Attach 2d images that illustrate your vision of the model or create them using our built-in AI image generated tool
</Card.Text>
</Card.Body>
</Card>
</Col>
<Col style={{ padding: '10px' }}>
<Card style={{ border: '1px solid rgba(255, 53, 0, 0.75)' }}>
<div style={{ display: 'flex', justifyContent: 'center', paddingTop: '20px' }}>
<BsFillHouseAddFill style={{ height: '100px', width: '100px' }} />
</div>
<Card.Body>
<Card.Title>3. Create a Simulation</Card.Title>
<Card.Text>
Use your self-designed or public 3D models to generate prototype simulations and strategize the redevelopment on a map of Lahaina
</Card.Text>
</Card.Body>
</Card>
</Col>
<Col style={{ padding: '10px' }}>
<Card style={{ border: '1px solid rgba(255, 53, 0, 0.75)' }}>
<div style={{ display: 'flex', justifyContent: 'center', paddingTop: '20px' }}>
<BsFillChatLeftTextFill style={{ height: '100px', width: '100px' }} />
</div>
<Card.Body>
<Card.Title>4. Collaborate</Card.Title>
<Card.Text>
Message through built-in discussions for models, simulations, and threads to collaborate with other community members
</Card.Text>
</Card.Body>
</Card>
</Col>
</CardGroup>
</Row>
<br />
<br />
<Row style={{ borderTop: '5px solid red', padding: '0 5%', display: 'flex', alignItems: 'center', backgroundColor: 'rgba(255, 53, 0, 0.75)', color: 'white' }}>
<Col sm={5} style={{ flexDirection: 'column' }}>
<h2 style={{ fontWeight: 'bold' }}>Lahaina &quot;Merciless Sun&quot; </h2>
<br />
<p>
The devastating fires in Lahaina, Maui, on August 8th have significantly impacted the local and statewide economy, causing extensive damage that will take years to rebuild,
while also highlighting significant cultural conflicts involving native culture, art galleries, restaurants, nightclubs, and hotel worker housing.
</p>
</Col>
<Col style={{ padding: '10px' }}>
<Card style={{ border: '1px solid rgba(255, 53, 0, 0.75)' }}>
<div style={{ display: 'flex', justifyContent: 'center', paddingTop: '20px' }}>
<BsFillChatLeftTextFill style={{ height: '100px', width: '100px' }} />
</div>
<Card.Body>
<Card.Title>4. Collaborate</Card.Title>
<Card.Text>
Message through built-in discussions for models, simulations, and threads to collaborate with other community members
</Card.Text>
</Card.Body>
</Card>
<Col sm={7} style={{ display: 'flex', alignItems: 'center', justifyContent: 'center', padding: '20px' }}>
<div>
<Image src="/images/lahaina.png" width="550px" />
</div>
</Col>
</CardGroup>
</Row>
<br />
<br />
<Row style={{ borderTop: '5px solid red', padding: '0 5%', display: 'flex', alignItems: 'center', backgroundColor: 'rgba(255, 53, 0, 0.75)', color: 'white' }}>
<Col sm={5} style={{ flexDirection: 'column' }}>
<h2 style={{ fontWeight: 'bold' }}>Lahaina &quot;Merciless Sun&quot; </h2>
<br />
<p>
The devastating fires in Lahaina, Maui, on August 8th have significantly impacted the local and statewide economy, causing extensive damage that will take years to rebuild,
while also highlighting significant cultural conflicts involving native culture, art galleries, restaurants, nightclubs, and hotel worker housing.
</p>
</Col>
<Col sm={7} style={{ display: 'flex', alignItems: 'center', justifyContent: 'center', padding: '20px' }}>
<div>
<Image src="/images/lahaina.png" width="550px" />
</div>
</Col>
</Row>
</Container>
);
</Row>
</Container>
) : '';
};

export default Landing;

0 comments on commit 57be454

Please sign in to comment.