Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: dtourio/dtourio
base: 278a10c616
...
head fork: dtourio/dtourio
compare: 6d1836a805
  • 3 commits
  • 5 files changed
  • 0 commit comments
  • 1 contributor
2  app/assets/stylesheets/application.css
View
@@ -9,4 +9,6 @@
html, body{
font-size: 16px;
font: 'Helvetica',Sans-Serif;
+ height: 100%;
+ width: 100%;
}
29 app/assets/stylesheets/home.css.scss
View
@@ -2,13 +2,18 @@
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
+#container-wrap{
+ width: 100%;
+ height: 100%;
+}
#header-wrap{
width: 100%;
height: 5em;
background: rgba(153,202,58,1);
- position: absolute;
+ position: relative;
top: 0px;
left: 0px;
+ box-shadow: 0 1px 3px #000;
#header{
display: block;
width: inherit;
@@ -18,7 +23,27 @@
text-shadow: none;
text-align: center;
padding: 0.125em 0px;
+ padding-top: 0.625em;
margin: 0.5em auto;
+ margin-top: 0px;
}
-
}
+.container{
+ width: 100%;
+ height: 100%-5em;
+ input{
+ width: 5em;
+ height: 5em;
+ display: inline;
+ }
+}
+.time-data, .interest-data, .route-data{
+ width: inherit;
+ display: block;
+ text-align: center;
+ padding: auto;
+}
+
+@media only screen and (device-width: 320px) and (orientation: portrait){
+ background: red;
+}
1  app/controllers/application_controller.rb
View
@@ -2,4 +2,5 @@ class ApplicationController < ActionController::Base
SITE_TITLE = "Dtourio"
protect_from_forgery
+
end
17 app/views/home/index.html.erb
View
@@ -1,12 +1,19 @@
<div id="header-wrap">
<div id="header">
Dtourio
+ <!-- <a href="#popupBasic" data-rel="popup">Open Popup</a> -->
</div>
</div>
-
-<!-- <a href="#popupBasic" data-rel="popup">Open Popup</a>
+<%= form_for @trips do |t| %>
+ <div class="container">
+ <div class="time-data">
+ <%= t.text_field :name %>
+ <input>
+ </input>
+ </div>
+ </div>
+<% end %>
<div data-role="popup" id="popupBasic">
- <p>This is a completely basic popup.<p>
-</div> -->
-
+ <p>Test popup<p>
+</div>
23 app/views/layouts/application.html.erb
View
@@ -2,13 +2,28 @@
<html>
<head>
<title><%= grab_title(yield(:title)) %></title>
- <%= stylesheet_link_tag "application", "#{params[:controller]}", :media => "all" %>
+ <meta name="viewport" content="width=device-width">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+ <meta http-equiv="Content-Type" content="text/html charset=utf-8" />
+ <!-- For dev purposes -->
+ <meta http-equiv="cache-control" content="cache">
+ <meta name="author" content="dtourio team" />
+ <meta name="copyright" content="Copyright 2012 dtourio team" />
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
+ <meta name="apple-mobile-web-app-capable" content="yes" />
+ <meta name="apple-mobile-web-app-status-bar-style" content="default" />
+ <meta name="keywords" content="dtourio, hackathon, angelhack2012" />
+ <meta name="robots" content="index,nofollow" />
+ <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" />
+ <%= stylesheet_link_tag "application", :media => "all" %>
<%= csrf_meta_tags %>
</head>
<body>
- <div id="container-wrap">
- <%= yield %>
- </div>
+ <div id="container-wrap">
+ <%= yield %>
+ </div>
+ <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
+ <script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
<%= javascript_include_tag "#{params[:controller]}" %>
</body>
</html>

No commit comments for this range

Something went wrong with that request. Please try again.