Skip to content

Commit

Permalink
feat(promise): add menu and icon for promises
Browse files Browse the repository at this point in the history
  • Loading branch information
mixth committed Sep 18, 2024
1 parent 32c3d40 commit 1934226
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/NavigationBar/NavigationBar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
{ label: 'รัฐออกกฎหมายอย่างไร', url: '/legislative-process', type: MenuTypes.link }
]
},
{
label: 'ติดตามคำสัญญา',
icon: PromiseIcon,
url: '/promises',
type: MenuTypes.both
},
{
label: 'เกี่ยวกับเรา',
icon: WeVisIcon,
Expand All @@ -58,6 +64,7 @@
import SideMenuButton from './SideMenuButton.svelte';
import SideMenuList from './SideMenuList.svelte';
import SideMenuPane from './SideMenuPane.svelte';
import PromiseIcon from '$components/icons/PromiseIcon.svelte';
let screenSize: number;
let previousFromTop = 0;
Expand Down
4 changes: 4 additions & 0 deletions src/components/icons/Icons.story.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import InstagramIcon from './InstagramIcon.svelte';
import XIcon from './XIcon.svelte';
import PoliticianChangeIcon from './PoliticianChangeIcon.svelte';
import PromiseIcon from './PromiseIcon.svelte';
export let Hst: Hst;
Expand All @@ -38,6 +39,9 @@
<Hst.Variant title="VoteIcon">
<Vote {size} />
</Hst.Variant>
<Hst.Variant title="PromiseIcon">
<PromiseIcon {size} />
</Hst.Variant>
<Hst.Variant title="WeVisIcon">
<WeVisIcon {size} />
</Hst.Variant>
Expand Down
11 changes: 11 additions & 0 deletions src/components/icons/PromiseIcon.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<script>
import BaseSvg from './BaseSvg.svelte';
</script>

<BaseSvg {...$$restProps}>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M11.27 5.95998C11.07 5.95998 10.89 5.99998 10.72 6.06998C10.51 5.53998 9.97996 5.16998 9.37996 5.16998C8.90996 5.16998 8.49996 5.38998 8.22996 5.72998L7.91996 5.24998L8.55996 2.24998C8.72996 1.46998 8.22996 0.699985 7.43996 0.529985C7.05996 0.449985 6.67996 0.529985 6.34996 0.729985C6.01996 0.929985 5.79996 1.25998 5.71996 1.63998L5.68996 1.77998C5.47996 1.45998 5.15996 1.22998 4.77996 1.14998C4.39996 1.06998 4.01996 1.13998 3.68996 1.34998C3.35996 1.55998 3.13996 1.87998 3.05996 2.25998C2.97996 2.63998 3.04996 3.01998 3.25996 3.34998L4.83996 5.80998L4.24996 8.57998C3.81996 8.67999 3.44996 8.94998 3.22996 9.35998C2.87996 9.98998 2.91996 10.82 3.34996 11.53L3.62996 12.01C3.92996 12.52 4.20996 13.01 4.62996 13.57C5.57996 14.85 6.84996 15.5 8.42996 15.5C10.79 15.5 12.72 13.58 12.72 11.21V7.39998C12.72 6.59998 12.07 5.94998 11.27 5.94998V5.95998ZM11.27 6.95998C11.52 6.95998 11.72 7.15998 11.72 7.40998V10.11C11.72 10.36 11.52 10.55 11.28 10.55C11.04 10.55 10.84 10.35 10.84 10.11V9.18998V7.40998C10.84 7.15998 11.04 6.95998 11.29 6.95998H11.27ZM9.37996 6.16998C9.62996 6.16998 9.82996 6.36998 9.82996 6.61998V9.41998C9.82996 9.66998 9.62996 9.85998 9.37996 9.85998C9.12996 9.85998 8.93996 9.65998 8.93996 9.41998V6.91998V6.61998C8.93996 6.36998 9.13996 6.16998 9.38996 6.16998H9.37996ZM6.70996 1.84998C6.72996 1.72998 6.79996 1.62998 6.89996 1.56998C6.99996 1.50998 7.11996 1.47998 7.23996 1.50998C7.47996 1.55998 7.63996 1.79998 7.57996 2.03998L6.89996 5.23998L6.41996 7.51998L7.39996 7.72998L7.62996 6.63998L7.93996 7.11998V8.58998C7.82996 8.55999 7.71996 8.53998 7.59996 8.53998H5.29996L5.87996 5.81998L6.43996 3.18999L6.71996 1.85998L6.70996 1.84998ZM4.10996 2.80998C4.04996 2.70999 4.01996 2.58998 4.04996 2.46998C4.07996 2.34998 4.14996 2.24998 4.24996 2.18998C4.31996 2.13998 4.40996 2.11998 4.48996 2.11998C4.63996 2.11998 4.77996 2.18998 4.86996 2.32998L5.40996 3.17999L5.14996 4.41999L4.11996 2.80998H4.10996ZM8.42996 14.5C6.55996 14.5 5.71996 13.35 5.40996 12.94C5.04996 12.46 4.77996 11.99 4.49996 11.51L4.20996 11.02C3.91996 10.53 3.95996 10.1 4.09996 9.84999C4.17996 9.70998 4.34996 9.52998 4.66996 9.52998H7.58996C7.81996 9.52998 8.01996 9.71999 8.01996 9.95998C8.01996 10.2 7.82996 10.39 7.58996 10.39H5.29996V11.39H7.58996C8.08996 11.39 8.53996 11.12 8.78996 10.73C8.96996 10.81 9.16996 10.86 9.37996 10.86C9.58996 10.86 9.78996 10.81 9.96996 10.73C10.2 11.22 10.7 11.56 11.27 11.56C11.42 11.56 11.56 11.53 11.69 11.49C11.55 13.17 10.15 14.51 8.42996 14.51V14.5Z"
/>
</BaseSvg>

0 comments on commit 1934226

Please sign in to comment.