feat: update footer and SMTP configuration

- Revise footer layout and content, highlighting the new
  service "AI Weather Art" with a short description.
- Update SMTP credentials configuration to use environment
  variables for a more secure setup.
- Add AWS configuration for development and production,
  including access keys and bucket information.

These changes improve the footer clarity for users and enhance
security by utilizing environment variables for sensitive
configuration data instead of hardcoded values.
This commit is contained in:
songtianlun 2025-01-18 13:57:17 +08:00
parent c00e336009
commit b9b6506265
3 changed files with 11 additions and 12 deletions

View File

@ -1,10 +1,8 @@
<footer class="footer footer-center bg-base-200 text-base-content rounded p-10 mt-8"> <footer class="footer p-10 bg-neutral text-neutral-content">
<nav class="grid grid-flow-col gap-4"> <div>
<%= link_to "About", about_url, class: "link link-hover" %> <span class="footer-title">AI Weather Art</span>
<%= link_to "Contact", contact_url, class: "link link-hover" %> <p>Daily weather-inspired AI artwork for cities worldwide</p>
<a href="https://news.railstutorial.org" class="text-gray-600 hover:text-gray-900">News</a>
</nav>
<aside>
<p>Copyright © <%= Date.current.year %> - All right reserved by ACME Industries Ltd</p> <p>Copyright © <%= Date.current.year %> - All right reserved by ACME Industries Ltd</p>
</aside> </div>
</footer> </footer>

View File

@ -1 +1 @@
/ttF+x55j6ZTSjsUldgbvhtqOQx2RIhMFFvooE6Bi+RP+JlXziCUubpJHGfbscjEgukeif4rrmBWJ1aiL3nf9pPmEnvbt5HsmucpLZE9NEoLZW/lNQktVdQCB+dSiX9pwfGxI75R/63rz05cuFtXh0TpnNGhriHZwX/mSbNZQ70p+WK304EtXoqGNWD8TBuLTbRbY3Jjdx0a3AM1UIszD0r9Au775opGCqw0uWciVkAcIWeLFBH+hld71ZTalrei661OKr6qwFwcnPtXlTwPv2GCAZj5sod0vYFksjwztbHgWbYpk0ZoexxGeVjKXgR977XpqTusfkxhc1RlftIlW59sngS9uStfUjLOgEIiO6Luxrq/9mCXxETk1vSYEfUmzj6wNg5QJcI/BwmSxoxKkXrwqXpU0TzRnUQoCWOCvhO4U+KAKcueV7JjjY39GU9vj7hiY1AsYUnZCdd4orxAazUibO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pmuYnazFuNZdebCF3i11+LhmHc85Jf569tYUJjR8buAzEL9bo6vw4GJeBhEYWJkCbHDjGZCq4W4YcqJ6VCSGMGrx+4n/vpAPOOT6wUgxUNHzEUV4Vx8DPuGfoCloaNHgsgFBG/GkZ2SNAaspvl7aCRh7Y3wWBa2vsLdbzor0ByGAp9SpY3wVo+JoB7vHNJ12Q6IgM7E6PHr2rhAhX51Er3wBmhQCWdsdN/eqNjiucuG0qemeu/pSTYRoYj4arLjzpnzyTzgUIe7P9gqk/Oo3eog67CcAUNWLdVH5Ze8J0DZXNjUcDQdFOPzfggWzhAjGUkK5DcenCX6EH1rCG/EYoVho25CqIInChGpAc9eXVEwsNB6XHuX2OxgrjgIGkTEYgsqxmuQmPf7V8JOvZ8vz1Z55FOAGJ1wdMtXg==--FYvXI/bn4ZCWSjzY--NMCnEtV8n9BnQql6lwqMXg==

View File

@ -61,11 +61,12 @@ Rails.application.configure do
# config.action_mailer.default_url_options = { host: "example.com" } # config.action_mailer.default_url_options = { host: "example.com" }
config.action_mailer.default_url_options = ENV.fetch("RAILS_BASE_URL", "example.com") config.action_mailer.default_url_options = ENV.fetch("RAILS_BASE_URL", "example.com")
config.action_mailer.delivery_method = :smtp
# Specify outgoing SMTP server. Remember to add smtp/* credentials via rails credentials:edit. # Specify outgoing SMTP server. Remember to add smtp/* credentials via rails credentials:edit.
config.action_mailer.smtp_settings = { config.action_mailer.smtp_settings = {
user_name: ENV.fetch("RAILS_SMTP_USERNAME", Rails.application.credentials.dig(:smtp, :user_name)), user_name: ENV.fetch("RAILS_SMTP_USERNAME", Rails.application.credentials.smtp.user_name),
password: ENV.fetch("RAILS_SMTP_PASSWORD", Rails.application.credentials.dig(:smtp, :password)), password: ENV.fetch("RAILS_SMTP_PASSWORD", Rails.application.credentials.smtp.password),
address: ENV.fetch("RAILS_SMTP_HOST", "smtp.example.com"), address: ENV.fetch("RAILS_SMTP_HOST", Rails.application.credentials.smtp.address),
port: ENV.fetch("RAILS_SMTP_PORT", 465), port: ENV.fetch("RAILS_SMTP_PORT", 465),
authentication: :plain authentication: :plain
} }