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 1 commit
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
Next Next commit
working on accordions and flexing correctly
  • Loading branch information
d-espinozahernandez committed Feb 17, 2024
commit 4067362e20f444398ffa2648600d7617802af827
29 changes: 29 additions & 0 deletions src/components/ShootSection.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
.accordion{
width: 90%;
border: 3px black;
margin-left: auto;
margin-right: auto;
display: flex;
flex-wrap: wrap;

}
.accordion-header{
width: 98%;
border: 3px black;
}

.accordion-item{
width: 50%;
min-width: 300px;
}
.accordion-button{
width: 100%;
margin-left: auto;
margin-right: auto;
text-align: center;
}
h4{
width: 100%;
text-align: center;
margin: auto;
}
37 changes: 22 additions & 15 deletions src/components/ShootSection.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import React from 'react';
import {
Accordion,
AccordionItem,
Col,
Container,
Row,
} from 'react-bootstrap';

import "src/components/ShootSection.css"
import ShootOptions from 'src/ShootOptions';
import AttackerControls from "src/components/AttackerControls";
import DefenderControls from "src/components/DefenderControls";
Expand Down Expand Up @@ -51,35 +54,39 @@ const ShootSection: React.FC = () => {
].map(note => <li key={note.name}><b>{note.name}</b>: {note.description}</li>);

return (
<Container style={{width: 'fit-content'}}>
<Row>
<div>
<h4>
Kill Team 2021 Edition, Shooting
<a href='https://www.warhammer-community.com/wp-content/uploads/2022/08/ekD0GG2pTHlYba0G.pdf'>[Lite Rules]</a>
</Row>
<Row>
<Col className='border p-0'>
Situation1
<ShootSituation/>
</Col>
<Col className='border p-0'>
Situation2
<ShootSituation/>
</Col>
</Row>
</h4>
<Accordion defaultActiveKey="0" alwaysOpen>
<Accordion.Item eventKey='0'>
<Accordion.Header className='ShootSection'>Situation 1</Accordion.Header>
<Accordion.Body className='ShootSection'>
<ShootSituation/>
</Accordion.Body>
</Accordion.Item>
<Accordion.Item eventKey='1'>
<Accordion.Header>Situation 2</Accordion.Header>
<Accordion.Body>
<ShootSituation/>
</Accordion.Body>
</Accordion.Item>
</Accordion>
<Row>
<Col className={Util.centerHoriz + ' border'} style={{fontSize: '11px'}}>
<Credits/>
</Col>
</Row>
<Row style={{width: '800px'}}>
<Row style={{width: '50%'}}>
<Col className='border' style={{fontSize: '11px'}}>
Notes:
<ul>
{noteListItems}
</ul>
</Col>
</Row>
</Container>
</div>
);
};

Expand Down