BaseTheme is a dashboard-style project built with Laravel and Vue.js. This project provides a kick-start for developers looking to create web applications with a modern dashboard interface.
Before getting started, ensure you have the following installed:
-
Clone the repository into your XAMPP
htdocsdirectory:git clone https://github.com/LACV/baseTheme.git baseTheme
-
Navigate to the project directory:
cd baseTheme -
Install PHP dependencies using Composer:
composer install
-
Create a new MySQL database named
stockvaultusing phpMyAdmin or any other database management tool. -
Run database migrations to create tables:
php artisan migrate
-
Start the Laravel server:
php artisan serve
-
Compile Vue.js assets:
npm install npm run dev
-
Open your web browser and navigate to
http://localhost:8000to access the BaseTheme dashboard.
- Buttons component import: We use the directive
<script setup>
import Buttons from '@/components/buttons.vue';
</script>- Using the Buttons component:
In the
<template>block, we call the<Buttons>component and add a title inside it.
<template>
<Buttons>
Botón
</Buttons>
</template>- Specify button color:
To specify the color of the button, we use the
colorButtonclass.
<Buttons colorButton="primary">
Button Primary
</Buttons>
- Types of Colors for the Button:
We can use different values for the
colorButtonattribute for different types of colors:
"primary" color primary
"secondary" color secondary
"i" color info
"g" color gray
"s" color success
"e" color danger
"w" color warning
"p" color purple
"glow-d" color glow danger
"glow-w" color glow warning
"glow-pr" color glow primary
"glow-pu" color glow purple
"glow-s" color glow secondary
"glow-su" color glow success
"glow-i" color glow info- Specify Button Width:
To specify the width of the button, we use the
maxwidthButtonattribute.
<Buttons colorButton="primary" maxwidthButton>
Button Primary
</Buttons>- Import of the Popup component: We use the directive
<script setup>
import Popup from '@/components/Popup.vue';
</script>- Using the Popup component:
In the
<template>block, we call the<Popup>component
<PopUp title="Title Form" maxWidth="sm">
<template #buttonForm>
<Buttons colorButton="e" @click="usePopUp.toggleShowClose" >
Cancelar
</Buttons>
<Buttons colorButton="s">
Guardar
</Buttons>
</template>
</PopUp>
<Buttons @click="usePopUp.toggleShowClose">
Button Open Modal
</Buttons>
This code will allow us to open the popup,-
Import of the
InformationCardsComponent: We use the<script setup>directive to import theInformationCardscomponent from the path@/components/Spreadsheet.vue. -
Use of the
InformationCardsComponent: Inside the<template>block, we invoke the<InformationCards>component and configure its corresponding properties:
<InformationCards
title="title"
footer="top 1"
Icon="menu"
colorcontent="pr">
Here you can put relevant information!
</InformationCards>- Explanation of the properties of the
<Information Cards>components:
"title:" Allows you to add a title to the sheet.
"Footer:" Allows you to add a title, number, or description at the bottom of the sheet.
"icon:" Allows you to specify the name of the icon you want to use (only works with Google Fonts icons).
"colorcontent: pr" Allows you to modify the color of the sheet.- Types of Colors for the Sheets:
Different values can be used for the
colorcontentproperty:
"pr" color primary
"se" color secondary
"i" color info
"g" color gray
"su" color success
"e" color danger
"w" color warning
"p" color purpleContributions are welcome! Feel free to submit pull requests or open issues on the GitHub repository.
This project is open-sourced software licensed under the MIT license.