Skip to content

Commit 3725999

Browse files
authored
Merge pull request #39 from coderKrysio/dev-1
updated responsiveness
2 parents ee19126 + 4492417 commit 3725999

File tree

3 files changed

+11
-16
lines changed

3 files changed

+11
-16
lines changed

components/ListIntervals.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const ListIntervals = ({ addInterval, removeInterval, setFormData }: any) => {
3838

3939
return (
4040
<>
41-
{intervals.map((currentValue: number[], index: number) => (
41+
{intervals.map((_currentValue: number[], index: number) => (
4242
<div
4343
className="w-full flex flex-col justify-center items-center mb-4"
4444
key={index}
@@ -70,10 +70,10 @@ const ListIntervals = ({ addInterval, removeInterval, setFormData }: any) => {
7070
/>
7171

7272
<div
73-
className='flex max-[500px]:absolute max-[500px]:-bottom-full'
73+
className='flex max-[500px]:absolute gap-[15px] max-[500px]:-bottom-full'
7474
>
7575
<button
76-
className="w-[35px] h-[35px] rounded-[25px] ml-[20px]"
76+
className="w-[35px] h-[35px] rounded-[25px]"
7777
onClick={() => addInterval()}
7878
>
7979
<Image
@@ -84,9 +84,9 @@ const ListIntervals = ({ addInterval, removeInterval, setFormData }: any) => {
8484
/>
8585
</button>
8686

87-
{intervals.length > 1 ? (
87+
{intervals.length > 1 && (
8888
<button
89-
className="w-[35px] h-[35px] rounded-[25px] ml-[15px]"
89+
className="w-[35px] h-[35px] rounded-[25px]"
9090
onClick={() => removeInterval()}
9191
>
9292
<Image
@@ -96,8 +96,6 @@ const ListIntervals = ({ addInterval, removeInterval, setFormData }: any) => {
9696
alt="remove"
9797
/>
9898
</button>
99-
) : (
100-
<button className="w-[35px] h-[35px] rounded-[25px] ml-[15px] z-[-1]"></button>
10199
)}
102100
</div>
103101
</div>

components/Results.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const Results = ({ roomCode }: RoomCode) => {
2121
<Navbar />
2222

2323
<div
24-
className='w-full px-10 flex justify-between items-center my-[30px]'
24+
className='w-full px-10 flex justify-between items-center my-[30px] max-[500px]:flex-col max-[500px]:gap-[30px]'
2525
>
2626
<Link
2727
className='text-2xl font-medium tracking-wide py-2 px-5 border-2 border-white rounded-lg outline outlint-2 outline-transparent hover:outline-white'
@@ -33,24 +33,21 @@ const Results = ({ roomCode }: RoomCode) => {
3333
>Timer - [ 02:00:00 ]</p>
3434
</div>
3535

36-
<h2 className="text-5xl font-semibold tracking-wide">
36+
<h2 className="text-5xl text-center font-semibold tracking-wide m-2">
3737
Union Free Interval
3838
</h2>
3939

40-
<p className="text-2xl font-medium tracking-wide my-3 text-[#d4d4d4]">
40+
<p className="text-2xl text-center font-medium tracking-wide mx-2 my-3 text-[#d4d4d4]">
4141
Room Code: {roomCode}
4242
</p>
4343

4444
<p className="text-3xl text-[#48d399] my-2">
4545
14:00 - 15:00 <br /> 18:00 - 23:00
4646
</p>
4747

48+
<div className='px-4 flex items-center justify-start w-full overflow-auto'>
4849
<Timeline />
49-
50-
<button
51-
className='min-[1470px]:hidden text-2xl tracking-wide font-medium py-2 px-5 border-2 border-white rounded-lg outline outline-2 outline-transparent hover:outline-white'
52-
53-
>Show Timeline</button>
50+
</div>
5451

5552
<p className="text-3xl text-[#d4d4d4] font-medium pb-3 my-4">
5653
Members Info

components/Timeline.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const Timeline = () => {
3636
}
3737

3838
return (
39-
<div className="my-[50px] flex p-0 text-center max-[1470px]:scale-[0.253]">
39+
<div className="mx-auto my-[40px] flex text-center px-2">
4040
{timeline.map((time: number, index: number) => (
4141
<div
4242
key={index}

0 commit comments

Comments
 (0)