This document discusses different ways to build mobile websites, including using media queries, user agents, and user opt-in. It describes detecting the user agent string to redirect mobile users, using responsive design with media queries, and allowing users to opt-in to the mobile or desktop site. Responsive design allows a unified experience across devices but doesn't allow custom mobile features, while user agents allow tailored mobile content but separate sites. The document recommends using responsive design with media queries when possible and redirecting by user agent when different functionality is needed, while making it easy for users on any device.
KKBOX WWDC17 UIKit Drag and Drop - MarioLiyao Chen
KKTV iOS 工程師 Mario 分享
影片位置 https://youtu.be/4U9QbQFo7gU
相關 Sessions
- [Data Delivery with Drag and Drop] (https://developer.apple.com/videos/wwdc2017/videos/play/wwdc2017/227/)
- [Drag and Drop with Collection and Table View] (https://developer.apple.com/videos/wwdc2017/videos/play/wwdc2017/223/)
- [Introducing Drag and Drop] (https://developer.apple.com/videos/wwdc2017/videos/play/wwdc2017/203/)
- [Mastering Drag and Drop] (https://developer.apple.com/videos/wwdc2017/videos/play/wwdc2017/213/)
[SwiftPH + PADC Meetup - May 2019] Mobile Interface Guidelines Comparison (iO...SwiftPH
[SwiftPH + PADC Meetup - May 2019] Mobile Interface Guidelines Comparison (iOS & Android) by Michie Ang
About the speaker:
Michie is the Director of Women Who Code Manila, Organizer of SwiftPH & SwiftLadies, Co-founder of TecsoftApps, Inbytes.dev, YeyPlus, Inc (YeyPass). She is an Apple WWDC Scholarship Recipient Batch 2015, 2017 & 2018. Aside from building communities, she travels around the Philippines to inspires the younger generation to build things thru code. :)
About SwiftPH:
SwiftPH and iOSCodersPH are the Apple Developer Communities in the Philippines. SwiftPH is responsible for our meetups and the iOSCodersPH is our slack group. Our community aims to bring all the iOS (and Apple) developer in the Philippines together to learn from one another and help our Apple developer ecosystem grow.
If you are interested, join us at https://meetup.com/swiftph. You can also reach out to us at swiftphofficial@gmail.com.
About Philippine Android Developer Community (PADC):
Philippine Android Developer Community is the Android developer community in the Philippines. (https://www.meetup.com/Philippine-Android-Developers-Community)
About the event:
Date: May 18, 2019
Venue: BeautyMNL, Philippines
More info here:
https://www.meetup.com/SwiftPH/events/261166657/
WordPress & User Experience - WordCamp LondonSara Cannon
WordPress has a long standing history of providing a good user experience. Publishers, site owners, content editors, all have been able to benefit from the ease of use of the admin. In this talk, we’re going to take a deeper look into the experience of the WordPress admin – how we can extend WordPress to make publishing content a breeze, and how a few changes to the way we approach the admin, plugins, and themes can help make the experience even better.WordPress has a long standing history of providing a good user experience. Publishers, site owners, content editors, all have been able to benefit from the ease of use of the admin. In this talk, we’re going to take a deeper look into the experience of the WordPress admin – how we can extend WordPress to make publishing content a breeze, and how a few changes to the way we approach the admin, plugins, and themes can help make the experience even better.
KKBOX WWDC17 UIKit Drag and Drop - MarioLiyao Chen
KKTV iOS 工程師 Mario 分享
影片位置 https://youtu.be/4U9QbQFo7gU
相關 Sessions
- [Data Delivery with Drag and Drop] (https://developer.apple.com/videos/wwdc2017/videos/play/wwdc2017/227/)
- [Drag and Drop with Collection and Table View] (https://developer.apple.com/videos/wwdc2017/videos/play/wwdc2017/223/)
- [Introducing Drag and Drop] (https://developer.apple.com/videos/wwdc2017/videos/play/wwdc2017/203/)
- [Mastering Drag and Drop] (https://developer.apple.com/videos/wwdc2017/videos/play/wwdc2017/213/)
[SwiftPH + PADC Meetup - May 2019] Mobile Interface Guidelines Comparison (iO...SwiftPH
[SwiftPH + PADC Meetup - May 2019] Mobile Interface Guidelines Comparison (iOS & Android) by Michie Ang
About the speaker:
Michie is the Director of Women Who Code Manila, Organizer of SwiftPH & SwiftLadies, Co-founder of TecsoftApps, Inbytes.dev, YeyPlus, Inc (YeyPass). She is an Apple WWDC Scholarship Recipient Batch 2015, 2017 & 2018. Aside from building communities, she travels around the Philippines to inspires the younger generation to build things thru code. :)
About SwiftPH:
SwiftPH and iOSCodersPH are the Apple Developer Communities in the Philippines. SwiftPH is responsible for our meetups and the iOSCodersPH is our slack group. Our community aims to bring all the iOS (and Apple) developer in the Philippines together to learn from one another and help our Apple developer ecosystem grow.
If you are interested, join us at https://meetup.com/swiftph. You can also reach out to us at swiftphofficial@gmail.com.
About Philippine Android Developer Community (PADC):
Philippine Android Developer Community is the Android developer community in the Philippines. (https://www.meetup.com/Philippine-Android-Developers-Community)
About the event:
Date: May 18, 2019
Venue: BeautyMNL, Philippines
More info here:
https://www.meetup.com/SwiftPH/events/261166657/
WordPress & User Experience - WordCamp LondonSara Cannon
WordPress has a long standing history of providing a good user experience. Publishers, site owners, content editors, all have been able to benefit from the ease of use of the admin. In this talk, we’re going to take a deeper look into the experience of the WordPress admin – how we can extend WordPress to make publishing content a breeze, and how a few changes to the way we approach the admin, plugins, and themes can help make the experience even better.WordPress has a long standing history of providing a good user experience. Publishers, site owners, content editors, all have been able to benefit from the ease of use of the admin. In this talk, we’re going to take a deeper look into the experience of the WordPress admin – how we can extend WordPress to make publishing content a breeze, and how a few changes to the way we approach the admin, plugins, and themes can help make the experience even better.
SenchaCon 2016: Accessibility, Teamwork & Ext JS: A Customer Success Story - ...Sencha
Demand for accessible applications is on the rise, and many enterprise software developers are faced with the need to meet accessibility requirements in their products. To address this daunting problem, University of Washington and Innotas collaborated with Sencha to make the Ext JS framework more accessible and share the benefits with all Sencha customers. In this session, we'll detail the steps we took, the pain we experienced, the roadblocks we overcame, and the spectacular results we achieved.
Responsive Navigation Patterns, UX and GuidelinesPeter Rozek
User have a goal and are on a mission. Navigation is one of the core elements of a responsive website. Which navigation principle is the best for the information architecture, usability and user experience? In addition to the scalability for different screen sizes, it is the major challenge to find the balance between completeness and clarity. The presentation explores these questions and formulated guidelines.
Had a question from a client the other day, about what the difference between making something "accessible" on a modern smartphone vs "optimizing" it.
We put together this document, and thought that it might be helpful to share.
The mobile screen caps are all based on the iPhone iOS4, and are assumed to be reasonably compatible with BlackBerryOS6 (e.g. the fairly web friendly versions) and Androids.
Building native apps with web componentsDenis Radin
In 2016 mobile web apps are still perceived as slow however performance is not a bottleneck anymore. UX is. Users are highly addicted to UI kits mobile ecosystem provide and it is amazingly hard to mimic native controls. But we can use native controls in our Web apps by placing custom tags <native-button>, <native-checkbox> etc. and still be able to use whole set of CSS to layout and wide subset to style app.
The PPT gives you a brief idea about what steps to follow and what ways to implement while doing mobile SEO. How to quick start, what things you need to know and what are the ways to adapt to mobile site can be learned through this presentation.
Mobile Web - Merging responsive and adaptive techniquesFrancisco Ferreira
Presentation given at jQuery Europe 2014
Helpers:
Widget Based Architecture - http://franciscomsferreira.blogspot.co.at/2014/02/widget-based-architecture-mobile-web.html
Less Mixins to leverage browser detection - http://franciscomsferreira.blogspot.co.at/2013/12/less-pathways-using-mixins-browser.html
According to the International Telecommunication Union, at the end of 2011 there were more than 1 billion mobile‐broadband subscriptions worldwide! With more of your library users using mobile devices to access information they will assume that your library can be available from anywhere, at any time, and on most any device. Now is the time to be ready for this demand.
In this webinar:
- Explore some innovative library mobile website designs and see how they were built.
- Understand how HTML, CSS, and JavaScript work together to build mobile websites.
- Learn what a mobile framework is and why they are used.
- Provide some existing mobile services/apps that can be included in library-created mobile websites.
- Acquire best practices in mobile Web development from start to finish.
Why Mobile, Why Now? | John Shehata – Executive Director of Search & Social M...Conductor
Now is the time for a mobile search strategy! Join John Shehata, ABC News’ Executive Director of Search & Social Media, as he reveals his own personal arsenal of mobile SEO guidelines, best practices, and tools of the trade. Learn actionable takeaways to wow your team with when you apply them to your own search programs.
A talk I was asked to give on the various options for building mobile applications / getting content onto mobile devices.
I chose to organize it as gradient surveying the spectrum from web to native, all the stuff in between. Unfortunately for native I've only had experience with iOS so I couldn't really speak towards the other platforms.
I do think that non native solutions can take care of 95% of the use cases, and this gap will only narrow as time goes on - I'm thinking back to early 2010 when cross platform SDKs like Appcelerator Titanium came onto the scene and how much has changed.
Designing for the web is no longer what it used to be.
The number of devices with web-browsing capabilities is
growing at an increasing speed.
RWD is an approach aimed to provide a solid viewing
experience for a multiple of screens with one set of code.
Presented at Web Unleashed on September 16-17, 2015 in Toronto, Canada
More info at www.fitc.ca/webu
Breaking The Broken Web
with Kyle Simpson
OVERVIEW
The web is fundamentally broken in two deeply profound ways and unfortunately the only way we’re going to move forward is to painfully break from our past and present realities. First, we’ve got to break from the idealistic but untenable notion of unbounded backwards compatibility. Then we’re going to need to break from the notion of building sites/apps that assume fast and unmetered bandwidth, unlimited battery power, and users which want their devices completely maxed out in experience. Let’s stop building a broken Web and break it forward.
OBJECTIVE
To come to terms with the Web we’ve built broken by its very fundamental design, and break from this past to move forward.
TARGET AUDIENCE
Designers and Web builders.
ASSUMED AUDIENCE KNOWLEDGE
Basics of Web design and standards.
FIVE THINGS AUDIENCE MEMBERS WILL LEARN
Why are there so many bugs in Web technology that never get fixed?
What is browser game theory and what does it mean to me?
Besides screen size/orientation, what other factors should come into play when deciding what experience to give a user?
What limitations do real users face which limit what experience they want or can “afford” on your site?
How can we wire user-choice into the fabric of what we build and the way users experience the Web?
SenchaCon 2016: Accessibility, Teamwork & Ext JS: A Customer Success Story - ...Sencha
Demand for accessible applications is on the rise, and many enterprise software developers are faced with the need to meet accessibility requirements in their products. To address this daunting problem, University of Washington and Innotas collaborated with Sencha to make the Ext JS framework more accessible and share the benefits with all Sencha customers. In this session, we'll detail the steps we took, the pain we experienced, the roadblocks we overcame, and the spectacular results we achieved.
Responsive Navigation Patterns, UX and GuidelinesPeter Rozek
User have a goal and are on a mission. Navigation is one of the core elements of a responsive website. Which navigation principle is the best for the information architecture, usability and user experience? In addition to the scalability for different screen sizes, it is the major challenge to find the balance between completeness and clarity. The presentation explores these questions and formulated guidelines.
Had a question from a client the other day, about what the difference between making something "accessible" on a modern smartphone vs "optimizing" it.
We put together this document, and thought that it might be helpful to share.
The mobile screen caps are all based on the iPhone iOS4, and are assumed to be reasonably compatible with BlackBerryOS6 (e.g. the fairly web friendly versions) and Androids.
Building native apps with web componentsDenis Radin
In 2016 mobile web apps are still perceived as slow however performance is not a bottleneck anymore. UX is. Users are highly addicted to UI kits mobile ecosystem provide and it is amazingly hard to mimic native controls. But we can use native controls in our Web apps by placing custom tags <native-button>, <native-checkbox> etc. and still be able to use whole set of CSS to layout and wide subset to style app.
The PPT gives you a brief idea about what steps to follow and what ways to implement while doing mobile SEO. How to quick start, what things you need to know and what are the ways to adapt to mobile site can be learned through this presentation.
Mobile Web - Merging responsive and adaptive techniquesFrancisco Ferreira
Presentation given at jQuery Europe 2014
Helpers:
Widget Based Architecture - http://franciscomsferreira.blogspot.co.at/2014/02/widget-based-architecture-mobile-web.html
Less Mixins to leverage browser detection - http://franciscomsferreira.blogspot.co.at/2013/12/less-pathways-using-mixins-browser.html
According to the International Telecommunication Union, at the end of 2011 there were more than 1 billion mobile‐broadband subscriptions worldwide! With more of your library users using mobile devices to access information they will assume that your library can be available from anywhere, at any time, and on most any device. Now is the time to be ready for this demand.
In this webinar:
- Explore some innovative library mobile website designs and see how they were built.
- Understand how HTML, CSS, and JavaScript work together to build mobile websites.
- Learn what a mobile framework is and why they are used.
- Provide some existing mobile services/apps that can be included in library-created mobile websites.
- Acquire best practices in mobile Web development from start to finish.
Why Mobile, Why Now? | John Shehata – Executive Director of Search & Social M...Conductor
Now is the time for a mobile search strategy! Join John Shehata, ABC News’ Executive Director of Search & Social Media, as he reveals his own personal arsenal of mobile SEO guidelines, best practices, and tools of the trade. Learn actionable takeaways to wow your team with when you apply them to your own search programs.
A talk I was asked to give on the various options for building mobile applications / getting content onto mobile devices.
I chose to organize it as gradient surveying the spectrum from web to native, all the stuff in between. Unfortunately for native I've only had experience with iOS so I couldn't really speak towards the other platforms.
I do think that non native solutions can take care of 95% of the use cases, and this gap will only narrow as time goes on - I'm thinking back to early 2010 when cross platform SDKs like Appcelerator Titanium came onto the scene and how much has changed.
Designing for the web is no longer what it used to be.
The number of devices with web-browsing capabilities is
growing at an increasing speed.
RWD is an approach aimed to provide a solid viewing
experience for a multiple of screens with one set of code.
Presented at Web Unleashed on September 16-17, 2015 in Toronto, Canada
More info at www.fitc.ca/webu
Breaking The Broken Web
with Kyle Simpson
OVERVIEW
The web is fundamentally broken in two deeply profound ways and unfortunately the only way we’re going to move forward is to painfully break from our past and present realities. First, we’ve got to break from the idealistic but untenable notion of unbounded backwards compatibility. Then we’re going to need to break from the notion of building sites/apps that assume fast and unmetered bandwidth, unlimited battery power, and users which want their devices completely maxed out in experience. Let’s stop building a broken Web and break it forward.
OBJECTIVE
To come to terms with the Web we’ve built broken by its very fundamental design, and break from this past to move forward.
TARGET AUDIENCE
Designers and Web builders.
ASSUMED AUDIENCE KNOWLEDGE
Basics of Web design and standards.
FIVE THINGS AUDIENCE MEMBERS WILL LEARN
Why are there so many bugs in Web technology that never get fixed?
What is browser game theory and what does it mean to me?
Besides screen size/orientation, what other factors should come into play when deciding what experience to give a user?
What limitations do real users face which limit what experience they want or can “afford” on your site?
How can we wire user-choice into the fabric of what we build and the way users experience the Web?
With great power, comes great responsive-ability web design.
Responsive web design (RWD) will be demystified. Believe it or not, it's more than just media queries, although those will be discussed. It starts with proper UI design and application architecture, and then the dive into CSS - but not too deep! You don't have to be an expert to do RWD, but it helps to have some idea of what you are doing.
As sophisticated smartphones and faster internet connections gain greater market share, accessing the Web via mobile devices is becoming standard practice. 45% of all consumers use Smartphone for in-store product research and browsing, 72% of tablet owners make purchases from their devices on a weekly basis, 60+% US accessing mobile Internet. Mobile is exploding, and it's no longer the future of search, it is the now of search.
Mobile Web Overview https://www.edocr.com/v/k52p5vj4/Jack Zheng
For the most recent version please visit:
https://www.edocr.com/v/k52p5vj4/jgzheng/Mobile-Web-Overview
I have developed the mobile web development course and modules for some courses in KSU/SPSU. This is overview module to introduce the whole field. Topics include choices of mobile application development and delivery, basic principles and best practices of mobile friendly web sites and web applications, and major tools and frameworks.
Is the mobile web enabled or disabled by design?Henny Swan
A look at mobile accessibility drawing on comparisons and lessons learned from desktop as well as looking ahead at existing and emerging technologies that help developers ensure content is accessible across devices.
Progressive Web Apps use modern web capabilities to deliver an app-like user experience. They evolve from pages in browser tabs to immersive, top-level apps, maintaining the web's low friction at every moment.
They are reliable, fast, engaging and delivering amazing UX to end users. And they are here!
The slides are from my talk at http://2018.symfonycamp.org.ua/
Mobilism 2011: How to put the mobile in the mobile webJenifer Hanen
Media queries, server-side or client-side sniffers, how do we determine if the user is a mobile or desktop device? This tech talk will discuss which is the right solution(s) and how to implement it taking into consideration the various mobile user's browser capacity, bandwidth restrictions, as well as user choice.
Jenifer Hanen
@msjen
http://blackphoebe.com/msjen
Responsive & Adaptive Design: Delivering Websites That Delight Your UsersBBDO
Considering that mobile and tablet users constitute an ever-growing share Internet traffic, designing websites with a mobile-first strategy is crucial to a sites success. This paper considers the two UX design techniques that can bring beautiful web design to the smaller screen.
About a year ago we started using Progressive web apps. The idea behind PWA is to replace native mobile apps.
In this talk, I will show you what is possible to build with PWA, what is the limitation and what we learn. And of course, you will see where PWA can be a good fit for your projects. Progressive Web Apps use modern web capabilities to deliver an app-like user experience.
They evolve from pages in browser tabs to immersive, top-level apps, maintaining the web's low friction at every moment. They are reliable, fast, engaging and delivering amazing UX to end users. And they are here!
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Jeffrey Haguewood
Sidekick Solutions uses Bonterra Impact Management (fka Social Solutions Apricot) and automation solutions to integrate data for business workflows.
We believe integration and automation are essential to user experience and the promise of efficient work through technology. Automation is the critical ingredient to realizing that full vision. We develop integration products and services for Bonterra Case Management software to support the deployment of automations for a variety of use cases.
This video focuses on the notifications, alerts, and approval requests using Slack for Bonterra Impact Management. The solutions covered in this webinar can also be deployed for Microsoft Teams.
Interested in deploying notification automations for Bonterra Impact Management? Contact us at sales@sidekicksolutionsllc.com to discuss next steps.
Key Trends Shaping the Future of Infrastructure.pdfCheryl Hung
Keynote at DIGIT West Expo, Glasgow on 29 May 2024.
Cheryl Hung, ochery.com
Sr Director, Infrastructure Ecosystem, Arm.
The key trends across hardware, cloud and open-source; exploring how these areas are likely to mature and develop over the short and long-term, and then considering how organisations can position themselves to adapt and thrive.
Elevating Tactical DDD Patterns Through Object CalisthenicsDorra BARTAGUIZ
After immersing yourself in the blue book and its red counterpart, attending DDD-focused conferences, and applying tactical patterns, you're left with a crucial question: How do I ensure my design is effective? Tactical patterns within Domain-Driven Design (DDD) serve as guiding principles for creating clear and manageable domain models. However, achieving success with these patterns requires additional guidance. Interestingly, we've observed that a set of constraints initially designed for training purposes remarkably aligns with effective pattern implementation, offering a more ‘mechanical’ approach. Let's explore together how Object Calisthenics can elevate the design of your tactical DDD patterns, offering concrete help for those venturing into DDD for the first time!
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...UiPathCommunity
💥 Speed, accuracy, and scaling – discover the superpowers of GenAI in action with UiPath Document Understanding and Communications Mining™:
See how to accelerate model training and optimize model performance with active learning
Learn about the latest enhancements to out-of-the-box document processing – with little to no training required
Get an exclusive demo of the new family of UiPath LLMs – GenAI models specialized for processing different types of documents and messages
This is a hands-on session specifically designed for automation developers and AI enthusiasts seeking to enhance their knowledge in leveraging the latest intelligent document processing capabilities offered by UiPath.
Speakers:
👨🏫 Andras Palfi, Senior Product Manager, UiPath
👩🏫 Lenka Dulovicova, Product Program Manager, UiPath
The Art of the Pitch: WordPress Relationships and SalesLaura Byrne
Clients don’t know what they don’t know. What web solutions are right for them? How does WordPress come into the picture? How do you make sure you understand scope and timeline? What do you do if sometime changes?
All these questions and more will be explored as we talk about matching clients’ needs with what your agency offers without pulling teeth or pulling your hair out. Practical tips, and strategies for successful relationship building that leads to closing the deal.
Essentials of Automations: Optimizing FME Workflows with ParametersSafe Software
Are you looking to streamline your workflows and boost your projects’ efficiency? Do you find yourself searching for ways to add flexibility and control over your FME workflows? If so, you’re in the right place.
Join us for an insightful dive into the world of FME parameters, a critical element in optimizing workflow efficiency. This webinar marks the beginning of our three-part “Essentials of Automation” series. This first webinar is designed to equip you with the knowledge and skills to utilize parameters effectively: enhancing the flexibility, maintainability, and user control of your FME projects.
Here’s what you’ll gain:
- Essentials of FME Parameters: Understand the pivotal role of parameters, including Reader/Writer, Transformer, User, and FME Flow categories. Discover how they are the key to unlocking automation and optimization within your workflows.
- Practical Applications in FME Form: Delve into key user parameter types including choice, connections, and file URLs. Allow users to control how a workflow runs, making your workflows more reusable. Learn to import values and deliver the best user experience for your workflows while enhancing accuracy.
- Optimization Strategies in FME Flow: Explore the creation and strategic deployment of parameters in FME Flow, including the use of deployment and geometry parameters, to maximize workflow efficiency.
- Pro Tips for Success: Gain insights on parameterizing connections and leveraging new features like Conditional Visibility for clarity and simplicity.
We’ll wrap up with a glimpse into future webinars, followed by a Q&A session to address your specific questions surrounding this topic.
Don’t miss this opportunity to elevate your FME expertise and drive your projects to new heights of efficiency.
Accelerate your Kubernetes clusters with Varnish CachingThijs Feryn
A presentation about the usage and availability of Varnish on Kubernetes. This talk explores the capabilities of Varnish caching and shows how to use the Varnish Helm chart to deploy it to Kubernetes.
This presentation was delivered at K8SUG Singapore. See https://feryn.eu/presentations/accelerate-your-kubernetes-clusters-with-varnish-caching-k8sug-singapore-28-2024 for more details.
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Albert Hoitingh
In this session I delve into the encryption technology used in Microsoft 365 and Microsoft Purview. Including the concepts of Customer Key and Double Key Encryption.
2. WAYS TO BUILD YOUR MOBILE SITE
1) Detect the User-Agent String and redirect to a mobile site
2) Media Queries (aka. Responsive Design)
3) User Opt-in Link
3. MOBILE WEBSITES VS. APPS:
WHY HAVE A MOBILE SITE?
• Mobile sites get 10% of all web traffic (stats from 2009, it’s higher now)
• 25% of internet users in the US only browse on mobile
devices (this is low on a global scale, it’s 70% in Egypt)
• 40% of tweets are sent from mobile devices (both site and app)
• Some user flows will send you to the mobile site anyhow...
4. EXAMPLE FROM TWITTER
User gets an email: User clicks on the link and goes to:
You have a new follower! mobile.twitter.com/
5. MOBILE WEBSITES VS. APPS
Moral of the story:
Some people will need websites and some will need apps.
You usually want both.
Use your best judgement.
We want happy users.
You’re a good candidate for an app if you need:
location data, games, offline functionality
6. USING USER-AGENT STRING
BENEFITS
• Entirely optimize your site for mobile
• Provide tailored Content just for mobile users
• Allows you to build features for specific mobile needs
DRAWBACKS
• Separate from your desktop site, possible lack of continuity
7. USING USER-AGENT STRING
APACHE CONFIG (.htaccess)
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (OneMobileUserAgent|
AnotherMobileUserAgent|YouSeeWhereThisGoes...)
RewriteRule ^$ http://mobile.example.com/ [R,L]
FOR RAILS, PYTHON, PERL, ASP, PHP, JS,NGINX...
http://detectmobilebrowsers.com/
8. USING MEDIA QUERIES
BENEFITS
• Makes your site look great at all screen sizes (desktop/
tablet/mobile)
• Unified content across all platforms
DRAWBACKS
• More complicated to have custom content or special
features on mobile site
9. USING MEDIA QUERIES
SINGLE CSS FILE
@media screen and (min-device-width: 769px) {
div.example {
width: 30%; /* 3 columns for desktop */
}
}
@media screen and (min-device-width: 481px) and
(max-device-width: 768px) {
div.example {
width: 50%; /* 2 columns for tablets and netbooks */
}
}
@media screen and (max-device-width: 480px) {
div.example {
width: 100%; /* 1 column for mobile */
}
}
10. USING MEDIA QUERIES
MULTIPLE CSS FILES (put this HTML in <head>)
<meta name="viewport" content="width=device-width,
initial-scale=1.0">
<link rel="stylesheet"
href="styles.css"> <!-- for global styles -->
<link rel="stylesheet"
media="screen and (min-device-width: 769px)"
href="desktop.css">
<link rel="stylesheet"
media="screen and (min-device-width: 481px) and
(max-device-width: 768px)"
href="tablet.css">
<link rel="stylesheet"
media="screen and (max-device-width: 480px)"
href="mobile.css">
13. USING USER OPT-IN
BENEFITS
• User sees the desktop site they know and love
• User gets to choose which version to see
DRAWBACKS
• User may leave because of a poor experience before the
click on the “mobile version” or even “download app” link
14. USING USER OPT-IN
MAKE A LINK!
<a href=”http://mobile.example.com/”>Mobile Site</a>
<a href=”http://example.com/mobile/”>Mobile Site</a>
MAKE IT FANCY
• UseJS or another framework to detect the user-agent
and provide a banner at the top of the page
• NOTE:This can be effective if used the opposite way:
“Want to see the desktop version? Click here.”
15. WRAPPING IT UP
• Responsive Design is easy to incorporate now
• Usemobile site redirects (with the User-Agent string) when
you want to use different functionality and design
• Make it easy for the user no matter how they visit your site
• Consider your user’s desires, and use your best judgement
16. THANKS
AND HAPPY HACKING!
@shoshizilla for @ladieswhocode
Special Thanks to @mintdigital for hosting