Skip to content

๐Ÿš€๐ŸŒฟ karamaSystem v3 - An interactive map enabling us to pin and share pictures of places we've visited together. But I be experimenting.

License

Notifications You must be signed in to change notification settings

AuNedelec/TakeYouThere

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

99 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Take you there

'Take you there' original marker/pin.

Madonna never specified "where", though

React TypeScript Next JS

๐Ÿฑ /JuditKaramazov

๐Ÿ“ Portfolio

โ˜• Blog


Table of Contents


๐Ÿ”ง Getting started

Surprisingly or not, this little creation is (again!) a Next.js project, flavored with our dearly beloved React and TypeScript wombo-combo. "Old" but gold, am I right? If by any chance you'd want to get started with Next.js and its characteristic neat results, allow me to remind you that achieving such a goal couldn't be easier: all you'll have to do is follow these steps. Carefully. Patiently. Covered in blood and sweat throughout the entire process.

  1. First, clone this repository:
$ git clone https://github.com/JuditKaramazov/TakeYouThere.git
  1. Then, install the dependencies:
$ npm install
  1. Finally, start the project:
$ npm run dev

You are good to go! However, since this repository is meant to become a "shooting range" for my co-author to get into Git and GitHub's mysteries, you will also find some useful guidelines indicating:

  1. How to run the project on your local machine for development and testing purposes. It will definitely help you get started!

  2. How to create a pull request in order to add a new marker. There's an issue template available!

Tip

Whatever you decide to do, please remember to respect the Code of Conduct while interacting with the project and the platform itself. Thank you so much for your time and patience!


๐Ÿšช Introduction

