-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd46b5c
commit 4c842de
Showing
16 changed files
with
2,037 additions
and
112 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module.exports = { | ||
purge: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'], | ||
darkMode: 'media', // or 'media' or 'class' | ||
theme: { | ||
extend: {}, | ||
}, | ||
variants: { | ||
extend: {}, | ||
}, | ||
plugins: [], | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,29 @@ | ||
<template> | ||
<div id="nav"> | ||
<router-link to="/">Home</router-link> | | ||
<router-link to="/login">Login</router-link> | | ||
<div class="App min-w-screen min-h-screen flex flex-col bg-gray-100 font-sans"> | ||
<nrad-header></nrad-header> | ||
|
||
<div class="content-wrapper pt-8 flex-1 bg-grey-lighter"> | ||
<div class="content py-4 container max-w-6xl mx-auto bg-white m-4 p-6 rounded-md shadow-md"> | ||
<router-view/> | ||
</div> | ||
</div> | ||
|
||
<nrad-footer></nrad-footer> | ||
</div> | ||
<router-view /> | ||
</template> | ||
|
||
<script> | ||
</script> | ||
import Header from "./layout/Header.vue" | ||
import Footer from "./layout/Footer.vue" | ||
export default { | ||
components: { | ||
"nrad-header": Header, | ||
"nrad-footer": Footer | ||
} | ||
} | ||
</script> | ||
|
||
<style> | ||
</style> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
<template> | ||
<h1>Welcome!</h1> | ||
<div class=""> | ||
<h1 class="text-3xl">Welcome!</h1> | ||
<p class="mt-4 leading-normal"> | ||
Welcome to the Nuts Registry Administration Demo. | ||
</p> | ||
<p class="my-1 leading-normal"> | ||
This app lets you test how to administer your customers into the Nuts Distributed Registry. | ||
</p> | ||
<p class="my-1 leading-normal"> | ||
You have to login first to administer your customers. | ||
</p> | ||
</div> | ||
</template> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,42 @@ | ||
<template> | ||
<form ref="form" :model="form" label-width="120px"> | ||
<input placeholder="Username" /> | ||
<input placeholder="Password" /> | ||
<button>Cancel</button> | ||
<form class="my-4 flex justify-center"> | ||
<div class="space-y-4"> | ||
|
||
<div> | ||
<label for="username_input" class="block text-sm font-medium text-gray-700">Username</label> | ||
<input id="username_input" | ||
v-model="username" | ||
type="text" | ||
placeholder="Username" | ||
class="flex-1 py-2 px-4 block border border-gray-300 rounded-md" | ||
/> | ||
</div> | ||
|
||
<div> | ||
<label for="password_input" class="block text-sm font-medium text-gray-700">Password</label> | ||
<input | ||
id="password_input" | ||
v-model="password" | ||
type="password" | ||
placeholder="Password" | ||
class="flex-1 py-2 px-4 block border border-gray-300 rounded-md" | ||
/> | ||
</div> | ||
<button | ||
@click="onSubmit" | ||
class="w-full btn-submit" | ||
>Login | ||
</button> | ||
</div> | ||
</form> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data() { | ||
return { | ||
form: { | ||
username: '', | ||
password: '' | ||
} | ||
username: '[email protected]', | ||
password: '' | ||
} | ||
}, | ||
methods: { | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<template> | ||
<router-view></router-view> | ||
</template> | ||
|
||
<script> | ||
export default { } | ||
</script> | ||
|
||
<style> | ||
</style> |
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
</head> | ||
<body> | ||
<div id="app"> | ||
<router-view></router-view> | ||
</div> | ||
</body> | ||
</html> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<template> | ||
<div class="footer-wrapper border-t border-grey-light bg-grey-lighter mt-auto p"> | ||
<div class="footer py-4 container mx-auto max-w-6xl text-grey font-light text-sm tracking-wide flex justify-between"> | ||
<span> | ||
2021(C) Nuts Foundation. | ||
</span> | ||
<a href="https://nuts.nl" class="no-underline text-grey hover:text-grey-dark">About</a> | ||
</div> | ||
</div> | ||
</template> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<template> | ||
<div class="header-wrapper p-4 bg-white border-b border-gray-light"> | ||
<div class="header container flex items centered"> | ||
<div class="menu ml-auto font-light space-x-3"> | ||
<router-link to="/" class="no-underline hover:text-grey-dark text-grey">Home</router-link> | ||
<router-link to="/login" class="no-underline hover:text-grey-dark text-grey">Login</router-link> | ||
</div> | ||
</div> | ||
</div> | ||
</template> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
.btn-submit { | ||
@apply inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500; | ||
} |
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