Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
student-tournament-hub
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Schneider Stefan
student-tournament-hub
Commits
2d2e340a
Commit
2d2e340a
authored
1 year ago
by
Bauer Matthis
Browse files
Options
Downloads
Patches
Plain Diff
22.01.2024 - more changes to beerpong
parent
dc3844b2
Branches
Branches containing commit
No related tags found
2 merge requests
!7
Dev in Main Merge
,
!5
Merge feat/raspi into dev for beerpong feature
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sth-frontend/src/features/beerpong/components/Cup.jsx
+1
-1
1 addition, 1 deletion
sth-frontend/src/features/beerpong/components/Cup.jsx
sth-frontend/src/features/beerpong/components/CupFormation.jsx
+31
-13
31 additions, 13 deletions
...rontend/src/features/beerpong/components/CupFormation.jsx
with
32 additions
and
14 deletions
sth-frontend/src/features/beerpong/components/Cup.jsx
+
1
−
1
View file @
2d2e340a
...
...
@@ -2,6 +2,6 @@ import React from 'react';
const
Cup
=
({
state
})
=>
{
return
<
div
className
=
{
`w-1
2
h-1
2
${
state
?
'
bg-green-500
'
:
'
bg-red-500
'
}
rounded-full m-2`
}
/>;
return
<
div
className
=
{
`w-1
6
h-1
6
${
state
?
'
bg-green-500
'
:
'
bg-red-500
'
}
rounded-full m-2`
}
/>;
};
export
default
Cup
;
This diff is collapsed.
Click to expand it.
sth-frontend/src/features/beerpong/components/CupFormation.jsx
+
31
−
13
View file @
2d2e340a
...
...
@@ -141,20 +141,38 @@ const CupFormation = () => {
}
return
(
<
div
className
=
"flex flex-row items-center"
>
<
div
className
=
"flex flex-row"
>
{
renderLeft
()
}
<
div
className
=
"h-screen w-screen flex justify-center items-center bg-deepPurple"
>
<
div
className
=
"flex flex-col items-center"
>
<
h1
className
=
"text-7xl text-darkGray font-bold "
>
Score:
</
h1
>
<
div
className
=
"flex pb-10 "
>
<
div
>
2
</
div
>
<
p
>
:
</
p
>
<
div
>
1
</
div
>
</
div
>
<
div
className
=
"flex flex-row justify-between items-center bg-darkGray rounded-3xl border-lightGray border-2 h-fit"
>
<
div
className
=
"flex flex-row p-5"
>
{
renderLeft
()
}
</
div
>
<
div
className
=
"bg-lightGray h-80 w-1 rounded"
></
div
>
<
div
className
=
{
"
w-96
"
}
>
<
button
onClick
=
{
()
=>
{
setCupStates
({...(
cupStates
),
24
:
true
})
}
}
>
Click
</
button
>
<
button
onClick
=
{
testApi
}
>
Test Api Call
</
button
>
</
div
>
<
div
className
=
"bg-lightGray h-80 w-1 rounded"
></
div
>
<
div
className
=
"flex flex-row-reverse flex-row p-5"
>
{
renderRight
()
}
</
div
>
</
div
>
<
div
className
=
{
"
w-96
"
}
>
<
button
onClick
=
{
()
=>
{
setCupStates
({...(
cupStates
),
24
:
true
})
}
}
>
Click
</
button
>
<
button
onClick
=
{
testApi
}
>
Test Api Call
</
button
>
</
div
>
<
div
className
=
"flex flex-row-reverse flex-row"
>
{
renderRight
()
}
</
div
>
</
div
>
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment