99 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			99 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Vue
		
	
	
	
	
	
| <template>
 | |
|   <section :class="['dashboard', darkMode ? 'section-darkmode' : 'section-lightmode']">
 | |
|     <h2 :class="['heading', darkMode ? 'heading-darkmode' : 'heading-lightmode']">My tasks</h2>
 | |
|     <div class="shortcuts">
 | |
|       <input :class="[darkMode ? 'input-darkmode' : 'input-lightmode']" type="button" id="maintenance-visits"
 | |
|         value="My Maintenance Visits">
 | |
|       <input :class="[darkMode ? 'input-darkmode' : 'input-lightmode']" type="button" id="production-orders"
 | |
|         value="My Production Orders">
 | |
|       <input :class="[darkMode ? 'input-darkmode' : 'input-lightmode']" type="button" id="solutions" value="My Solutions">
 | |
|       <input :class="[darkMode ? 'input-darkmode' : 'input-lightmode']" type="button" id="issue-slips"
 | |
|         value="My Issue Slips">
 | |
|     </div>
 | |
|   </section>
 | |
| </template>
 | |
| 
 | |
| 
 | |
| <script setup>
 | |
| import { ref } from 'vue';
 | |
| 
 | |
| const darkMode = ref(true)
 | |
| </script>
 | |
| 
 | |
| <script>
 | |
| export default {
 | |
|   name: "Dashboard",
 | |
| };
 | |
| </script> 
 | |
|   
 | |
|   
 | |
| <style scoped>
 | |
| .dashboard {
 | |
|   display: flex;
 | |
|   flex-direction: column;
 | |
|   align-items: flex-start;
 | |
|   justify-content: center;
 | |
|   align-self: stretch;
 | |
|   width: 100%;
 | |
|   padding: 1.875rem 3.125rem 3.125rem;
 | |
|   gap: 1.25rem;
 | |
|   border-radius: 0.625rem;
 | |
|   box-shadow: 0.25rem 0.25rem 0.25rem 0rem rgba(0, 0, 0, 0.25);
 | |
| }
 | |
| 
 | |
| .section-darkmode {
 | |
|   background-color: #2c2c2c;
 | |
| }
 | |
| 
 | |
| .section-lightmode {
 | |
|   background-color: #fff;
 | |
| }
 | |
| 
 | |
| .heading {
 | |
|   letter-spacing: 5%;
 | |
|   text-decoration-line: underline;
 | |
|   font: 400 1rem/2rem Overpass, sans-serif;
 | |
| }
 | |
| 
 | |
| .heading-darkmode {
 | |
|   color: #fff;
 | |
| }
 | |
| 
 | |
| .heading-lightmode {
 | |
|   color: #000;
 | |
| }
 | |
| 
 | |
| .shortcuts {
 | |
|   display: flex;
 | |
|   flex-direction: row;
 | |
|   justify-content: space-between;
 | |
|   align-content: center;
 | |
|   padding: 0.625rem 2.5rem;
 | |
|   gap: 2.5rem;
 | |
| }
 | |
| 
 | |
| input {
 | |
|   display: flex;
 | |
|   flex-direction: row;
 | |
|   align-items: center;
 | |
|   justify-content: center;
 | |
|   width: 15rem;
 | |
|   height: 4rem;
 | |
|   border-radius: 0.625rem;
 | |
|   padding: 0.9375rem 1.25rem;
 | |
|   border: none;
 | |
|   text-align: center;
 | |
|   letter-spacing: 5%;
 | |
|   font: 400 0.875rem/2rem Overpass, sans-serif;
 | |
| }
 | |
| 
 | |
| .input-darkmode {
 | |
|   color: #fff;
 | |
|   background-color: #343434;
 | |
| }
 | |
| 
 | |
| .input-lightmode {
 | |
|   color: #000;
 | |
|   background-color: #E4E4E4;
 | |
| }
 | |
| </style> |