From 34daf23cb4ac0067f1a92b0233679201c30ef90c Mon Sep 17 00:00:00 2001 From: sarahcssiqueira Date: Sat, 28 Sep 2024 22:06:41 -0300 Subject: [PATCH] update: css style improvements --- app/assets/stylesheets/application.scss | 30 +++++++++++++++- app/views/home/index.html.erb | 31 ++++++++-------- app/views/layouts/_navbar.html.erb | 27 +++++++------- app/views/pets/_pet.html.erb | 48 ++++++++----------------- app/views/pets/index.html.erb | 30 +++++++++------- app/views/pets/show.html.erb | 11 +++--- app/views/users/_user.html.erb | 3 -- app/views/users/show.html.erb | 43 +++++++++++++--------- 8 files changed, 126 insertions(+), 97 deletions(-) diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index 05c538d..8409f9a 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -14,4 +14,32 @@ *= require_self */ - @import "bootstrap"; \ No newline at end of file + @import "bootstrap"; + + + .image-crop { + width: 200px; + height: 200px; + overflow: hidden; + position: relative; + border-radius: 50%; + border: 5px solid #fff; + box-shadow: 0 0 10px #333333; +} + +.image-crop img { + position: absolute; + top: 50%; + left: 50%; + min-width: 100%; + min-height: 100%; + transform: translate(-50%, -50%); + object-fit: cover; +} + +.qr-code { + width: 300px; + height: 300px; + border: 1px solid #fff; + box-shadow: 0 0 10px #333333; +} diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index b997b68..7f4b5cc 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -4,19 +4,19 @@ -
-
-

Give Your Pet the Safety They Deserve

+
+
+

Give Your Pet the Safety They Deserve

We believe every pet deserves to be safe and secure. That's why we're excited to introduce our Free Pet Tag Generator – a simple and efficient way to ensure your furry friends are always protected.

-
-

What is the Free Pet Tag Generator?

+
+

What is the Free Pet Tag Generator?

Our Free Pet Tag Generator is an easy-to-use online tool that lets you create personalized pet tags at no cost. With just a few clicks, you can generate a unique QR code that will be linked to a dedicated webpage with all the information you provide about your pet.

-
-

How It Works

+
+

How It Works

  • Register Your Pet: Fill out a simple form with details about your pet, including their name, your contact information, and any other important notes.
  • Generate a QR Code: Our generator will create a custom QR code that you can print on a tag. This QR code will direct anyone who scans it to a webpage with the information you’ve provided.
  • @@ -25,8 +25,8 @@
-
-

Why Use This Pet Tag Generator?

+
+

Why Use This Pet Tag Generator?

  • Free and Easy: No costs, no hassle. Create your pet's tag in minutes.
  • Instant Access: The QR code provides quick access to your pet's information.
  • @@ -35,18 +35,21 @@
-
-

Ready to Get Started?

+
+

Ready to Get Started?

    -
  1. Create a free <%= link_to 'account: ', new_user_path, class: 'cta-button' %> Sign up to access the pet management features.
  2. +
  3. Create a free <%= link_to 'account', new_user_path, class: 'cta-button' %>: Sign up to access the pet management features.
  4. Add Your Pet: Enter details about your pet to create a profile.
  5. Fill in the pet's information: Provide important details like name, breed, and any special notes.
  6. Print and Attach the QR Code: A QR code is automatically generated—simply print it and attach it wherever needed (e.g., on a pet tag, collar, or carrier).
-

Make sure your pet is always safe and secure with our Free Pet Tag Generator. It’s a small step that can make a big difference.

+

Make sure your pet is always safe and secure with our Free Pet Tag Generator!

+

It’s a small step that can make a big difference.

- <%= link_to 'Get Started Now!', new_user_path, class: 'cta-button' %> +
+ <%= link_to 'Get Started Now!', new_user_path, class: 'btn btn-primary m-3 p-3' %> +
diff --git a/app/views/layouts/_navbar.html.erb b/app/views/layouts/_navbar.html.erb index 93c47d4..b435c9c 100644 --- a/app/views/layouts/_navbar.html.erb +++ b/app/views/layouts/_navbar.html.erb @@ -1,29 +1,32 @@ - - -
+