From d04d732a084f07ca88fdfa82653bdfd2d6798374 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sat, 24 Jan 2015 20:27:08 +0100 Subject: First website mockup --- app/controllers/Application.scala | 10 +- app/controllers/Console.scala | 12 + app/views/fragments/accountInfos.scala.html | 14 + app/views/fragments/ebeLogo.scala.html | 1 + app/views/fragments/ebeMainActions.scala.html | 13 + app/views/fragments/ebeSlogan.scala.html | 1 + app/views/fragments/pepalLogo.scala.html | 1 + app/views/fragments/pepalMainActions.scala.html | 13 + app/views/fragments/pepalSlogan.scala.html | 1 + app/views/index.scala.html | 7 - app/views/main.scala.html | 15 - app/views/pages/ebeHomepage.scala.html | 47 ++ app/views/pages/index.scala.html | 3 + app/views/pages/pepalHomepage.scala.html | 47 ++ app/views/templates/ebe.scala.html | 3 + app/views/templates/main.scala.html | 69 +++ app/views/templates/pepal.scala.html | 3 + conf/routes | 9 +- public/fonts/FontAwesome.otf | Bin 0 -> 93888 bytes public/fonts/fontawesome-webfont.eot | Bin 0 -> 60767 bytes public/fonts/fontawesome-webfont.svg | 565 ++++++++++++++++++++++++ public/fonts/fontawesome-webfont.ttf | Bin 0 -> 122092 bytes public/fonts/fontawesome-webfont.woff | Bin 0 -> 71508 bytes public/fonts/fontawesome-webfont.woff2 | Bin 0 -> 56780 bytes public/javascripts/cheat.js | 29 ++ public/javascripts/hello.js | 3 - public/javascripts/konami.js | 105 +++++ public/medias/sims2-university-theme.ogg | Bin 0 -> 3328802 bytes public/stylesheets/ebe.css | 38 ++ public/stylesheets/font-awesome.min.css | 4 + public/stylesheets/grids-responsive-min.css | 7 + public/stylesheets/konami.css | 12 + public/stylesheets/main.css | 128 ++++++ public/stylesheets/pepal.css | 22 + public/stylesheets/pure-min.css | 11 + 35 files changed, 1165 insertions(+), 28 deletions(-) create mode 100644 app/controllers/Console.scala create mode 100644 app/views/fragments/accountInfos.scala.html create mode 100644 app/views/fragments/ebeLogo.scala.html create mode 100644 app/views/fragments/ebeMainActions.scala.html create mode 100644 app/views/fragments/ebeSlogan.scala.html create mode 100644 app/views/fragments/pepalLogo.scala.html create mode 100644 app/views/fragments/pepalMainActions.scala.html create mode 100644 app/views/fragments/pepalSlogan.scala.html delete mode 100644 app/views/index.scala.html delete mode 100644 app/views/main.scala.html create mode 100644 app/views/pages/ebeHomepage.scala.html create mode 100644 app/views/pages/index.scala.html create mode 100644 app/views/pages/pepalHomepage.scala.html create mode 100644 app/views/templates/ebe.scala.html create mode 100644 app/views/templates/main.scala.html create mode 100644 app/views/templates/pepal.scala.html create mode 100644 public/fonts/FontAwesome.otf create mode 100644 public/fonts/fontawesome-webfont.eot create mode 100644 public/fonts/fontawesome-webfont.svg create mode 100644 public/fonts/fontawesome-webfont.ttf create mode 100644 public/fonts/fontawesome-webfont.woff create mode 100644 public/fonts/fontawesome-webfont.woff2 create mode 100644 public/javascripts/cheat.js delete mode 100644 public/javascripts/hello.js create mode 100644 public/javascripts/konami.js create mode 100644 public/medias/sims2-university-theme.ogg create mode 100644 public/stylesheets/ebe.css create mode 100644 public/stylesheets/font-awesome.min.css create mode 100644 public/stylesheets/grids-responsive-min.css create mode 100644 public/stylesheets/konami.css create mode 100644 public/stylesheets/pepal.css create mode 100644 public/stylesheets/pure-min.css diff --git a/app/controllers/Application.scala b/app/controllers/Application.scala index 7cd798f..43b579e 100644 --- a/app/controllers/Application.scala +++ b/app/controllers/Application.scala @@ -6,7 +6,15 @@ import play.api.mvc._ object Application extends Controller { def index = Action { - Ok(views.html.index("Your new application is ready.")) + Ok(views.html.pages.index("Your new application is ready.")) + } + + def ebe = Action { + Ok(views.html.pages.ebeHomepage()) + } + + def pepal = Action { + Ok(views.html.pages.pepalHomepage()) } } \ No newline at end of file diff --git a/app/controllers/Console.scala b/app/controllers/Console.scala new file mode 100644 index 0000000..93bc5d5 --- /dev/null +++ b/app/controllers/Console.scala @@ -0,0 +1,12 @@ +package controllers + +import play.api._ +import play.api.mvc._ + +object Console extends Controller { + + def console = Action { + Redirect("/") + } + +} diff --git a/app/views/fragments/accountInfos.scala.html b/app/views/fragments/accountInfos.scala.html new file mode 100644 index 0000000..711fb40 --- /dev/null +++ b/app/views/fragments/accountInfos.scala.html @@ -0,0 +1,14 @@ + + + Logout + + + + + -400 000 € + + + + + Mr. Kornada + diff --git a/app/views/fragments/ebeLogo.scala.html b/app/views/fragments/ebeLogo.scala.html new file mode 100644 index 0000000..f2b552a --- /dev/null +++ b/app/views/fragments/ebeLogo.scala.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/app/views/fragments/ebeMainActions.scala.html b/app/views/fragments/ebeMainActions.scala.html new file mode 100644 index 0000000..46faeb6 --- /dev/null +++ b/app/views/fragments/ebeMainActions.scala.html @@ -0,0 +1,13 @@ +
+ + + Sell + +
+ +
+ + + Buy + +
diff --git a/app/views/fragments/ebeSlogan.scala.html b/app/views/fragments/ebeSlogan.scala.html new file mode 100644 index 0000000..c0b5332 --- /dev/null +++ b/app/views/fragments/ebeSlogan.scala.html @@ -0,0 +1 @@ +Le marketplace \ No newline at end of file diff --git a/app/views/fragments/pepalLogo.scala.html b/app/views/fragments/pepalLogo.scala.html new file mode 100644 index 0000000..a4b75ae --- /dev/null +++ b/app/views/fragments/pepalLogo.scala.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/app/views/fragments/pepalMainActions.scala.html b/app/views/fragments/pepalMainActions.scala.html new file mode 100644 index 0000000..0e614a6 --- /dev/null +++ b/app/views/fragments/pepalMainActions.scala.html @@ -0,0 +1,13 @@ +
+ + + Deposit + +
+ +
+ + + Send money + +
diff --git a/app/views/fragments/pepalSlogan.scala.html b/app/views/fragments/pepalSlogan.scala.html new file mode 100644 index 0000000..a6d6e69 --- /dev/null +++ b/app/views/fragments/pepalSlogan.scala.html @@ -0,0 +1 @@ +Le money \ No newline at end of file diff --git a/app/views/index.scala.html b/app/views/index.scala.html deleted file mode 100644 index d6a6b22..0000000 --- a/app/views/index.scala.html +++ /dev/null @@ -1,7 +0,0 @@ -@(message: String) - -@main("Welcome to Play") { - - @play20.welcome(message) - -} diff --git a/app/views/main.scala.html b/app/views/main.scala.html deleted file mode 100644 index 5025aa5..0000000 --- a/app/views/main.scala.html +++ /dev/null @@ -1,15 +0,0 @@ -@(title: String)(content: Html) - - - - - - @title - - - - - - @content - - diff --git a/app/views/pages/ebeHomepage.scala.html b/app/views/pages/ebeHomepage.scala.html new file mode 100644 index 0000000..bf11462 --- /dev/null +++ b/app/views/pages/ebeHomepage.scala.html @@ -0,0 +1,47 @@ +@templates.ebe("eBé") { + +
+ @fragments.ebeMainActions() +
+ +
+ +
+
+
+

Get started today

+

+ With @fragments.ebeLogo(), the leading online auction platform, buy or sell items in a few clicks! +

+
+
+ +
+
+

Buy and sell with confidence

+

+ @fragments.ebeLogo() guarantees all transactions for both buyers and sellers. +

+
+
+ +
+
+

24/7 customer support

+

+ Any question? Just ask us! Our support team is committed to help you. +

+
+
+ +
+
+

Secure transactions

+

+ With @fragments.ebeLogo(), you are not required to give any personal information to any buyer or seller. +

+
+
+
+ +} diff --git a/app/views/pages/index.scala.html b/app/views/pages/index.scala.html new file mode 100644 index 0000000..b6e0029 --- /dev/null +++ b/app/views/pages/index.scala.html @@ -0,0 +1,3 @@ +@(message: String) + +@message diff --git a/app/views/pages/pepalHomepage.scala.html b/app/views/pages/pepalHomepage.scala.html new file mode 100644 index 0000000..6eb7070 --- /dev/null +++ b/app/views/pages/pepalHomepage.scala.html @@ -0,0 +1,47 @@ +@templates.pepal("PéPal") { + +
+ @fragments.pepalMainActions() +
+ +
+ +
+
+
+

Get started today

+

+ With @fragments.pepalLogo(), the leading online payment solution, buy or sell items on the web in a few clicks! +

+
+
+ +
+
+

Send money to friends

+

+ Sending money to your friends or your family has never been easier. +

+
+
+ +
+
+

24/7 customer support

+

+ Any question? Just ask us! Our support team is committed to help you. +

+
+
+ +
+
+

Secure transactions

+

+ With @fragments.pepalLogo(), you are not required to give any personal information to any buyer or seller. +

+
+
+
+ +} diff --git a/app/views/templates/ebe.scala.html b/app/views/templates/ebe.scala.html new file mode 100644 index 0000000..dbc1a88 --- /dev/null +++ b/app/views/templates/ebe.scala.html @@ -0,0 +1,3 @@ +@(title: String)(content: Html) + +@templates.main{@fragments.ebeLogo()}{@fragments.ebeSlogan()}(title)(content) diff --git a/app/views/templates/main.scala.html b/app/views/templates/main.scala.html new file mode 100644 index 0000000..dadfc03 --- /dev/null +++ b/app/views/templates/main.scala.html @@ -0,0 +1,69 @@ +@(logo: Html)(slogan: Html)(title: String)(content: Html) + + + + + + + + + + + @title + + + + + + + + + + + + + + + + + + + +
+ This is a dummy scholar project! Do not use for real serious business stuff! +
+ +
+ +
+
+ + + +
+
+ +
@content
+ + + +
+ + + + diff --git a/app/views/templates/pepal.scala.html b/app/views/templates/pepal.scala.html new file mode 100644 index 0000000..e71482d --- /dev/null +++ b/app/views/templates/pepal.scala.html @@ -0,0 +1,3 @@ +@(title: String)(content: Html) + +@templates.main{@fragments.pepalLogo()}{@fragments.pepalSlogan()}(title)(content) diff --git a/conf/routes b/conf/routes index 20fd042..7adf702 100644 --- a/conf/routes +++ b/conf/routes @@ -3,7 +3,12 @@ # ~~~~ # Home page -GET / controllers.Application.index +GET / controllers.Application.index + +GET /ebe controllers.Application.ebe +GET /pepal controllers.Application.pepal + +POST /console controllers.Console.console # Map static resources from the /public folder to the /assets URL path -GET /assets/*file controllers.Assets.at(path="/public", file) +GET /assets/*file controllers.Assets.at(path="/public", file) diff --git a/public/fonts/FontAwesome.otf b/public/fonts/FontAwesome.otf new file mode 100644 index 0000000..f7936cc Binary files /dev/null and b/public/fonts/FontAwesome.otf differ diff --git a/public/fonts/fontawesome-webfont.eot b/public/fonts/fontawesome-webfont.eot new file mode 100644 index 0000000..33b2bb8 Binary files /dev/null and b/public/fonts/fontawesome-webfont.eot differ diff --git a/public/fonts/fontawesome-webfont.svg b/public/fonts/fontawesome-webfont.svg new file mode 100644 index 0000000..1ee89d4 --- /dev/null +++ b/public/fonts/fontawesome-webfont.svg @@ -0,0 +1,565 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +