DEV Community

Cover image for Got bored and made iPhone 12 with Tailwindcss
Fayaz Ahmed
Fayaz Ahmed

Posted on

Got bored and made iPhone 12 with Tailwindcss

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)

Collapse
codemattermedia profile image
codemattermedia

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

Collapse
mananchawla2005 profile image
Manan Chawla

Awesome 👍