Commit 23d46cc9 authored by Zac Wood's avatar Zac Wood
Browse files

added min-width and last update time to footer

parent f99cc1c9
Pipeline #5333 passed with stage
in 11 seconds
...@@ -24,6 +24,10 @@ $blue: #297dc5; ...@@ -24,6 +24,10 @@ $blue: #297dc5;
font-family: 'Roboto', sans-serif; font-family: 'Roboto', sans-serif;
} }
body {
min-width: 375px;
}
h1, h1,
h2, h2,
h3, h3,
...@@ -254,6 +258,10 @@ footer { ...@@ -254,6 +258,10 @@ footer {
margin: 4em auto 1em; margin: 4em auto 1em;
text-align: center; text-align: center;
max-width: 75%; max-width: 75%;
p {
margin-bottom: 0em;
}
} }
#count { #count {
......
require 'time'
module Update module Update
FILE_NAME = "db/data/last_update.txt".freeze FILE_NAME = "db/data/last_update.txt".freeze
...@@ -10,6 +12,6 @@ module Update ...@@ -10,6 +12,6 @@ module Update
end end
def self.new_update def self.new_update
File.write(FILE_NAME, Time.now.strftime("%Y-%m-%d %k:%M:%S")) File.write(FILE_NAME, Time.now.in_time_zone('America/New_York').strftime("%Y-%m-%d %k:%M:%S"))
end end
end end
...@@ -9,7 +9,9 @@ ...@@ -9,7 +9,9 @@
</a> </a>
<footer class="footer"> <footer class="footer">
Schedules <span data-controller="version"> </span> is a <a href="https://rubyonrails.org">Rails</a> app built by <a href="https://srct.gmu.edu">Mason SRCT</a> and is completely open source. We hope you love it. <p>Schedules <span data-controller="version"> </span> is a <a href="https://rubyonrails.org">Rails</a> app built by <a href="https://srct.gmu.edu">Mason SRCT</a>.</p>
Questions? <a href="mailto:srct@gmu.edu">Email us.</a> Want to contribute? View the code on the <a href="https://git.gmu.edu/srct/schedules">SRCT GitLab</a>.<br/> <p>View the source code on the <a href="https://git.gmu.edu/srct/schedules">SRCT GitLab</a>.</p>
<p>Questions? <a href="mailto:srct@gmu.edu">Email us.</a></p>
<p>Database last updated <%= Update.last_update_date %> ET.</p>
</footer> </footer>
</main> </main>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment