Larastrator
Build a nice looking admin panel in a blink.
Try it your self now. It's easy.
A full-featured documentation and package improvements are coming soon to make it even more easier.
I build this project to defeat the ugliness of most admin panels on the web with the power of Vue. I don't consider this as a full solution for everyone but mostly it can help a lot of people as I hope.
Demo
Intro
Larastrator is a lightweight admin panel components. it's inspired by RefactoringUI best practices. It depends on the next tools:
- Tailwindcss.
- Fontawesome 5.
- Vue framework.
vue-slideout
NPM package.vue-slide-up-down
NPM package.vue-notification
NPM package.vue-good-table
NPM package.
installation
Install the package and the dependencies from NPM:
$ npm install larastrator --save$ npm install vue vue-slideout vue-slide-up-down vue-notification vue-good-table --save$ npm install tailwindcss --save-dev
Then, you will need to to complete the tailwindcss installation https://tailwindcss.com/docs/installation
Setup
- After creating the tailwind config file inside your project, add the next configurations as well
// Add these colors to the colors objectlet colors = 'brand-grey-darker': '#606060' 'brand-grey-light': '#b6bec6' 'brand-grey-lighter': '#e9eef2' 'brand-grey-lightest': '#f7f7f7' moduleexports = // ... shadows: 'outline': '0 0 0 3px rgba(201, 210, 218, 0.5)' 'button': '0 0 0 2px rgba(33, 150, 243, 0.3)' 'alert': '0 1px 1px 0px rgba(0, 0, 0, 0.1)' // ... modules: width: 'responsive' 'hover' // ... plugins: center: true padding: '1rem' // ... // Optional // Add the default font fonts: 'sans': 'Source\\ Sans\\ Pro' // ... 'serif': 'Source\\ Sans\\ Pro' // ...
- Add the default font into your
<head>
or use your own font.
Larastrator <!--- Make sure you are using the latest version of webfont loader -->
- Import SASS files
After installation import the
sass
files into your project and copy thevariables
file in your working directory if you want to change the styling, colors, and animations.
@tailwind preflight;@tailwind components; ;; ;;;;;;;;;;;;;;; // Or // @import '~larastrator/src/sass/larastrator'; // @import './your/project/directory/variables'; // Here your custom sass @tailwind utilities;
- JavaScript You will need to import the required icons from fontawesome into your javaScript.
;;;;; configsearchPseudoElements = true;dom;library; Vue;// Example <Fa :icon="['fas', 'home']" />
- Notifications Then import the notifications package because we will need it later.
; Vue;
Components
Navbar
Larastrator Link1 Sign in Sign up 8 John Doe Online Profile Sign out
Panel
to build the panel area and the sidebar you will need to use vue-slideout
package.
<!-- panel main component --> <!-- Sidebar area --> Menu Dashboard Resources Posts Pages Submissions Media © Larastrator {{ currentYear }} <!-- Panel content area --> Page foo Page bar Page bar <!-- Page content --> <!-- Notifications area -->
Alerts
<!-- Success alert --> Success alert Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque minus sed commodi quibusdam omnis minima molestiae! Ratione molestias beatae libero dicta blanditiis laudantium eveniet ex quibusdam fugiat, corrupti, labore obcaecati. <!-- Danger alert --> Danger alert Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque minus sed commodi quibusdam omnis minima molestiae! Ratione molestias beatae libero dicta blanditiis laudantium eveniet ex quibusdam fugiat, corrupti, labore obcaecati. <!-- Info alert --> Info alert Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque minus sed commodi quibusdam omnis minima molestiae! Ratione molestias beatae libero dicta blanditiis laudantium eveniet ex quibusdam fugiat, corrupti, labore obcaecati. <!-- Warning alert --> Warning alert Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque minus sed commodi quibusdam omnis minima molestiae! Ratione molestias beatae libero dicta blanditiis laudantium eveniet ex quibusdam fugiat, corrupti, labore obcaecati.
Notification
If you want to use the notification component some were else:
Your new post has been saved!
Breadcrumb
Page 1 Page 2 Page 3 Page 4
Buttons
Button Button Button Button Button
Horizontal Form
Full name Email Gender Male Female Your hobbies Basketball Football Tennis Golf Profile image {{ inputFileName }} Country Select an option US UK Japan China Tell us more about you What's your favorite fruit? Banana Mango Apple Submit
Vertical Form
Full name Email Gender Male Female Your hobbies Basketball Football Tennis Golf Profile image {{ inputFileName }} Country Select an option U.S. of america United Kingdom Japan China Tell us more about you What's your favorite fruit? Banana Mango Apple Submit
Pagination
Prev 1 2 … 6 7 8 … 12 13 Next
Table
Table example Entry Header 1 Entry Header 2 Entry Header 3 Entry Header 4 Entry First Line 1 Entry First Line 2 Entry First Line 3 Entry First Line 4 Entry Line 1 Entry Line 2 Entry Line 3 Entry Line 4 Entry Last Line 1 Entry Last Line 2 Entry Last Line 3 Entry Last Line 4 Entry Header 1 Entry Header 2 Entry Header 3 Entry Header 4
DataTable
DataTable example Completed Pending Rejected No data for table!
Sign in
Sign in Email The email field is required. Password The password field is required. Remember me Submit Forgot password?