Travelled recently? Have pictures to share? You're in the right place!
1. Go to CeSIUMpeloMundo
2. In the top right corner, click on Fork
1. Go to your fork and click Code
Note
The link to your forked repository should behttps://github.com/<your-username>/CeSIUMpeloMundo
2. Copy the given HTTPS link
3. On your terminal, run the following command:
git clone <https-link>
Note
If you'd rather clone with SSH, copy the SSH key and rungit clone <ssh-key>
Now you have a copy of the repository you can work with.
1. Move to your cloned repository directory with cd CeSIUMpeloMundo
2. Create a new branch with the following command:
git checkout -b <branch>
Where <branch>
is the name of your branch.
Note
The name of your branch should follow the CeSIUM guidelines:<first-letter-of-your-first-name><first-letter-of-your-last-name> + '/' + <branch-name>
. For example:af/readme
.
1. Move to the public/photos
directory
2. Create a folder and name it your GitHub username(s). You'll save your pictures here
3. Move to the data
directory and open the places.ts
file on your favorite editor
4. Add a new object to the array containing:
author
- your first and last name(s)username
- your GitHub username(s)type
- pin type (EPinType.<pin-type>
)city
&country
- city and country where the image was takencoordinates
- you can use this websitedate
- date of when the image was taken (year-month-day format)photo
- path to your image file
Understanding Pin Types:
EPinType.Sticker
- You left a CeSIUM sticker somewhereEPinType.Merch
- You showed off your style with the CeSIUM merchEPinType.Picture
- You want to share a picture of your trip with the CeSIUM familyEPinType.Missing
- You revisited a pin and the sticker is now missing
Check out this example:
{
author: 'Filipe Felício',
username: 'feliciofilipe',
type: EPinType.Merch,
city: 'Barcelona',
country: 'Spain',
coordinates: [41.39437640777792, 2.1750122226070197],
date: '2022-03-21',
photo: '/photos/feliciofilipe/barcelona.jpg'
}
Multiple authors? Check this one:
{
author: ['Filipe Felício', 'Matilde Bravo', 'Mariana Rodrigues'],
username: ['feliciofilipe', 'matildeopbravo', 'marianarodrigues'],
type: EPinType.Picture,
city: 'Rijeka',
country: 'Croatia',
coordinates: [45.33264760505596, 14.455986441966521],
date: '2022-07-04',
photo: '/photos/feliciofilipe,matildeopbravo/rijeka.jpg'
}
Warning
When placing a sticker, we appeal to everyone's common sense and civility. Don't vandalize.
Note
You can get a local preview of your changes by running the project on your machine, follow the Contributing Guide to know more.
1. Stage your changes:
git add .
2. Commit your changes:
git commit -m "<commit-description>"
3. Push your changes to your forked repository:
git push
1. Go to your fork
2. Select the branch you created from the dropdown menu
3. Click on Pull request
4. Add a convenient title and description to your pull request
Note
Don't forget to assign a contributor or the cesium/pelomundo group for review.
If everything checks out, your submission will be reviewed and approved shortly.
Visit the CeSIUM Pelo Mundo website and check out your pin!