/page.vue Secret
Last active
January 20, 2022 14:48
Simple page uses dynamic table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<ProductTable /> | |
<UserTable /> | |
</template> | |
<script> | |
import ProductTable from '../tables/ProductTable'; | |
import UserTable from '../tables/UserTable'; | |
export default { | |
name: 'HomePage', | |
components: { | |
ProductTable, | |
UserTable | |
} | |
} | |
</script> | |
<style> | |
table { | |
border: 1px solid rgb(13, 58, 126); | |
} | |
th { | |
background: rgb(183, 202, 245); | |
border: 1px solid black; | |
padding: 4px 10px 4px 10px; | |
} | |
td { | |
border: 1px solid rgb(185, 221, 245); | |
padding: 4px; | |
} | |
button { | |
background: rgb(183, 202, 245); | |
border: 1px solid #999; | |
padding: 4px; | |
font-size: 0.9rem; | |
margin-top: 10px; | |
margin-bottom: 10px; | |
} | |
button:hover { | |
cursor: pointer; | |
background: rgb(102, 138, 221); | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment