Lädt...

🔧 Progressive web app styling


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

Recently I have worked on adding styles for a progressive web application. It is a Ruby on Rails application. Here are some key learnings I noted down:

To make your button look and feel more like a mobile app button, you can enhance it with the following adjustments:

  1. Add a subtle shadow: This gives the button a slightly raised appearance, making it look tappable.
  2. Adjust padding: Make the button larger and more finger-friendly for touch screens.
  3. Rounded corners: Increase the border radius to make it more modern and appealing.
  4. Ripple or press effect: Simulate a tactile response when the user taps on it.
  5. Color contrast: Make the colors pop and ensure they adhere to accessibility standards.
  6. Focus state: Provide visual feedback for accessibility of the button.
  7. Focus effect: Add visual feedback when the input is focused.
  8. Finger friendly design: Ensure input fields are finger-friendly for better usability.
  9. Placeholder styling: Ensure placeholder text with some styling which will not draw much attention

Here's an example of a well-styled button for mobile-friendly applications:

.btn {
  background-color: #fbf9f4;
  border: 1px solid #897b51;
  border-radius: 1rem; /* Increased for a more modern look */
  cursor: pointer;
  color: #897b51;
  padding: 0.75rem 2rem; /* Larger padding for touch-friendly size */
  text-transform: uppercase;
  transition: all 0.3s ease;
  font-size: 1rem; /* Slightly larger font for readability */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for raised effect */

  &:hover {
    background-color: #d3b88a;
    color: #fff;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Enhance shadow on hover */
  }

  &:active {
    transform: scale(0.97); /* Slight press effect */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Reduced shadow on press */
  }

  &:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(205, 151, 0, 0.4); /* Focus ring for accessibility */
  }

  &.primary {
    background-color: #cd9700;
    color: #f4f0e8;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);

    .icon {
      fill: #f4f0e8;
    }
  }
}

Additional Notes:

  • Padding and font-size: Make sure the button size adheres to the Apple and Google Material design guidelines for touch targets.
  • Interactive feedback: You can implement ripple effects for a material design feel. This we can do using Javascript OR CSS as well. While I haven't implemented this yet, it could add a nice touch in some scenarios.
  • Test on devices: Always test the button on different mobile devices to ensure usability and consistency.
...

🎥 Authentication for Progressive Web Apps - Progressive Web App Training


📈 35.14 Punkte
🎥 Video | Youtube

🎥 Easier payments for Progressive Web Apps - Progressive Web App Training


📈 35.14 Punkte
🎥 Video | Youtube

🎥 Authentication for Progressive Web Apps - Progressive Web App Training


📈 35.14 Punkte
🎥 Video | Youtube

🔧 Progressive web app styling


📈 34.06 Punkte
🔧 Programmierung

🔧 Building a Progressive Web App (PWA): Create an App-Like Experience for Web Users 🚀🌐


📈 24.36 Punkte
🔧 Programmierung

📰 Outlook im Web wird zur Progressive Web App - Update: Jetzt auch Outlook.com


📈 21.93 Punkte
📰 IT Nachrichten

📰 Outlook im Web macht großen Schritt in Richtung Progressive Web App


📈 21.93 Punkte
📰 IT Nachrichten

📰 Outlook im Web macht großen Schritt in Richtung Progressive Web App


📈 21.93 Punkte
📰 IT Security Nachrichten

📰 Outlook im Web wird zur Progressive Web App


📈 21.93 Punkte
📰 IT Nachrichten

🎥 Implementing the Web Payments API - Progressive Web App Training


📈 21.93 Punkte
🎥 Video | Youtube

📰 Twitter im Web: Erneute Design-Änderungen und Progressive Web App


📈 21.93 Punkte
📰 IT Nachrichten

🎥 Introduction to Web Push & Notifications - Progressive Web App Training


📈 21.93 Punkte
🎥 Video | Youtube

🎥 Incorporating Google Analytics into web applications - Progressive Web App Training


📈 21.93 Punkte
🎥 Video | Youtube

🎥 Incorporating Google Analytics into web applications - Progressive Web App Training


📈 21.93 Punkte
🎥 Video | Youtube

🔧 Develop yourself to build Web UIs: Part Two: Art of styling the web🎨


📈 21.56 Punkte
🔧 Programmierung

🔧 🚀 How to Turn Your Laravel App into a PWA (Progressive Web App) in 5 Minutes


📈 21.22 Punkte
🔧 Programmierung

🔧 Progressive Web App Vs. Native App Development: What Should You Pick and Why?


📈 21.22 Punkte
🔧 Programmierung

📰 Microsoft: Copilot kommt als native App anstatt Progressive Web App


📈 21.22 Punkte
📰 IT Nachrichten

🔧 Turn Your Vue App into an Offline-ready Progressive Web App


📈 21.22 Punkte
🔧 Programmierung

🔧 🚀 Why Progressive Web Apps (PWAs) Are the Future of Web Development.


📈 19.5 Punkte
🔧 Programmierung

📰 Progressive Web Apps: Google und Microsoft legen ihre Anstrengungen rund um die Web Apps zusammen


📈 19.5 Punkte
📰 IT Nachrichten

🔧 Progressive Web Apps (PWAs): Bridging the Gap Between Web and Native Apps


📈 19.5 Punkte
🔧 Programmierung

📰 Warum Progressive Web-Apps die Zukunft im Mobile Web sind


📈 19.5 Punkte
📰 IT Nachrichten

🔧 Progressive Web Apps (PWAs): The Future of Web Development for Fast, Reliable User Experiences


📈 19.5 Punkte
🔧 Programmierung

🐧 Progressive Web Apps – The Future of The Web?


📈 19.5 Punkte
🐧 Server

🎥 Building Progressive Web Apps to extend existing web apps in Windows and Microsoft - BRK3078


📈 19.5 Punkte
🎥 Video | Youtube

🔧 Progressive Web Apps: Technology Bridging Web and Mobile


📈 19.5 Punkte
🔧 Programmierung

🔧 Das neue E-Book "Progressive Web Apps: the future of the mobile web"


📈 19.5 Punkte
🔧 Programmierung

matomo