Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reactive UI changes #9

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
4067362
working on accordions and flexing correctly
d-espinozahernandez Feb 17, 2024
ba905c1
reactive changes
d-espinozahernandez Feb 20, 2024
c38a3b0
missed some old formatting
d-espinozahernandez Feb 20, 2024
5d4e614
remove unused import
d-espinozahernandez Feb 20, 2024
e93a1c2
remove unused imports
d-espinozahernandez Feb 20, 2024
69c8c9b
test deploy
daespinozah Feb 20, 2024
c8679a9
rollback
daespinozah Feb 20, 2024
851a3fe
test deploy
daespinozah Feb 20, 2024
36b3ffe
Update package.json
daespinozah Feb 20, 2024
7a30180
name
daespinozah Feb 20, 2024
a4ee30b
Merge branch 'testDeploy' of https://github.com/daespinozah/KT21Calcu…
daespinozah Feb 20, 2024
f14d98d
adjustment to screen sizes
daespinozah Feb 20, 2024
2372403
Merge branch 'DanielEspinoza-testing' of https://github.com/daespinoz…
daespinozah Feb 20, 2024
c618c49
table size
daespinozah Feb 20, 2024
e2216d6
table size
daespinozah Feb 20, 2024
76d3ed5
reduce size, add row highlight to all tables
daespinozah Feb 25, 2024
046d874
Merge branch 'DanielEspinoza-testing' into testDeploy
daespinozah Feb 25, 2024
2c0046a
carousel implemented
daespinozah Feb 25, 2024
806c6cb
Merge branch 'DanielEspinoza-testing' into testDeploy
daespinozah Feb 25, 2024
671a5e1
carousel working for mobile devices
daespinozah Feb 25, 2024
8855e61
fixed inner screen issue
daespinozah Feb 25, 2024
4375be3
Carousel
daespinozah Feb 25, 2024
3fb17e8
screen size
daespinozah Feb 25, 2024
e47403d
still messing with sizes.
daespinozah Feb 25, 2024
b492248
Merge branch 'testDeploy' into DanielEspinoza-testing
daespinozah Feb 25, 2024
3fbbfee
missed a couple
daespinozah Feb 25, 2024
967c84a
fixing package lock
daespinozah Feb 25, 2024
83fdaa8
errant comments
daespinozah Feb 25, 2024
764bc84
changed to ReactSwipeable component
daespinozah Mar 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 37 additions & 21 deletions src/components/ShootSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
Col,
Container,
Row,
Carousel
} from 'react-bootstrap';


Expand Down Expand Up @@ -56,27 +57,42 @@ const ShootSection: React.FC = () => {
Kill Team 2021 Edition, Shooting
<a href='https://www.warhammer-community.com/wp-content/uploads/2022/08/ekD0GG2pTHlYba0G.pdf'>[Lite Rules]</a>
</h4>
<Row className='justify-content-md-center'>
<Col lg={4} md="auto" className='p-0'>
<h2 style={{textAlign:'center'}}>Situation 1</h2>
<ShootSituation/>
</Col>
<Col lg={4} md="auto" className="p-0">
<h2 style={{textAlign:'center'}}>Situation 2</h2>
<ShootSituation/>
</Col>
</Row>
<Row>
<Col style={{textAlign: 'center'}}><Credits/></Col>
</Row>
<Row>
<Col>
Notes:
<ul>
{noteListItems}
</ul>
</Col>
</Row>
<div className='d-none d-md-block'>
<Row className='justify-content-md-center'>
<Col lg={4} md="auto" className='p-0'>
<h2 style={{textAlign:'center'}}>Situation 1</h2>
<ShootSituation/>
</Col>
<Col lg={4} md="auto" className="p-0">
<h2 style={{textAlign:'center'}}>Situation 2</h2>
<ShootSituation/>
</Col>
</Row>
<Row>
<Col style={{textAlign: 'center'}}><Credits/></Col>
</Row>
<Row>
<Col>
Notes:
<ul>
{noteListItems}
</ul>
</Col>
</Row>
</div>
<div className='d-md-block d-sm-none'>
<Carousel touch indicators={false} controls={false}>
<Carousel.Item>
<h2 style={{textAlign:'center'}}>Situation 1</h2>
<ShootSituation/>
</Carousel.Item>
<Carousel.Item>
<h2 style={{textAlign:'center'}}>Situation 2</h2>
<ShootSituation/>
</Carousel.Item>
</Carousel>
</div>

</Container>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/ShootSituation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const ShootSituation: React.FC = () => {
</Col>
</Row>
<Row className='border justify-content-center'>
<Col md = {8} sm = {10}>
<Col>
<ShootOptionControls shootOptions={shootOptions} changeHandler={setShootOptions} />
</Col>
</Row>
Expand Down