Maps have always been an interesting concept to me. Besides the ones we mentally create in our heads (this is, the basic orientation guidelines just so that we won't end up lost in our own city), the idea of a physical item revealing the very soul of the spaces we inhabit (or simply plan to visit) holds a mysterious, evocative power that not many other objects can elicit.

When it comes to video games, for instance ("you... you are back, Judit! And you are talking about games - again!" I couldn't be sick forever, guys), I recently had the pleasure to play two works that, while different in style, shape, genre, and mechanics, incorporated the map as a key element of the overall experience. The first one, Signalis, makes a clever usage of it, as it facilitates a navigation that otherwise, would be impossible for our brains to digest; like a good student of Resident Evil and Silent Hill, the map graphically represents the maze of interconnected rooms, corridors, and spaces we'll have to (re)visit to advance. On the other hand, Inscryption traps the player in a cabin in the woods, forcing them to play a card game against a mysterious, shadowed arbiter. In this case, an ever-unfurling map guides both the actions and interactions with our kidnapper, who also happens to be a threatening yet brilliant storyteller. In both cases, the mechanic and evocative connotations of the map are unparalleled: they might seem to represent mere tools, but they are also capable of expanding the limits of human imagination beyond what we'd consider possible.

This applies to the potential of virtuality, of course. What about physical maps, though?

Map of the Council of Europe.
๐Ÿ—บ๏ธ Judit, the unmatched traveler. Note the irony.

Undoubtedly, maps gained new connotations in recent times: without the "dragons" restriction, our societies deeply embraced the possibility of keeping such practical tools in our pockets, even if just in a virtual way. No more space subtracted from our backpacks. No more crumpled sheets. No more coffee spilled on them. Although I myself never experienced the real weight of old-fashioned maps, I still found creative ways to fantasize about them - especially while living in Austria, where I started playing around with some pseudo-maps aiming to represent my new position as a pilgrim lost in the middle of nowhere.

As seen above, I too had my weaknesses. Once I started traveling around Europe, I decided to graphically represent the places I visited in the most rudimentary way possible. "Not to forget", I suppose. That's another beautiful aspect of maps: they keep both the geographical spaces and the corridors of individual and collective memory intact.

This idea inspired Take you there: an interactive map empowering users to set different, customized markers in order to immortalize the places they visited together. Was it just a trip? Perfect. A special event? A cafรฉ you enjoyed? Pin it and show a picture symbolizing the importance behind that moment, then. Where is quite a blurry concept, and if Madonna didn't specify where that place was, I surely won't make it clear either!


๐Ÿงฌ Structure

Before exploring the website's structure, it would be interesting to highlight that this is supposed to be a shared repository, which justifies the existence of wider guidelines, tips, and indications if we compare this one to some of my old projects. That said, let's first have a look at the project and its specifications.

๐Ÿ“ Repository

As stated in the initial section, I provided some extra guidelines allowing users to navigate the code and implement changes with ease. In case you'd want to know more, make sure to read these indications before getting started:

  1. Setup and development commands (starting the development server, testing, linting...) -> โš™๏ธ available here.

  2. Pull request template -> ๐Ÿ“ available here.

  3. Fork, clone, add pins, and submit your changes: how to -> ๐Ÿ“š available here.

๐ŸŒ Website

As for the website, despite the simplicity of its main configuration and disposition of elements, it is still effective enough for us to achieve our goal: creating an interactive map capable of preserving and displaying our shared memories.

'Take you there' screenshot, light mode.

Essentially, Take you there consists on:

  1. An interactive map with several available themes.

  2. A Menu button triggering our Sidebar component.

  3. A Sidebar containing two main sections:

  4. Locations: This section displays all the pins, detailing the city, country, distance/date, and author. It's possible to sort them by date or distance.

  5. Contributions: This section showcases the amount of pins added by each contributor. It's possible to sort these contributions by calculating the added markers and the total distance after summing all the additions per person.


๐Ÿ”ฎ Features

While simple and accessible, Take you there offers some interesting features, tweaks, and s e c r e t s. Let's have a look at them.

๐Ÿ Leaflet

When it comes to the map layout, I decided to rely on Leaflet, as it provides bindings between React components and abstract Leaflet layers. Although this package can behave differently from how other React components work (React does not render Leaflet layers to the DOM, for instance; this rendering is done by Leaflet itself), it's still a smooth, accessible, and visually appealing incorporation.

If you want to know how to work with it, you can always check our Map.tsx file.

๐Ÿ“ Custom pins

Here, you'll find the nomenclature, visual aspect, and description for all our markers:

Marker Description
Coffee marker. EPinType.Coffee You found an amazing cafรฉ and you'd want to let everyone know about it.
Event marker. EPinType.Event Did you go to a concert? Visited a museum recently? Share it!
Home marker. EPinType.Home Places where you've been living - or your one and only home!
Picture marker. EPinType.Picture Places you traveled to.
Missing marker. EPinType.Missing After revisiting a pin, you realized that the sticker is now missing...
Goal marker. EPinType.Goal Wishlist time? Let everyone know there are places you'd love to visit!

๐ŸŒ“ Light & dark themes

Speaking of Leaflet, what's great is the possibility of incorporating different themes, such as Earth, Light, and Dark:

export const DEFAULT_TILES: ITyle[] = [
  {
    id: ETheme.Earth,
    name: 'Earth',
    url: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
  },
  {
    id: ETheme.Light,
    name: 'Light',
    url: 'https://tiles.stadiamaps.com/tiles/alidade_smooth/{z}/{x}/{y}{r}.png'
  },
  {
    id: ETheme.Dark,
    name: 'Dark',
    url: 'https://tiles.stadiamaps.com/tiles/alidade_smooth_dark/{z}/{x}/{y}{r}.png'
  }
]

At the same time, even though I didn't have in mind a dark theme for the app at first, I ended up making it possible to change the theme of the Sidebar depending on the theme you choose for the map. This way:

  1. Earth and Light themes will display a general light mode.

  2. Dark, on the other hand, will apply to the rest of the application as well - not only to the map! Gotta take care of our eyes here.

'Take you there' screenshot, dark mode.

๐Ÿฑ GitHub focused

Now, the question: "How does it work, Judit?" In this case, and since I wanted to show my co-author, @AuNedelec, the terrible side of development environments, Git, GitHub, and the never-ending amalgam of code we must face day after day, all the additions and changes are controlled through the interaction with this repository.

As I previously expressed in the pull request guidelines, there are two essential steps for people to contribute:

  1. First, you'll have to add the image that will appear alongside the marker. The picture will be stored under public/photos, in a folder named after your GitHub username. As an example: public/photos/JuditKaramazov.

  2. Then, move to the data directory, open the places.ts file, and add a new object to the array:

{
  author: 'Judit Lรกzaro',
  username: 'JuditKaramazov',
  type: EPinType.Coffee,
  title: 'Cafe Sissi',
  city: 'Engelhartszell an der Donau',
  country: 'Austria',
  coordinates: [48.500309, 13.7327201],
  date: '2021-02-09',
  photo: '/photos/JuditKaramazov/cafe-sissi-engel.jpg'
}

The easier, the better! ๐Ÿš€

๐Ÿ What's next?

Initially, I created this little application as a "shared yet personal album" containing all the places we visited together. Given the fact that my partner in crime showed some interest in programming, I thought it would be nice to make the transition slightly smoother by sharing a common project, preventing the first interactions with our digital universe from being so imposing.

'Take you there' screenshot, light mode.

Independently of that, I also considered the idea of making this little site available to anyone interested in sharing a similar "space" with their loved ones. Honestly speaking, although it's not the case yet, if there's someone interested in expanding the possibilities of this application, I'll gladly work on an extension of Take you there including:

- [ ] Register and login options. 
- [ ] Persistent choices.
- [ ] Shared hubs, also known as a `unique space` for you and your friends to share your unique memories without interfering with someone else's data.
- [ ] Accessible ways of interacting with the app: for example, `typing the name of the place directly` and making it easier to `add your pictures` without having to recur to our coding madness.

Please bear in mind that I plan to keep this repository up to date by actively creating new issues and working on any technological improvements and changes that may affect its proper functioning. Also, remember that this list is not exhaustive, and I'll continue adding more checkboxes to it as I identify new opportunities for improvement. I do value your feedback, and I'm highly responsive to suggestions and ideas that may enhance our experience on this platform, so do not hesitate to share your thoughts with me!


๐Ÿ’… Style

Ah, the styles. What a concept.

Previously, I shared the rudimentary map that inspired this repository, which happened to be a dramatically-flat image with several countries crossed depending on my trips. Based on such a simple concept, I tried to find a way to make this application as clean and intuitive as possible, always taking into account that our experience as users dictates the success or failure of every single website and application.

'Take you there' original logo.

Considering this, the styles that I chose tried to represent this idea of accessibility in the most accurate way: a basic menu, a soothing color palette, and some easily distinguishable markers making navigation smooth and instinctive. As for the markers, I found most of the images contained inside on the interwebz; Freepik, as usual, proved to be a loyal companion. Thanks for the great assets!

On the other hand, both the marker used as a favicon and the original logo exist thanks to the talented @AuNedelec, who's always been willing to give me a hand with the branding of my applications and websites. Thank you for your patience, artistic aptitudes, and above all, company. Since Take you there aims to become a nice hub for our shared memories to exist, I genuinely hope you'll find it as beautiful as I perceive find everything you create.

Nos quedan muchos, muchรญsimos sitios por ver. Ojalรก podamos recogerlos todos en este pequeรฑo santuario.


๐Ÿค Contributions

Please feel free to contribute to the quality of this content by submitting PRs for improvements or possible collaborations, just as it was explained in the Contributing document. Remember that whatever feedback you can provide me with is much appreciated. Also, keep in mind that I am indeed open to suggestions regarding possible extensions of Take you there, so do not hesitate to let me know if that would be your wish!


๐Ÿ™Œ Immense thanks to them awesome Sponsors

I can't close this chapter without intoning a loud and sincere: Thank you! ๐Ÿฅณ.

To our amazing Sponsor, @Entreprises LEMRHALI, thank you so much for your constant support and presence. Without the vision and understanding of our sponsors, we'd end up completely lost in the dark corners of this immense, virtual spiderweb, unable to admire the light that we, as creators, hold deep within. Luckily for me, you've been here during these dark moments of mine, encouraging me to "keep on keeping on". It's not easy - it wasn't before, and it still isn't. However, knowing that I am "not entirely alone just yet" is the best gift I could have ever asked for.

Gracias de nuevo - de corazรณn. Ojalรก seas capaz de recordarte a ti mismo que la luz y la bondad que ves en otros existe tambiรฉn en ti. ยกHay esperanza!

Visual asset of a pixel-art weapon rack.


๐Ÿ› License & Copyright

This work lives under the robust roof of the MIT License; whatever visual or written content scapes from it, you'll always find a proper reference specifying the authors and websites behind it.

Attributions are essential these days, and whoever took part directly or indirectly in this project deserves the best possible recognition! That said, and only if you enjoyed what you found here, remember that you can make the Dinosaur extremely happy if you...


Buy Me A Coffee

About

๐Ÿš€๐ŸŒฟ karamaSystem v3 - An interactive map enabling us to pin and share pictures of places we've visited together. But I be experimenting.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 75.4%
  • CSS 23.3%
  • JavaScript 1.3%