Permalink
Browse files

Add CSS Layout from sixshootermedia.com

  • Loading branch information...
ccordenier committed Sep 21, 2010
1 parent 37a04bc commit 16e7732db87b1e5e72ef21186a2eb58c2e71255d
Showing with 250 additions and 685 deletions.
  1. +3 −0 NOTICE.txt
  2. +1 −1 src/main/java/com/tap5/hotelbooking/components/Layout.java
  3. +1 −1 src/main/java/com/tap5/hotelbooking/services/{AppModule.java → HotelBookingModule.java}
  4. +41 −65 src/main/resources/com/tap5/hotelbooking/components/Layout.tml
  5. +0 −2 src/main/webapp/Index.tml
  6. +2 −1 src/main/webapp/WEB-INF/{app.properties → hotelBooking.properties}
  7. +3 −3 src/main/webapp/WEB-INF/web.xml
  8. BIN src/main/webapp/layout/images/img01.jpg
  9. BIN src/main/webapp/layout/images/img02.jpg
  10. BIN src/main/webapp/layout/images/img03.jpg
  11. BIN src/main/webapp/layout/images/img04.jpg
  12. BIN src/main/webapp/layout/images/img05.gif
  13. BIN src/main/webapp/layout/images/img06.gif
  14. BIN src/main/webapp/layout/images/img07.gif
  15. BIN src/main/webapp/layout/images/img08.gif
  16. BIN src/main/webapp/layout/images/img09.gif
  17. BIN src/main/webapp/layout/images/img10.gif
  18. BIN src/main/webapp/layout/images/img11.gif
  19. BIN src/main/webapp/layout/images/img12.gif
  20. BIN src/main/webapp/layout/images/img13.gif
  21. BIN src/main/webapp/layout/images/img14.gif
  22. BIN src/main/webapp/layout/images/img15.gif
  23. BIN src/main/webapp/layout/images/img16.gif
  24. BIN src/main/webapp/layout/images/img17.gif
  25. BIN src/main/webapp/layout/images/img18.gif
  26. BIN src/main/webapp/layout/images/img19.gif
  27. BIN src/main/webapp/layout/images/img20.gif
  28. BIN src/main/webapp/layout/images/spacer.gif
  29. +0 −369 src/main/webapp/layout/layout.css
  30. +0 −243 src/main/webapp/layout/license.txt
  31. +189 −0 src/main/webapp/static/css/1.css
  32. +1 −0 src/main/webapp/static/css/_notes/dwsync.xml
  33. +1 −0 src/main/webapp/static/images/_notes/dwsync.xml
  34. +4 −0 src/main/webapp/static/images/_notes/inner_container.jpg.mno
  35. +4 −0 src/main/webapp/static/images/_notes/nav_link_active.jpg.mno
  36. BIN src/main/webapp/static/images/body.jpg
  37. BIN src/main/webapp/static/images/header.jpg
  38. BIN src/main/webapp/static/images/inner_container.jpg
  39. BIN src/main/webapp/static/images/nav_link_active.jpg
  40. BIN src/main/webapp/static/images/quote.gif
  41. BIN src/main/webapp/static/images/td.jpg
