News for hackers. Stuff that matters.
Re:Show HN: ResponsiveDevices.css – responsive device frames... by barrowclift on Thursday August 09, 2018 @10:16AM (#17724372)
While neat technically speaking, I unfortunately can't say the result is acceptable for any kind of professional work, in my opinion.

For example, take a close look at the iPhone X in the "Device Library" list, the device and "notch" borders are butchered beyond recognition. A key component of the iPhone X's brand are the particular rounded corners used for the notch, and if the point of this project is to closely emulate particular devices instead of generic ones, it woefully missed the mark.

To be fair, I can't speak for the accuracy for the other devices included, but if their implementations are at all similar to the iPhone X's, I'd expect they are also poor representations.

Comparison between the CSS "iPhone X" and an accurate representation: https://notebook.barrowclift.me/dropbox/comparison.png, and a Light read for more information on the iPhone X corners: https://medium.com/tall-west/no-cutting-corners-on-the-iphon...

Re:Show HN: ResponsiveDevices.css – responsive device frames... by osrec on Thursday August 09, 2018 @11:35AM (#17725077)
Hi, thanks for the feedback :)

I understand your point of view, but I feel you're missing the purpose of these devices. The aim is not to provide a photo-realistic depiction of each device, but a representation that could be used on a landing page or a demo page.

We've found them to be adequate in situations where we require a responsive device frame, and I'm hopeful others will too.

Having said that, we will take another crack at the iPhone X to improve the shaping further. I think we can certainly get the rounded corners more in line with the actual shape. The notch may still be tricky though!

Re:Show HN: ResponsiveDevices.css – responsive device frames... by brudgers on Thursday August 09, 2018 @11:57AM (#17725304)
A demo isn't the product. Sometimes little details matter. Sometimes they don't. It depends on who is selling what to who...when. The rounded corners all matter if the sales pitch hinges on design. Simulating an iPhone X matters less if the pitch is earlier and about basic function. What and how much to include in a demo varies. Most of it is between pitch perfect simulation and nothing.
Re:Show HN: ResponsiveDevices.css – responsive device frames... by saintPirelli on Thursday August 09, 2018 @03:38AM (#17722277)
Solid, useful work, very well executed (from what I can tell). Thank you!
Re:Show HN: ResponsiveDevices.css – responsive device frames... by osrec on Thursday August 09, 2018 @04:22AM (#17722466)
Thank you for the kind words, and you're very welcome :)
Re:Show HN: ResponsiveDevices.css – responsive device frames... by hamslamwich on Friday August 10, 2018 @05:00PM (#17736705)
Just a design note on your product landing page: the big gradient "responsivedevices.css" in your hero looks like a big CTA button, although not clickable. Might want to change that, or make it direct to something.
Re:Show HN: ResponsiveDevices.css – responsive device frames... by osrec on Thursday August 09, 2018 @01:16AM (#17721776)
Re:Show HN: ResponsiveDevices.css – responsive device frames... by sitepodmatt on Thursday August 09, 2018 @04:26AM (#17722482)
Commercial $$$, I thought self promo for commercial license was against the rules?
Re:Show HN: ResponsiveDevices.css – responsive device frames... by osrec on Thursday August 09, 2018 @07:16AM (#17723165)
I don't think it's against the rules of HN or GitHub. To be fair, it is a small fee, and helps fund the adding of new devices. At the end of the day, dev time is not free, and this took many days of research and development to perfect :)
Re:Show HN: ResponsiveDevices.css – responsive device frames... by chillybean on Thursday August 09, 2018 @08:02AM (#17723387)
Very cool. How did you scale device borders relatively?
Re:Show HN: ResponsiveDevices.css – responsive device frames... by osrec on Thursday August 09, 2018 @08:05AM (#17723415)
The borders are not really borders, but a slightly larger element (scaled by a relative percentage) layered under the element we want to add a border to. That way, as the device scales up or down, the "border" also appears to scale!