From 8d018d996c1eddb882dc64ebbd228bb0135944f3 Mon Sep 17 00:00:00 2001 From: sadbeast Date: Sun, 23 Jun 2024 15:36:59 -0700 Subject: wtf --- src/views/about.mustache | 36 ++++++++++++++++++++++++ src/views/draft.mustache | 27 ++++++++++++++++++ src/views/index.mustache | 46 +++++++++++++++++++++++++++++++ src/views/layout.mustache | 70 +++++++++++++++++++++++++++++++++++++++++++++++ src/views/league.mustache | 36 ++++++++++++++++++++++++ src/views/pick.mustache | 4 +++ 6 files changed, 219 insertions(+) create mode 100644 src/views/about.mustache create mode 100644 src/views/draft.mustache create mode 100644 src/views/index.mustache create mode 100644 src/views/layout.mustache create mode 100644 src/views/league.mustache create mode 100644 src/views/pick.mustache (limited to 'src/views') diff --git a/src/views/about.mustache b/src/views/about.mustache new file mode 100644 index 0000000..f087c0f --- /dev/null +++ b/src/views/about.mustache @@ -0,0 +1,36 @@ +

Team Draft is a 2-person sports team fantasy scoring league, where you draft sports teams and score points throughout the season based on wins and playoff appearances. The idea was taken from Mina Kimes's yearly NFL Team Draft with Mike Golic, Jr. on the Mina Kimes Show podcast.

+

Scoring

+

NFL

+ + + + + + + + + + + + + + + + + + + + + + + + +
When your team:You score:
Wins + 1
Makes the playoffs + 5
Makes the divisional round + 5
Makes the conference championship game + 10
Wins the Super Bowl + 5
+

Who made this?

+

This was made by me, and it's open source.

+

If you have any issues, reach out at sadbeast@sadbeast.com.

diff --git a/src/views/draft.mustache b/src/views/draft.mustache new file mode 100644 index 0000000..a7e52e8 --- /dev/null +++ b/src/views/draft.mustache @@ -0,0 +1,27 @@ +
+ {{user.id}} + +{{#draft_info}} +

{{league}}

+
+

{{message}}

+ {{#can_pick}}

Round Time Remaining: {{round_time_remaining}}

{{/can_pick}} +
+{{/draft_info}} + + + + + + + + + + {{#teams}} + + {{> pick}} + + {{/teams}} + +
TeamDivisionRank
+
diff --git a/src/views/index.mustache b/src/views/index.mustache new file mode 100644 index 0000000..29f8ed9 --- /dev/null +++ b/src/views/index.mustache @@ -0,0 +1,46 @@ +
+
+

Welcome! Team Draft is a 2-person fantasy sports league, where you draft entire sports teams - not players - and score points throughout the season based on wins and playoff appearances. The idea was taken from the Mina Kimes Show's yearly NFL Team Draft.

+
    +
  • Create a live draft to pick your teams!
  • +
  • Manage players' teams manually to support trades
  • +
  • Keeps track of game scores automatically
  • +
+

Create a league now, and schedule a live draft!

+
+
+
+
2014 NFL Season
+
+
+ +
+
+ + +
+
+ + +
+ + + Coming soon... +
+
+
+
diff --git a/src/views/layout.mustache b/src/views/layout.mustache new file mode 100644 index 0000000..614b150 --- /dev/null +++ b/src/views/layout.mustache @@ -0,0 +1,70 @@ + + + + + + + + + + + + + Team Draft{{#title}} - {{.}} {{/title}} + + + +
+ +
+ {{#content}} {{{.}}} {{/content}} +
+
+ + diff --git a/src/views/league.mustache b/src/views/league.mustache new file mode 100644 index 0000000..46af60a --- /dev/null +++ b/src/views/league.mustache @@ -0,0 +1,36 @@ +

{{league.name}}

+
+ {{#player_scores}} +
{{player}} - {{score}}
+ {{/player_scores}} +
+
+ + + + + + + + + + {{#scores}} + + + + + + {{/scores}} + +
TeamPlayerTotal
{{team}}{{player}} + {{total}} +

+ Wins: {{win}} + {{#playoffs}}, Made the Playoffs: {{.}}{{/playoffs}} + {{#divisional}}, Made the Divisional Round: {{.}}{{/divisional}} + {{#conference}}, Made the Conference Championship: {{.}}{{/conference}} + {{#champion}}, Superbowl Winner: {{.}}{{/champion}} + +

+
+
diff --git a/src/views/pick.mustache b/src/views/pick.mustache new file mode 100644 index 0000000..d045f6f --- /dev/null +++ b/src/views/pick.mustache @@ -0,0 +1,4 @@ + {{name}} + {{division}} + {{rank}} + {{pick_user}}{{^pick_user}}{{#draft_info}}{{#can_pick}}{{/can_pick}}{{/draft_info}}{{/pick_user}} -- cgit v1.2.3