-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from mkocansey/main
Stable version
- Loading branch information
Showing
33 changed files
with
474 additions
and
304 deletions.
There are no files selected for viewing
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,2 +1,46 @@ | ||
# bladewind-ui-components | ||
UI Components using TailwindCSS , Laravel Blade Templates and vanilla Javascript | ||
<p><img src="https://img.shields.io/github/license/mkocansey/bladewind" alt="License" /></p><br /> | ||
|
||
## About BladewindUI | ||
|
||
BladewindUI is a collection of UI components written purely using TailwindCSS, Laravel blade templates and Vanilla Javascript. These components are super simple to use and come with different levels of customization. | ||
<br /><br /> | ||
### Components Include | ||
|
||
- **[Alert](https://bladewindui.com/component/alert)** | ||
- **[Avatar](https://bladewindui.com/component/avatar)** | ||
- **[Button](https://bladewindui.com/component/button)** | ||
- **[Card](https://bladewindui.com/component/card)** | ||
- **[Centered Element](https://bladewindui.com/component/centered-element)** | ||
- **[Checkbox](https://bladewindui.com/component/checkbox)** | ||
- **[Datepicker](https://bladewindui.com/component/datepicker)** | ||
- **[Dropdown](https://bladewindui.com/component/dropdown)** | ||
- **[Empty State](https://bladewindui.com/component/empty-state)** | ||
- **[Filepicker](https://bladewindui.com/component/filepicker)** | ||
- **[Horizontal Line Graph](https://bladewindui.com/component/horizontal-line-graph)** | ||
- **[List View](https://bladewindui.com/component/list-view)** | ||
- **[Modal](https://bladewindui.com/component/modal)** | ||
- **[Notification](https://bladewindui.com/component/notification)** | ||
- **[Process Indicator](https://bladewindui.com/component/process-indicator)** | ||
- **[Progress Bar](https://bladewindui.com/component/progress-bar)** | ||
- **[Radio Button](https://bladewindui.com/component/radio-button)** | ||
- **[Rating](https://bladewindui.com/component/rating)** | ||
- **[Statistic](https://bladewindui.com/component/statistic)** | ||
- **[Spinner](https://bladewindui.com/component/spinner)** | ||
- **[Tab](https://bladewindui.com/component/tab)** | ||
- **[Table](https://bladewindui.com/component/table)** | ||
- **[Tag](https://bladewindui.com/component/tag)** | ||
- **[Textbox](https://bladewindui.com/component/textbox)** | ||
- **[Textarea](https://bladewindui.com/component/textarea)** | ||
- **[Toggle](https://bladewindui.com/component/toggle)** | ||
|
||
<br /><br /> | ||
|
||
## Security Vulnerabilities | ||
|
||
If you discover a security vulnerability, please e-mail Michael K. Ocansey at [[email protected]](mailto:[email protected]). | ||
|
||
<br /> | ||
|
||
## License | ||
|
||
BladewindUI components is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). |
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
162 changes: 100 additions & 62 deletions
162
src/resources/assets/compiled/css/bladewind-ui.min.css
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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,19 +1,19 @@ | ||
@props([ | ||
'heading' => 'Error!', | ||
'description' => 'Something went wrong', | ||
'buttonText' => 'Go to homepage', | ||
'buttonUrl' => '', | ||
'image' => '/assets/images/ss-login.svg', | ||
'button_text' => 'Go to homepage', | ||
'button_url' => '/', | ||
'image' => '', | ||
]) | ||
<div class="flex justify-center items-center"> | ||
<div class="max-w-xl px-8"> | ||
<img src="{{ $image }}" alt="{{$heading}}" class="p-6 h-1/2" /> | ||
<div class="p-6">{!!$image!!}</div> | ||
<h1 class="text-center text-2xl zoom-out font-extralight tracking-wider text-red-400 -mt-10">{{ $heading }}</h1> | ||
<p class="mt-1 mb-7 font-light text-sm text-gray-600/80 text-center px-12"> | ||
<p class="mt-2 mb-12 font-light text-gray-600/80 text-center px-12"> | ||
{!! $description !!} | ||
</p> | ||
<div class="text-center pt-2"> | ||
<a href="{{ $buttonUrl }}"><x-button type="primary">{{ $buttonText }}</x-button></a> | ||
<a href="{{ $button_url }}"><x-bladewind::button type="primary" size="small">{{ $button_text }}</x-bladewind::button></a> | ||
</div> | ||
</div> | ||
</div> |
30 changes: 16 additions & 14 deletions
30
src/resources/views/components/horizontal-line-graph.blade.php
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,18 +1,20 @@ | ||
@php use Illuminate\Support\Str; @endphp | ||
@props([ | ||
'label' => '', | ||
'percentage' => 0, | ||
'color' => 'gray', | ||
'showPercentage' => 'true', | ||
'showLabel' => 'true' | ||
'color' => 'blue', | ||
'shade' => 'faint', | ||
'percentage_label_opacity' => '50', | ||
'css' => '', | ||
]) | ||
<div class="bg-gray-300 bg-blue-300 bg-green-300 bg-red-300 bg-yellow-300 bg-black bg-orange-300"></div> | ||
<div class="w-[0%] w-[1%] w-[2%] w-[3%] w-[4%] w-[5%] w-[6%] w-[7%] w-[8%] w-[9%] w-[10%] w-[11%] w-[12%] w-[13%] w-[14%] w-[15%] w-[16%] w-[17%] w-[18%] w-[19%] w-[20%] w-[21%] w-[22%] w-[23%] w-[24%] w-[25%] w-[26%] w-[27%] w-[28%] w-[29%] w-[30%] w-[31%] w-[32%] w-[33%] w-[34%] w-[35%] w-[36%] w-[37%] w-[38%] w-[39%] w-[40%] w-[41%] w-[42%] w-[43%] w-[44%] w-[45%] w-[46%] w-[47%] w-[48%] w-[49%] w-[50%] w-[51%] w-[52%] w-[53%] w-[54%] w-[55%] w-[56%] w-[57%] w-[58%] w-[59%] w-[60%] w-[61%] w-[62%] w-[63%] w-[64%] w-[65%] w-[66%] w-[67%] w-[68%] w-[69%] w-[70%] w-[71%] w-[72%] w-[73%] w-[74%] w-[75%] w-[76%] w-[77%] w-[78%] w-[79%] w-[80%] w-[81%] w-[82%] w-[83%] w-[84%] w-[85%] w-[86%] w-[87%] w-[88%] w-[89%] w-[90%] w-[91%] w-[92%] w-[93%] w-[94%] w-[95%] w-[96%] w-[97%] w-[98%] w-[99%] w-[100%]"></div> | ||
|
||
<div {{ $attributes->merge(['class' => ""]) }}> | ||
@if($showLabel == 'true') | ||
<span class="text-xs">{{ $label }} @if($showPercentage == 'true')(<span class="legend">{{ $slot }}{{ $percentage}}</span>%) @endif</span> | ||
@endif | ||
<div class="bg-gray-100 w-full mt-1 mb-4"> | ||
<div class="w-[{{$percentage}}%] h-1 bg-{{$color}}-300 rounded-full bar-width"></div> | ||
</div> | ||
</div> | ||
<span class="opacity-0 opacity-5 opacity-10 opacity-20 opacity-25 opacity-30 opacity-40 opacity-50 opacity-60 opacity-70 opacity-75 opacity-80 opacity-90 opacity-95 opacity-100"></span> | ||
<x-bladewind::progress-bar | ||
percentage="{{$percentage}}" | ||
shade="{{$shade}}" | ||
color="{{$color}}" | ||
percentage_prefix="{{$label}}" | ||
show_percentage_label="true" | ||
show_percentage_label_inline="false" | ||
percentage_label_position="top left" | ||
percentage_label_opacity="{{$percentage_label_opacity}}" | ||
css={{$css}} /> |
Oops, something went wrong.