Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
- <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
- <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
- <!--[if gt IE 8]> <html class="no-js"> <!--<![endif]-->
- <html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <title>Tail wind example</title>
- <meta name="description" content="">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="build/tailwind.css">
- <script type="module" src="https://cdn.jsdelivr.net/npm/vue@2.6.12/dist/vue.js"></script>
- <header class="flex items-center justify-around bg-black">
- <img src=""/ class="h-8">
- <button @click="isOpen=!isOpen" type="button" class="text-black bg-blue-900 focus:text-white hover:text-red-900">Dude</button>
- <div class= " isOpen ? 'block':'hidden'"class="px-2 pb-4">
- <a href="#" class="block px-2 bg-white py-1font-semibold hover:bg-blue-300">Resume1</a>
- <a href="#" class="block px-2 mt-1 py-1font-semibold hover:bg-blue-300">Resume1</a>
- <a href="#" class="block px-2 py-1font-semibold hover:bg-blue-300">Resume1</a>
- <a href="#" class="block px-2 mt-1 py-1font-semibold hover:bg-blue-300">Resume1</a> <a href="#" class="block px-2 py-1font-semibold hover:bg-blue-300">Resume1</a>
- <a href="#" class="block px-2 mt-1 py-1font-semibold hover:bg-blue-300">Resume1</a>
- </header>
- </div>
- </head>
- <body>
- </body>
- <script>
- export default{
- data(){
- return{
- isOpen:false,
- }
- }
- }
- </script>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement