Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/search button #12

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
392 changes: 199 additions & 193 deletions src/composer.lock
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIET MEER AAN DEZE PR ZITTEN
WORDT GEFIXT DOOR @Chrinsieboy IN #14

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/resources/vue/Icons/scan-item.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions src/resources/vue/pages/components/SearchBar.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<template>
Huib8 marked this conversation as resolved.
Show resolved Hide resolved
<div>
<div class="search-bar">
<svg class="scan-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15 3H21V8H19V5H15V3ZM9 3V5H5V8H3V3H9ZM15 21V19H19V16H21V21H15ZM9 21H3V16H5V19H9V21ZM3 11H21V13H3V11Z"></path></svg>
<input type="text" class="gray-input" v-model="value" placeholder="Enter text">
</div>
</div>
</template>

<script>
export default {
name: 'GrayInput',
data() {
return {
value: ''
};
}
};
</script>

<style scoped>
.gray-input {
background-color: lightgray;
Huib8 marked this conversation as resolved.
Show resolved Hide resolved
border: 1px;
border-radius: 5px;
width: 200px;
padding: 10px;
}

.search-bar {
display: flex;
align-items: center;
}

.search-bar i {
margin-right: 5px;
}

.scan-icon {
width: 38px;
height: 38px;
margin-right: 15px;
}
</style>
29 changes: 29 additions & 0 deletions src/resources/vue/pages/components/SearchButton.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<template>
<div>
<button class="small-button">
<div class="search">zoek</div>
Huib8 marked this conversation as resolved.
Show resolved Hide resolved
</button>
</div>
</template>

<script>
</script>
<style scoped>
.small-button {
background-color: #FF8C00;
color: white;
padding: 10px 20px;
border-radius: 5px;
height: 30px;
width: 100px;
cursor: pointer;
border: none;
display: flex;
justify-content: center;
align-items: center;
}

.search {
font-size: 15px;
}
</style>
37 changes: 37 additions & 0 deletions src/resources/vue/pages/components/terminal-login-scan.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<template>
<div class="gray">
<SearchBar></SearchBar>
<div class="spacer"></div>
<SearchButton></SearchButton>
</div>
</template>

<script>
import SearchBar from './SearchBar.vue';
import SearchButton from './SearchButton.vue';

export default {
components: {
SearchButton,
SearchBar
},
};

</script>
<style>
.gray {
background-color: #f2f2f2;
padding: 20px;
border-radius: 5px;
width: 300px;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;

}
.spacer {
margin-bottom: 20px;
}

</style>
33 changes: 31 additions & 2 deletions src/resources/vue/pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,40 @@
<template>
Huib8 marked this conversation as resolved.
Show resolved Hide resolved
<h1>Hello World!</h1>
<div class="gray">
<SearchBar></SearchBar>
<div class="spacer"></div>
<SearchButton></SearchButton>
</div>
</template>

<script>
import SearchBar from './components/SearchBar.vue';
import SearchButton from './components/SearchButton.vue';

</script>
export default {
components: {
SearchButton,
SearchBar
},
};

</script>
<style>
.gray {
background-color: #f2f2f2;
padding: 20px;
border-radius: 5px;
width: 300px;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;

}
.spacer {
margin-bottom: 20px;
}

body {
background-color: gray;
}
</style>
4 changes: 4 additions & 0 deletions src/routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
return $request->user();
});

Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
Huib8 marked this conversation as resolved.
Show resolved Hide resolved
Huib8 marked this conversation as resolved.
Show resolved Hide resolved
return $request->user();
});