diff --git a/lib/quadquizaminos_web/live/contest_prizes.ex b/lib/quadquizaminos_web/live/contest_prizes.ex index aca79545..0be2359e 100644 --- a/lib/quadquizaminos_web/live/contest_prizes.ex +++ b/lib/quadquizaminos_web/live/contest_prizes.ex @@ -3,62 +3,68 @@ defmodule QuadquizaminosWeb.ContestPrizes do alias QuadquizaminosWeb.Router.Helpers, as: Routes def render(assigns) do + prices = [ + %{ + icon: "trophy", + heading: "High Score", + content: + "One lucky person will win a $25 MyRewards Gift Card. The prize goes to ELIGIBLE person with the highest Score DURING THE CONTEST (see rules).", + price: "25" + }, + %{ + icon: "th", + heading: "Most Bricks", + content: + " One lucky person will win a $25 MyRewards Gift Card. The prize goes to ELIGIBLE person with the the most bricks in a game DURING THE CONTEST (see rules). ", + price: "25" + }, + %{ + icon: "question", + heading: "Most Questions", + content: + " One lucky person will win a $25 MyRewards Gift Card. The prize goes to ELIGIBLE person who answers the most trivia questions in the game DURING THE CONTEST (see rules). ", + price: "25" + }, + %{ + icon: "gift", + heading: "???????", + content: """ + One lucky person will win a + $25 MyRewards Gift Card. + The prize goes to ELIGIBLE person + who meets a suprise criteria + DURING THE CONTEST (see rules). + In the past, the surpise criteria + was the first questions in the lecture Q&A. + Another time it was for finding a new bug + in the game. + Or it has been for the best question in the Q&A. + Or it might be used when there is a tie. + Or it could even be for the most creative handle. + Or it might be some other criteria. + """, + price: "25" + } + ] + ~L""" -

Contest Prizes

-

- This is the prize page for the - AT&T Software Symposium Security Workshop - QuadBlockQuiz contest. - See +

Contest Prizes

+

+ This is the prize page for the AT&T Software Symposium Security Workshop QuadBlockQuiz contest. See > Contest Rules for more information on contest rules.

-

$25 MyRewards for High Score

-

- One lucky person will win a - $25 MyRewards Gift Card. - The prize goes to ELIGIBLE person - with the highest Score - DURING THE CONTEST (see rules). -

- -

$25 MyRewards for Most Bricks

-

- One lucky person will win a - $25 MyRewards Gift Card. - The prize goes to ELIGIBLE person - with the the most bricks in a game - DURING THE CONTEST (see rules). -

- -

$25 MyRewards for Most Questions

-

- One lucky person will win a - $25 MyRewards Gift Card. - The prize goes to ELIGIBLE person - who answers the most trivia questions in the game - DURING THE CONTEST (see rules). -

- -

$25 MyRewards for ????????

-

- One lucky person will win a - $25 MyRewards Gift Card. - The prize goes to ELIGIBLE person - who meets a suprise criteria - DURING THE CONTEST (see rules). - In the past, the surpise criteria - was the first questions in the lecture Q&A. - Another time it was for finding a new bug - in the game. - Or it has been for the best question in the Q&A. - Or it might be used when there is a tie. - Or it could even be for the most creative handle. - Or it might be some other criteria. -

- - +
+ <%= for price <- prices do %> +
+ +

<%= price.heading %>

+

<%= price.content %>

+ $ <%=price.price %> +
+ <% end %> +
""" end end diff --git a/lib/quadquizaminos_web/router.ex b/lib/quadquizaminos_web/router.ex index 6192fbef..7eb5ee4d 100644 --- a/lib/quadquizaminos_web/router.ex +++ b/lib/quadquizaminos_web/router.ex @@ -46,7 +46,6 @@ defmodule QuadquizaminosWeb.Router do live "/contestboard", ContestboardLive live "/contests/:id", ContestsLive, :show - live "/contest_prizes", ContestPrizes get "/anonymous", SessionController, :anonymous post "/anonymous", SessionController, :anonymous resources "/sessions", SessionController, only: [:new, :create] @@ -73,6 +72,8 @@ defmodule QuadquizaminosWeb.Router do live "/contest_rules", ContestRules live "/leaderboard", LeaderboardLive live "/contests", ContestsLive, :index + live "/contest-prizes", ContestPrizes + end scope "/admin", QuadquizaminosWeb, as: :admin do diff --git a/lib/quadquizaminos_web/templates/layout/tailwind.html.leex b/lib/quadquizaminos_web/templates/layout/tailwind.html.leex index 36016876..5bcc8561 100644 --- a/lib/quadquizaminos_web/templates/layout/tailwind.html.leex +++ b/lib/quadquizaminos_web/templates/layout/tailwind.html.leex @@ -32,24 +32,24 @@ <%= @inner_content %> -
-
+ diff --git a/priv/static/images/google2.0.0.jpg b/priv/static/images/google2.0.0.jpg deleted file mode 100644 index 73a0d71c..00000000 Binary files a/priv/static/images/google2.0.0.jpg and /dev/null differ diff --git a/priv/static/images/google2.0.0.png b/priv/static/images/google2.0.0.png new file mode 100644 index 00000000..a8c7e9c2 Binary files /dev/null and b/priv/static/images/google2.0.0.png differ diff --git a/priv/static/images/groxio.png b/priv/static/images/groxio.png index 7c311d93..b97a4e69 100644 Binary files a/priv/static/images/groxio.png and b/priv/static/images/groxio.png differ diff --git a/priv/static/images/podiilogo.png b/priv/static/images/podiilogo.png index 9341535e..df6de0d1 100644 Binary files a/priv/static/images/podiilogo.png and b/priv/static/images/podiilogo.png differ