-
Notifications
You must be signed in to change notification settings - Fork 47
Update the Sponsors List
Image directory (location to upload sponsor logos): https://github.com/pioneers/website/tree/master/assets/images/sponsors
HTML file to edit: https://github.com/pioneers/website/blob/master/support-pie/index.html
Ask the person supplying the logo to provide a sufficiently large image. If they provide you with something like 250x250, that probably won't work well. Something like 800x800 or larger is a better size. If needed, crop out some extra white space padding the edges of the logo. This crop will allow the main part of the logo to be larger, clearer, and not awkward looking on the page. File extension does not really matter. Things like .jpg, .png, and .svg are all acceptable.
Upload the image to website/assets/images/sponsors/. This can be done in two ways:
- Navigate to https://github.com/pioneers/website/tree/master/assets/images/sponsors and select the "Add file" button in the top right of the page. From the dropdown menu, select "Upload files." You will be taken to a page where you can drag and drop the desired image file. After uploading the file, enter text describing your upload in the text field under "Commit changes." Try something like "Add sponsor logo." Take note of your branch name, you'll need it later (should be something like username-patch-#). Click the green "Commit changes" button at the bottom of the page.
- Create a new pull request in your terminal like the absolute swag-lord that you know you truly are.
The file to edit is website/support-pie/index.html. This can be done in two ways:
- Navigate to https://github.com/pioneers/website/blob/master/support-pie/index.html. In the top left of the page, click the button labeled "Master." From the dropdown menu, select your previous branch (should be something like username-patch-#). After, select the pencil icon on the right side of the page, just above the start of the code. Move on to the next section of this wiki titled "Editing the Sponsor Page."
- You're going to push changes to your branch from your terminal like the absolute monster gamer you know you truly are. Be ready.
- Determine the tier of your sponsor (Platinum, Gold, Silver, Bronze).
- Navigate down to that tier. You'll want to look for something like
<h2 style="color:#796d00" align="center">Bronze Sponsors</h2>
- You're going to want to mimic the existing structure of code aka copy and paste something like this:
<div class="pie-sponsor-logo"> <a href="https://www.sponsor.com/"> <img src="{{ "/assets/images/sponsors/company.png" | prepend: site.baseurl }}" alt="Company Name"> </a> </div>
- It's easiest to paste beneath the closing </div> from the previous company entry. Note that order matters. The order the companies show up in the HTML file is the order the images will show in the website.
- Save your changes and commit.
- Navigate to https://github.com/pioneers/website/pulls
- Select your recently made pull request (probably something like "Add sponsor logo")
- Look for the Render bot post
- Click the first link provided in the post. It should look something like
Your Render PR Server URL is https://website-staging-pr-###.onrender.com.
- It might take a couple of minutes to load, but you will see a newly made PiE website with your recently added changes! Assuming you didn't break anything :)
Alternatively, you can use your local build like the absolute bad boi that you know you are.
- Beg someone to approve your pull request (probably want to message #website aka #infrastructure in Slack)
- Beg someone to redeploy the website with your newly merged changed to master (probably want to message #website aka #infrastructure in Slack)
- Profit