View
@@ -0,0 +1,3 @@
+Six Shooter Media Free Template
+http://www.sixshootermedia.com/free-templates/
+Released for free under a Creative Commons Attribution 2.5 License
@@ -8,7 +8,7 @@
/**
* Layout component for pages of application tapestry5-hotel-booking.
*/
-@IncludeStylesheet("context:layout/layout.css")
+@Import(stylesheet = {"context:/static/css/1.css"})
public class Layout
{
/** The page title, for the <title> element and the <h1> element. */
@@ -17,7 +17,7 @@
* This module is automatically included as part of the Tapestry IoC Registry, it's a good place to
* configure and extend Tapestry, or to place your own service definitions.
*/
-public class AppModule
+public class HotelBookingModule
{
public static void bind(ServiceBinder binder)
{
@@ -1,82 +1,58 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<!--
-
-Design by Free CSS Templates
-http://www.freecsstemplates.org
-Released for free under a Creative Commons Attribution 2.5 License
-
-Title : Concrete
-Version : 1.0
-Released : 20080825
-Description: A Web 2.0 design with fluid width suitable for blogs and small websites.
--->
- <html xmlns="http://www.w3.org/1999/xhtml"
+<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
xmlns:p="tapestry:parameter">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>${title}</title>
</head>
<body>
+
<!-- start header -->
<div id="header">
- <div id="logo">
- <h1>
- <t:pagelink page="index">com.tap5.hotelbooking:tapestry5-hotel-booking</t:pagelink>
- </h1>
- </div>
- <div id="menu">
- <ul>
- <li t:type="loop" source="pageNames" value="pageName" class="prop:classForPageName">
- <t:pagelink page="prop:pageName">${pageName}</t:pagelink>
- </li>
- </ul>
- </div>
</div>
- <!-- end header -->
+ <h1 class="main_title"><a href="#">Tapestry 5 Hotel Booking : Feel like your were at home</a></h1>
+
+ <div id="navigation">
+ <ul id="nav">
+ <li t:type="loop" source="pageNames" value="pageName" class="prop:classForPageName">
+ <a href="#" t:type="pagelink" t:page="prop:pageName">${pageName}</a>
+ </li>
+ </ul>
+ </div>
+ <!-- end header -->
+
+
<!-- start page -->
- <div id="page">
- <!-- start sidebar -->
- <div id="sidebar">
- <ul>
- <li id="search" style="background: none;">
- </li>
- <li t:type="if" test="sidebar">
- <h2>${sidebarTitle}</h2>
- <div class="sidebar-content">
- <t:delegate to="sidebar"/>
- </div>
- </li>
- </ul>
- </div>
- <!-- end sidebar -->
- <!-- start content -->
- <div id="content">
- <div class="post">
- <div class="title">
- <h2>${title}</h2>
- </div>
- <div class="entry">
- <t:body/>
- </div>
- </div>
- </div>
- <!-- end content -->
- <br style="clear: both;"/>
- </div>
- <!-- end page -->
+ <div id="container">
+ <div id="inner_container">
+ <div id="sidebar">
+ <h2>Sidebar</h2>
+ <p>
+ Add application purpose description text here !
+ </p>
+ </div>
+
+ <div id="content">
+ <h1>Welcome !</h1>
+ <p class="note">
+ ${message:greetings}
+ </p>
+
+ <t:body />
+ </div>
+ </div>
+ </div>
+
+ <!-- end page -->
+
<!-- start footer -->
<div id="footer">
- <p class="legal">
- &copy;2009 com.tap5.hotelbooking. All Rights Reserved.
- &nbsp;&nbsp;&bull;&nbsp;&nbsp;
- Design by
- <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>
- &nbsp;&nbsp;&bull;&nbsp;&nbsp;
- Icons by
- <a href="http://famfamfam.com/">FAMFAMFAM</a>.
- </p>
- </div>
+ <!-- If you wish to delete this line of code please purchase our commercial license http://www.sixshootermedia.com/shop/commercial-license/ -->
+ <p>Template design by <a href="http://www.sixshootermedia.com">Six Shooter Media</a>.<br />
+ <!-- you can delete below here -->
+ </p>
+ </div>
<!-- end footer -->
</body>
</html>
@@ -4,8 +4,6 @@
xmlns:p="tapestry:parameter">
<!-- Most of the page content, including <head>, <body>, etc. tags, comes from Layout.tml -->
- <p>${message:greeting}</p>
-
<p:sidebar>
<p>
@@ -1,4 +1,5 @@
# This is where global application properties go.
# You can also have individual message catalogs for each page and each
# component that override these defaults.
-# The name of this file is based on the <filter-name> element in web.
+# The name of this file is based on the <filter-name> element in web.
+greetings=Welcome to our Tapestry 5 Hotel Booking demonstration application.
@@ -3,19 +3,19 @@
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
- <display-name>tapestry5-hotel-booking Tapestry 5 Application</display-name>
+ <display-name>Tapestry 5 HotelBooking Application</display-name>
<context-param>
<!-- The only significant configuration for Tapestry 5, this informs Tapestry
of where to look for pages, components and mixins. -->
<param-name>tapestry.app-package</param-name>
<param-value>com.tap5.hotelbooking</param-value>
</context-param>
<filter>
- <filter-name>app</filter-name>
+ <filter-name>HotelBooking</filter-name>
<filter-class>org.apache.tapestry5.TapestryFilter</filter-class>
</filter>
<filter-mapping>
- <filter-name>app</filter-name>
+ <filter-name>HotelBooking</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.

0 comments on commit 16e7732

Please sign in to comment.