Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new EPinType.Goal #19

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added public/images/markers/goal-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/markers/goal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/photos/default/goal-photo.jpg
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What an amazing illustration! Love it!

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/components/Map/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,10 @@ export const DEFAULT_FILTERS: IFilter[] = [
name: 'Missing',
type: 'missing',
checked: true
},
{
name: 'Goal',
type: 'goal',
checked: true
}
]
12 changes: 11 additions & 1 deletion src/data/places.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,16 @@ export const PLACES: IPin[] = [
date: '2024-06-01',
photo: '/photos/AuNedelec/palo_santo.jpg'
},
{
author: 'Auregan Nedelec',
username: 'AuNedelec',
type: EPinType.Goal,
city: 'Helsinki',
country: 'Finland',
coordinates: [60.1674881, 24.9427473],
date: '2024-06-26',
photo: '/photos/default/goal-photo.jpg'
},
{
author: 'Auregan Nedelec',
username: 'AuNedelec',
Expand Down Expand Up @@ -301,5 +311,5 @@ export const PLACES: IPin[] = [
coordinates: [45.5256, 4.8743],
date: '2022-12-08',
photo: '/photos/JuditKaramazov/vienne-saint-maurice.jpg'
}
},
]
3 changes: 2 additions & 1 deletion src/lib/types/pin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export enum EPinType {
Event = 'event',
Home = 'home',
Picture = 'picture',
Missing = 'missing'
Missing = 'missing',
Goal = 'goal'
}

export interface IPin {
Expand Down
Loading