Skip to content

Commit

Permalink
feat(wod): add wodapalooza online challenge 2 2019
Browse files Browse the repository at this point in the history
  • Loading branch information
believer committed Aug 30, 2019
1 parent 87fa5c4 commit bfb7a21
Show file tree
Hide file tree
Showing 4 changed files with 129 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/components/Pill.re
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ let make =
let className =
Css.(
merge([
"inline-block rounded-full px-3 py-1 text-sm font-semibold",
"inline-block rounded-full px-3 py-1 text-sm font-semibold text-center",
bg,
className->Cn.unpack,
{
Expand Down
17 changes: 13 additions & 4 deletions src/components/Workout.re
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ let make = (~lastVisit, ~wod: Wod.t) => {
| Some(name) => React.string(name)
| None => React.string(WodType.toString(wod.wodType))
}}
{switch (wod.timeCap, wod.wodType) {
| (Some(t), `AMRAP) =>
{switch (wod.timeCap, wod.wodType, wod.name) {
| (Some(t), `AMRAP, None) =>
" " ++ t->string_of_int ++ " min" |> React.string
| (Some(_), _)
| (None, _) => React.null
| (Some(_), _, _)
| (None, _, _) => React.null
}}
</div>
{switch (wod.category) {
Expand Down Expand Up @@ -100,6 +100,15 @@ let make = (~lastVisit, ~wod: Wod.t) => {
</div>
| None => React.null
}}
{switch (wod.timeCap, wod.wodType, wod.name) {
| (Some(t), `AMRAP, Some(_)) =>
<div className="mt-4 text-gray-700 text-sm">
<span className="font-semibold"> {React.string("AMRAP:")} </span>
{" " ++ t->string_of_int ++ " min" |> React.string}
</div>
| (Some(_), _, _)
| (None, _, _) => React.null
}}
{switch (wod.buyInOut) {
| Some((Some(buyIn), _)) =>
<div className="mt-4">
Expand Down
22 changes: 16 additions & 6 deletions src/models/Exercise.re
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
type t = [
| `AirSquat
| `BackwardLunge
| `BarFacingBurpee
| `BarMuscleUp
| `BentOverRow
| `BoxJump
| `BoxStepUp
| `Burpee
| `BurpeeBoxOver
| `BarFacingBurpee
| `BentOverRow
| `C2B
| `Clean
| `CleanAndJerk
| `CleanHangPower
Expand All @@ -20,15 +22,18 @@ type t = [
| `Lunge
| `OverheadSquat
| `PullUp
| `PullUpJumping
| `PushJerk
| `PushPress
| `PushUp
| `Rest
| `RingRow
| `Row
| `Run
| `RussianTwist
| `SingleUnder
| `SkiErg
| `SnatchAlt
| `SnatchHangPower
| `SnatchPower
| `Squat
Expand All @@ -44,34 +49,39 @@ let toString =
fun
| `AirSquat => "air squat"
| `BackwardLunge => "backward lunge"
| `BarMuscleUp => "bar muscle-ups"
| `BentOverRow => "bent-over row"
| `BoxJump => "box jumps"
| `BoxStepUp => "box step-ups"
| `Burpee => "burpees"
| `BurpeeBoxOver => "burpee box overs"
| `BarFacingBurpee => "bar-facing burpees"
| `C2B => "C2B pull-ups"
| `Clean => "clean"
| `CleanAndJerk => "clean and jerk"
| `CleanHangPower => "hang power cleans"
| `CleanPower => "power cleans"
| `Deadlift => "deadlifts"
| `DevilPress => "devil press"
| `DevilPress => "devil presses"
| `DoubleUnder => "double unders"
| `GroundToOverhead => "ground to overhead"
| `HangingKneeRaise => "hanging knee raises"
| `KBS => "kettlebell swing"
| `Lunge => "lunge"
| `OverheadSquat => "overhead squats"
| `PullUp => "pull-up"
| `PushJerk => "push jerk"
| `PushPress => "push press"
| `PullUp => "pull-ups"
| `PullUpJumping => "jumping pull-ups"
| `PushJerk => "push jerks"
| `PushPress => "push presses"
| `PushUp => "push-up"
| `Rest => "rest"
| `RingRow => "ring rows"
| `Row => "row"
| `Run => "run"
| `RussianTwist => "russian twist"
| `SingleUnder => "single unders"
| `SkiErg => "SkiErg"
| `SnatchAlt => "alt snatches"
| `SnatchHangPower => "hang power snatches"
| `SnatchPower => "power snatch"
| `Squat => "squat"
Expand Down
101 changes: 99 additions & 2 deletions src/models/Wod.re
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ This Firefighter Hero WOD is dedicated to Keithroy Maynard, FDNY, Engine 33, who
id: "wzaoc191",
createdAt: "2019-08-27T16:51:40.140Z",
name: Some("WZAOC 1"),
wodType: `EMOM(23),
wodType: `AMRAP,
category: Some(`Wodapalooza(2019)),
scaledParts:
Some([
Expand Down Expand Up @@ -929,7 +929,7 @@ This Firefighter Hero WOD is dedicated to Keithroy Maynard, FDNY, Engine 33, who
Add 3 repetitions to each of the barbell movements (3/3/30, 6/6/30, 9/9/30, 12/12/30... etc..) at the conclusion of each round.<Paste>
|j},
),
timeCap: None,
timeCap: Some(9),
rounds: None,
repScheme: None,
parts: [
Expand All @@ -953,4 +953,101 @@ Add 3 repetitions to each of the barbell movements (3/3/30, 6/6/30, 9/9/30, 12/1
},
],
},
{
id: "wzaoc192",
createdAt: "2019-08-30T12:18:15.258Z",
name: Some("WZAOC 2"),
wodType: `AMRAP,
category: Some(`Wodapalooza(2019)),
scaledParts:
Some([
{
reps: `Num(40),
weight: (Some(`kg(15)), Some(`kg(10))),
exercise: `SnatchAlt,
equipment: Some(`Dumbbell),
},
{
reps: `Num(40),
weight: (Some(`bodyweight), Some(`bodyweight)),
exercise: `PullUpJumping,
equipment: None,
},
{
reps: `Num(30),
weight: (Some(`kg(15)), Some(`kg(10))),
exercise: `Burpee,
equipment: Some(`Dumbbell),
},
{
reps: `Num(30),
weight: (Some(`bodyweight), Some(`bodyweight)),
exercise: `RingRow,
equipment: None,
},
{
reps: `Num(20),
weight: (Some(`kg(15)), Some(`kg(10))),
exercise: `DevilPress,
equipment: None,
},
{
reps: `Num(20),
weight: (Some(`bodyweight), Some(`bodyweight)),
exercise: `PullUp,
equipment: None,
},
]),
buyInOut: None,
externalLink:
Some((
"Wodapalooza",
"https://wodapalooza.com/workout/2019-2020-indy-oc-wod-2/",
)),
description: None,
timeCap: Some(16),
rounds: None,
repScheme: None,
parts: [
{
reps: `Num(40),
// TODO(@believer) - kg float
weight: (Some(`kg(22)), Some(`kg(15))),
exercise: `SnatchAlt,
equipment: Some(`Dumbbell),
},
{
reps: `Num(40),
weight: (Some(`bodyweight), Some(`bodyweight)),
exercise: `PullUp,
equipment: None,
},
{
reps: `Num(30),
// TODO(@believer) - kg float
weight: (Some(`kg(22)), Some(`kg(15))),
exercise: `Burpee,
equipment: Some(`Dumbbell),
},
{
reps: `Num(30),
weight: (Some(`bodyweight), Some(`bodyweight)),
exercise: `C2B,
equipment: None,
},
{
reps: `Num(20),
// TODO(@believer) - kg float
weight: (Some(`kg(22)), Some(`kg(15))),
exercise: `DevilPress,
equipment: None,
},
{
reps: `Num(20),
weight: (Some(`bodyweight), Some(`bodyweight)),
exercise: `BarMuscleUp,
equipment: None,
},
],
},
];

0 comments on commit bfb7a21

Please sign in to comment.