Skip to content

Commit

Permalink
pin icon
Browse files Browse the repository at this point in the history
  • Loading branch information
quiple committed Dec 21, 2024
1 parent ffd2400 commit 0ddcf35
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions src/components/icons/Pin.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
import {createSinglePathSVG} from './TEMPLATE'

export const Pin = createSinglePathSVG({
path: 'M12 15H19V12.5C16 10 16.5 6.5 16.5 3H7.5C7.5 6.5 8 10 5 12.5V15H12ZM12 15V21',
})

export const Pin_Stroke2_Corner0_Rounded = createSinglePathSVG({
path: 'M6.5 3a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v3.997a6.25 6.25 0 0 0 1.83 4.42l.377.376A1 1 0 0 1 20 12.5V15a1 1 0 0 1-1 1h-6v5a1 1 0 1 1-2 0v-5H5a1 1 0 0 1-1-1v-2.5a1 1 0 0 1 .293-.707l.376-.377A6.25 6.25 0 0 0 6.5 6.996V3.001Zm2 1v2.997a8.25 8.25 0 0 1-2.416 5.834L6 12.914V14h12v-1.086l-.084-.083A8.25 8.25 0 0 1 15.5 6.997V4h-7Z',
path: 'M6.5 3C6.5 2.44772 6.94772 2 7.5 2H16.5C17.0523 2 17.5 2.44772 17.5 3C17.5 3.48483 17.4917 3.95217 17.4836 4.40529C17.461 5.68303 17.4403 6.84775 17.6134 7.97294C17.836 9.41979 18.3711 10.6742 19.6402 11.7318C19.8682 11.9218 20 12.2032 20 12.5V15C20 15.5523 19.5523 16 19 16H13V21C13 21.5523 12.5523 22 12 22C11.4477 22 11 21.5523 11 21V16H5C4.44772 16 4 15.5523 4 15V12.5C4 12.2032 4.13182 11.9218 4.35982 11.7318C5.62887 10.6742 6.16404 9.41979 6.38663 7.97294C6.55973 6.84775 6.53905 5.68303 6.51635 4.40529C6.5083 3.95217 6.5 3.48483 6.5 3ZM8.511 4C8.51234 4.07642 8.51374 4.15318 8.51514 4.23023C8.53922 5.5553 8.56488 6.96729 8.36337 8.27706C8.10602 9.94981 7.47224 11.573 6 12.9506V14H18V12.9506C16.5278 11.573 15.894 9.94981 15.6366 8.27706C15.4351 6.96729 15.4608 5.5553 15.4849 4.23023C15.4863 4.15318 15.4877 4.07642 15.489 4H8.511Z',
})

export const Pin_Stroke2_5_Corner0_Rounded = createSinglePathSVG({
path: 'M6.25 3C6.25 2.30964 6.80964 1.75 7.5 1.75H16.5C17.1904 1.75 17.75 2.30964 17.75 3C17.75 3.49672 17.7416 3.9711 17.7335 4.42796C17.711 5.69793 17.6909 6.8325 17.8605 7.93493C18.0762 9.33723 18.5889 10.5303 19.8002 11.5397C20.0852 11.7772 20.25 12.129 20.25 12.5V15C20.25 15.6904 19.6904 16.25 19 16.25H13.25V21C13.25 21.6904 12.6904 22.25 12 22.25C11.3096 22.25 10.75 21.6904 10.75 21V16.25H5C4.30964 16.25 3.75 15.6904 3.75 15V12.5C3.75 12.129 3.91478 11.7772 4.19977 11.5397C5.41108 10.5303 5.9238 9.33723 6.13954 7.93493C6.30914 6.8325 6.28903 5.69793 6.26651 4.42796C6.25841 3.9711 6.25 3.49672 6.25 3ZM8.76574 4.25C8.78975 5.56787 8.81346 6.99558 8.61046 8.31507C8.35131 9.99957 7.71563 11.6502 6.25 13.0581V13.75H17.75V13.0581C16.2844 11.6502 15.6487 9.99957 15.3895 8.31507C15.1865 6.99558 15.2102 5.56787 15.2343 4.25H8.76574Z',
})

export const Pin_Filled_Corner0_Rounded = createSinglePathSVG({
path: 'M7.5 2a1 1 0 0 0-1 1v3.997a6.25 6.25 0 0 1-1.83 4.42l-.377.376A1 1 0 0 0 4 12.5V15a1 1 0 0 0 1 1h6v5a1 1 0 1 0 2 0v-5h6a1 1 0 0 0 1-1v-2.5a1 1 0 0 0-.293-.707l-.376-.377a6.25 6.25 0 0 1-1.831-4.42V3.001a1 1 0 0 0-1-1h-9Z',
path: 'M7.5 2C6.94772 2 6.5 2.44772 6.5 3C6.5 3.48483 6.5083 3.95217 6.51635 4.40529C6.53905 5.68303 6.55973 6.84775 6.38663 7.97294C6.16404 9.41979 5.62887 10.6742 4.35982 11.7318C4.13182 11.9218 4 12.2032 4 12.5V15C4 15.5523 4.44772 16 5 16H11V21C11 21.5523 11.4477 22 12 22C12.5523 22 13 21.5523 13 21V16H19C19.5523 16 20 15.5523 20 15V12.5C20 12.2032 19.8682 11.9218 19.6402 11.7318C18.3711 10.6742 17.836 9.41979 17.6134 7.97294C17.4403 6.84776 17.461 5.68304 17.4836 4.40531C17.4917 3.9522 17.5 3.48482 17.5 3C17.5 2.44772 17.0523 2 16.5 2H7.5Z',
})
2 changes: 1 addition & 1 deletion src/view/com/posts/PostFeedItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import {PostMeta} from '#/view/com/util/PostMeta'
import {Text} from '#/view/com/util/text/Text'
import {PreviewableUserAvatar} from '#/view/com/util/UserAvatar'
import {atoms as a} from '#/alf'
import {Pin_Stroke2_Corner0_Rounded as PinIcon} from '#/components/icons/Pin'
import {Pin_Stroke2_5_Corner0_Rounded as PinIcon} from '#/components/icons/Pin'
import {Repost_Stroke2_5_Corner3_Rounded as RepostIcon} from '#/components/icons/Repost'
import {ContentHider} from '#/components/moderation/ContentHider'
import {LabelsOnMyPost} from '#/components/moderation/LabelsOnMe'
Expand Down

0 comments on commit 0ddcf35

Please sign in to comment.