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 ++ 17 files changed, 237 insertions(+), 23 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 (limited to 'app') 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) -- cgit v1.2.3