Skip to content

frankpadada/portfolio-website-template-one

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


GDSC Portfolio Template #1,

📃 License

This project is licensed under the MIT License. See the LICENSE file for details.


Instructions

Follow the steps to Fork this repository using the instructions found in the parent repository.

Open the repository using IDX, or on your local machine with your favorite text editor.

Running the code

To view the portfolio, run npm run dev in the terminal -- you should see the contents of the website on localhost:4321. This content will be refreshed anytime a file is saved.

Alternatively, if you're using Project IDX, click on the link in the terminal to open up your website.

image

Changing Text

First we want to run the code using npm run dev, make sure you've got a page that looks like this:

image

To customise this, we can start by taking a look under src/pages. This folder includes the code for all your pages, routed by filename.

Open the index.astro file -- this corresponds to the home page.

image

Under the Hero component, you can edit the text on lines 32 and 33 to your liking. Save the file and the change should be reflected on the browser.

image

You can change the image by replacing public/assets/portrait.jpg with your own image.

image

To edit your skills, you want to open to skills component in src/components/Skills.astro and edit the corresponding text. The /components folder will hold all the components, which are the building blocks to the website.

Icons are defined using svgs in IconPaths.ts.

Other pages

In the about.astro file, we'll change the About Section. We recommend writing something about your interests, career objectives, skills, and maybe even hobbies.

You can add a new page just by creating a new .astro file under the pages folder, using the same template.

For each page, you can change the title and description prop for the BaseLayout component. These edit the title and description tag for each page.

image

If you want to change the default title and description tags, you can do so in the layouts/BaseLayout.astro Component.

Nav and Footer

Now take a look at the Nav.astro component under the /components folder. You can replace the placeholder [Your Name] on line 21, and you can also add or remove links from the navbar by editing the textLinks array on line 5.

You can also edit the footer with the Footer.astro file; you can replace the text with whatever you want, and also edit the links to your socials.

Adding Projects

Now let's take a look at the projects page. You will notice a few dummy projects. Click on one of them to see what it looks like.

image

To edit these pages, let's take a look at the files under src/content/projects. The pages are dynamically generated based on the content in these files. Try editing the content of one of the files, adding a new file using the same template, or deleting a file to see your changes.

The img property takes in images from public/assets. You can replace the placeholder images with more relevant ones.

The text uses markdown syntax, an example better utilising this is in project4.md.

Contact

Finally, let's update what email people should contact you at.

Open the components/ContactCTA.astro file, and replace the mailto:[email protected] to your own mailing address.

Note: Be aware that this constitutes putting your email on the internet. You probably already have it available on other social media platforms but if you are not comfortable with the idea of putting your personal email out there then we recommend deleting the contact section.

Styling

Finally, you can open the src/styles/global.css file to view the project wide styling.

The main stuff you might want to change is the accent colours on lines 19 to 22, and font on lines 74 to 77.

Commit

Now commit your changes! You can do this by clicking the source control button:

image

Staging all your changes,

image

Entering a message and pressing commit

image

Now click Sync Changes and press OK if it informs you that this action will pull and push commits from and to "origin/main"

image

Extras

Of course, you can customise your portfolio and add virtually anything you want. If you want to do this, we recommend looking at the more comprehensive Astro Documentation at https://docs.astro.build/en/basics/astro-components/.

Deployment

To learn about how to deploy your newly created portfolio on netlify, please return to the parent repo and follow the Deployment Instructions there.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Astro 67.7%
  • TypeScript 20.9%
  • CSS 8.2%
  • Nix 3.0%
  • JavaScript 0.2%