Skip to content

Commit 718c53a

Browse files
committed
Icons
1 parent fea446d commit 718c53a

8 files changed

Lines changed: 252 additions & 182 deletions

File tree

assets/images/logo-48.png

2.78 KB
Loading

assets/vue/App.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,12 @@
1111
/>
1212
</nav>
1313
</div>
14-
15-
<SidebarCapacityCard class="sidebar__bottom" />
1614
</aside>
1715
</template>
1816

1917
<script setup>
2018
import SidebarLogo from './SidebarLogo.vue'
2119
import SidebarNavSection from './SidebarNavSection.vue'
22-
import SidebarCapacityCard from './SidebarCapacityCard.vue'
2320
2421
const sections = [
2522
{
@@ -35,15 +32,15 @@ const sections = [
3532
id: 'marketing',
3633
label: 'Marketing',
3734
items: [
38-
{ label: 'Campaigns', icon: 'paper-plane', route: '/campaigns', badge: 3 },
35+
{ label: 'Campaigns', icon: 'plane', route: '/campaigns' },
3936
{ label: 'Templates', icon: 'layout', route: '/templates' },
4037
],
4138
},
4239
{
4340
id: 'analytics',
4441
label: 'Analytics',
4542
items: [
46-
{ label: 'Bounces & Reports', icon: 'chart-bar', route: '/reports' },
43+
{ label: 'Bounces & Reports', icon: 'chart', route: '/reports' },
4744
],
4845
},
4946
{

assets/vue/AppSidebar.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,12 @@
1111
/>
1212
</nav>
1313
</div>
14-
15-
<SidebarCapacityCard class="sidebar__bottom" />
1614
</aside>
1715
</template>
1816

1917
<script setup>
2018
import SidebarLogo from './SidebarLogo.vue'
2119
import SidebarNavSection from './SidebarNavSection.vue'
22-
import SidebarCapacityCard from './SidebarCapacityCard.vue'
2320
2421
const sections = [
2522
{
@@ -35,7 +32,7 @@ const sections = [
3532
id: 'marketing',
3633
label: 'Marketing',
3734
items: [
38-
{ label: 'Campaigns', icon: 'paper-plane', route: '/campaigns', badge: 3 },
35+
{ label: 'Campaigns', icon: 'plane', route: '/campaigns', badge: 3 },
3936
{ label: 'Templates', icon: 'layout', route: '/templates' },
4037
],
4138
},

assets/vue/SidebarCapacityCard.vue

Lines changed: 0 additions & 105 deletions
This file was deleted.

assets/vue/SidebarLogo.vue

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
<template>
22
<RouterLink to="/" class="sidebar-logo">
33
<div class="sidebar-logo__mark">
4-
<!-- simple mark, swap with an <img> if you have a logo -->
5-
<span class="sidebar-logo__dot" />
4+
<img
5+
class="sidebar-logo__img"
6+
:src="logo"
7+
alt="Logo"
8+
/>
69
</div>
710

811
<div class="sidebar-logo__text">
@@ -19,6 +22,7 @@
1922

2023
<script setup>
2124
import { RouterLink } from 'vue-router'
25+
import logo from '../images/logo-48.png'
2226
2327
const props = defineProps({
2428
name: {
@@ -45,17 +49,15 @@ const props = defineProps({
4549
width: 32px;
4650
height: 32px;
4751
border-radius: 10px;
48-
background: linear-gradient(135deg, #4f46e5, #7c3aed);
4952
display: flex;
5053
align-items: center;
5154
justify-content: center;
5255
}
5356
54-
.sidebar-logo__dot {
55-
width: 14px;
56-
height: 14px;
57-
border-radius: 999px;
58-
background: #f9fafb;
57+
.sidebar-logo__img {
58+
width: 100%;
59+
height: 100%;
60+
object-fit: contain;
5961
}
6062
6163
.sidebar-logo__text {

assets/vue/components/base/BaseIcon.vue

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,33 @@ const props = defineProps({
1313
const icons = {
1414
users: `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-users text-slate-400 group-hover:text-slate-600" aria-hidden="true"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"></path><path d="M16 3.128a4 4 0 0 1 0 7.744"></path><path d="M22 21v-2a4 4 0 0 0-3-3.87"></path><circle cx="9" cy="7" r="4"></circle></svg><span class="font-medium text-sm">`,
1515
16-
send: `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-send text-slate-400 group-hover:text-slate-600" aria-hidden="true"><path d="M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"></path><path d="m21.854 2.147-10.94 10.939"></path></svg><span class="font-medium text-sm">C`,
16+
plane: `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-send text-slate-400 group-hover:text-slate-600" aria-hidden="true"><path d="M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"></path><path d="m21.854 2.147-10.94 10.939"></path></svg><span class="font-medium text-sm">`,
1717
1818
grid: `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-layout-dashboard text-indigo-600" aria-hidden="true"><rect width="7" height="9" x="3" y="3" rx="1"></rect><rect width="7" height="5" x="14" y="3" rx="1"></rect><rect width="7" height="9" x="14" y="12" rx="1"></rect><rect width="7" height="5" x="3" y="16" rx="1"></rect></svg><span class="font-medium text-sm">`,
1919
20-
lists: `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-list-tree text-slate-400 group-hover:text-slate-600" aria-hidden="true"><path d="M21 12h-8"></path><path d="M21 6H8"></path><path d="M21 18h-8"></path><path d="M3 6v4c0 1.1.9 2 2 2h3"></path><path d="M3 10v6c0 1.1.9 2 2 2h3"></path></svg><span class="font-medium text-sm">`,
20+
list: `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-list-tree text-slate-400 group-hover:text-slate-600" aria-hidden="true"><path d="M21 12h-8"></path><path d="M21 6H8"></path><path d="M21 18h-8"></path><path d="M3 6v4c0 1.1.9 2 2 2h3"></path><path d="M3 10v6c0 1.1.9 2 2 2h3"></path></svg><span class="font-medium text-sm">`,
21+
22+
layout: `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file-text text-slate-400 group-hover:text-slate-600" aria-hidden="true"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"></path><path d="M14 2v4a2 2 0 0 0 2 2h4"></path><path d="M10 9H8"></path><path d="M16 13H8"></path><path d="M16 17H8"></path></svg><span class="font-medium text-sm">`,
23+
24+
chart: `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chart-column text-slate-400 group-hover:text-slate-600" aria-hidden="true"><path d="M3 3v16a2 2 0 0 0 2 2h16"></path><path d="M18 17V9"></path><path d="M13 17V5"></path><path d="M8 17v-3"></path></svg>`,
25+
26+
settings: `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings text-slate-400 group-hover:text-slate-600" aria-hidden="true"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg>`,
27+
28+
rate: `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-trending-up" aria-hidden="true"><path d="M16 7h6v6"></path><path d="m22 7-8.5 8.5-5-5L2 17"></path></svg>`,
29+
30+
info: `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-alert" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><line x1="12" x2="12" y1="8" y2="12"></line><line x1="12" x2="12.01" y1="16" y2="16"></line></svg>`,
31+
32+
notification: `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-bell" aria-hidden="true"><path d="M10.268 21a2 2 0 0 0 3.464 0"></path><path d="M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"></path></svg>`,
33+
34+
search: `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-search absolute left-3 top-1/2 -translate-y-1/2 transition-colors text-slate-400" aria-hidden="true"><path d="m21 21-4.34-4.34"></path><circle cx="11" cy="11" r="8"></circle></svg>`,
35+
36+
filter: `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-funnel" aria-hidden="true"><path d="M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z"></path></svg>`,
37+
38+
edit: `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-pen" aria-hidden="true"><path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"></path></svg></button>`,
39+
40+
delete: `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-trash2 lucide-trash-2" aria-hidden="true"><path d="M10 11v6"></path><path d="M14 11v6"></path><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"></path><path d="M3 6h18"></path><path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path></svg>`,
41+
2142
22-
templates: `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file-text text-slate-400 group-hover:text-slate-600" aria-hidden="true"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"></path><path d="M14 2v4a2 2 0 0 0 2 2h4"></path><path d="M10 9H8"></path><path d="M16 13H8"></path><path d="M16 17H8"></path></svg><span class="font-medium text-sm">`,
2343
};
2444
2545
const svg = computed(() => icons[props.name] || "");

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"@babel/core": "^7.27.4",
44
"@babel/preset-env": "^7.27.2",
55
"@symfony/webpack-encore": "^5.1.0",
6+
"@vue/compiler-sfc": "^3.5.16",
67
"babel-loader": "^10.0.0",
78
"copy-webpack-plugin": "^12.0.2",
89
"file-loader": "^6.0.0",
910
"husky": "^9.1.7",
1011
"vue-loader": "^17.3.1",
11-
"vue-template-compiler": "^2.7.14",
12-
"webpack": "^5.99.9",
12+
"webpack": "5.104.1",
1313
"webpack-cli": "^6.0.1",
1414
"webpack-notifier": "^1.15.0"
1515
},

0 commit comments

Comments
 (0)