DEV Community

loading...
Cover image for Got bored and made iPhone 12 with Tailwindcss

Got bored and made iPhone 12 with Tailwindcss

fayaz profile image Fayaz Ahmed ・1 min read

I coded the iPhone 12. Just because.

The code can be found here

It's mostly, layers of divs and some grid utilities. I have used a custom class for the frosted glass effect and some minor configuration changes to support the positioning of buttons.
It's all HTML except the icons.

Here's how it looked at the end.
Alt Text

Discussion (2)

pic
Editor guide
Collapse
codemattermedia profile image
codemattermedia

The fact that you did this "just because" is amazing! 🏆

Collapse
mananchawla2005 profile image
Manan Chawla

Awesome 👍