Browse Source

Renamed domain and stuff

master
Stephen 2 months ago
parent
commit
f90fe34c7e
4 changed files with 7 additions and 12 deletions
  1. +2
    -2
      README.md
  2. +2
    -2
      app/controllers/birthday_controller.rb
  3. +3
    -4
      app/views/layouts/application.html.erb
  4. +0
    -4
      config/environments/development.rb

+ 2
- 2
README.md View File

@@ -1,5 +1,5 @@
# BirthdayToday.xyz
# BirthdayToday.pw

Garbage website

https://www.birthdaytoday.xyz
https://www.birthdaytoday.pw

+ 2
- 2
app/controllers/birthday_controller.rb View File

@@ -4,7 +4,7 @@ class BirthdayController < ApplicationController
url = request.subdomain[4..-2]
@birthday = Birthday.find_by_url url
if @birthday.nil?
redirect_to "https://www.birthdaytoday.xyz"
redirect_to "https://www.birthdaytoday.pw"
return
end
render :get
@@ -23,7 +23,7 @@ class BirthdayController < ApplicationController
return
end
flash[:notice] = "Success!"
redirect_to "https://IsIt" + @birthday.url.capitalize + "s.BirthdayToday.xyz"
redirect_to "https://IsIt" + @birthday.url.capitalize + "s.BirthdayToday.pw"
end

private


+ 3
- 4
app/views/layouts/application.html.erb View File

@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>BirthdayToday.xyz</title>
<title>BirthdayToday.pw</title>
<%= csrf_meta_tags %>
<%= csp_meta_tag %>

@@ -13,14 +13,14 @@
<nav>
<div class="nav-wrapper">
<ul id="nav-mobile" class="hide-on-med-and-down">
<li><a href="https://www.birthdaytoday.xyz">Home</a></li>
<li><a href="https://www.birthdaytoday.pw">Home</a></li>
</ul>
</div>
</nav>

<main>
<div class="row center">
<h1 class="header"><a href="https://www.birthdaytoday.xyz" style="color: inherit;">BirthdayToday.xyz</a></h1>
<h1 class="header"><a href="https://www.birthdaytoday.pw" style="color: inherit;">BirthdayToday.pw</a></h1>
</div>
<% if flash[:alert] %>
<% flash[:alert].each do |a| %>
@@ -43,7 +43,6 @@
</main>
<footer class="page-footer">
<div class="container">
<small>I didn't create this website to be passive aggressive at people forgetting my birthday</small><br>
<%= link_to "Source code", "https://git.scd31.com/stephen/BirthdayToday.xyz" %>
</div>
</footer>


+ 0
- 4
config/environments/development.rb View File

@@ -59,8 +59,4 @@ Rails.application.configure do
# Use an evented file watcher to asynchronously detect changes in source code,
# routes, locales, etc. This feature depends on the listen gem.
config.file_watcher = ActiveSupport::EventedFileUpdateChecker

config.hosts << "birthdaytoday.xyz" # TODO TEMP
config.hosts << "isitstephens.birthdaytoday.xyz"
config.hosts << "isitaustins.birthdaytoday.xyz"
end

Loading…
Cancel
Save