Skip to content

Refactor: Modularize page content using JSON #87

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Devasy23
Copy link

This commit refactors the portfolio website to load content for the
"About Me", "Experience", and "Projects" sections from a central
JSON file (src/data/content.json).

Key changes:

  • Created src/data/content.json to store text, experience data,
    and project details (including tags and icon references).
  • Modified AboutMe.astro, Experience.astro, and Projects.astro
    components to fetch and render data from this JSON file.
  • Implemented dynamic icon loading in Projects.astro by mapping
    icon string names from JSON to imported Astro icon components.
  • Updated README.md with instructions on how to modify
    content.json to update portfolio content.
  • Resolved TypeScript errors related to JSON module imports and
    type checking to ensure a successful build.

This change makes it easier for you to update your portfolio
content without needing to modify Astro component code directly.

Devasy23 and others added 3 commits September 18, 2024 21:50
* 👨🏻‍💻 Update Header.astro

Replace url Contacto by mailto:[email protected]

* Update Footer.astro

Add id in anchor  contact in footer

* Fix experience vertical line in light mode

* Fix about me image border in light mode

* Fix footer container color in dark mode

* Update SectionContainer.astro

scroll-m-# da un margen con respecto al viewport para cuando se navega a través nav así el nav no queda por encima del title de la section, lo aprendi viendo el codigo fuente de openai.sora que utiliza este estilo de nav. :)

* change styles footer

* change styles footer

* Fix minimal footer styles

* SocialPill onhover effect in dark mode

* ThemeToggle: el dropdown para cambiar de theme cuando estaba cerrado tenia un opacity-0 por lo que se podian clickear los items dentro del menu, cambie este estilo por un hidden, y en el #themeMenu.open se agrega display: inline para volver a mostrarlo al hacer click

* Add license

* Upgrade dependencies

* Upgrade lock file

* Fix footer styles

* Some fixes to header styles

* Improve new colors to navbar 

'Cause the yellow one was bumping into the blur white one

* Fix typo in variable name in Experience component

* Add TitleSection component

* Add TitleSection component to index page

* Fixed theme switching bug related to page transitions.

* Adding padding to the Footer for mobile resolution

* Update Header.astro

Al parecer, hay un bug o algo así con Tailwind que impide que el fondo del nav correspondiente se aplique en modo oscuro. Por lo tanto, he modificado un poco el código para evitar que esto ocurra.

* "Updated .gitignore to ignore bun.* files and modified LinkButton.astro to add target="_blank" attribute"

* add: Light mode support for buttons.

---------

Co-authored-by: Dario Espinoza Muñoz <[email protected]>
Co-authored-by: Miguel Ángel Durán <[email protected]>
Co-authored-by: davidchicano <[email protected]>
Co-authored-by: Joseph Vento <[email protected]>
Co-authored-by: webzma <[email protected]>
Co-authored-by: Walter Ortiz <[email protected]>
Co-authored-by: Diego Fernández <[email protected]>
Co-authored-by: bocha13 <[email protected]>
Co-authored-by: Carlos Felipe Rivera Güeche <[email protected]>
Co-authored-by: Adrian Martin Barcelo <[email protected]>
Co-authored-by: Amador <[email protected]>
Co-authored-by: AbarcaJ <[email protected]>
Co-authored-by: Glitzypanic <[email protected]>
Co-authored-by: daniel <[email protected]>
Co-authored-by: tito1984 <[email protected]>
Co-authored-by: juqndev <[email protected]>
This commit refactors the portfolio website to load content for the
"About Me", "Experience", and "Projects" sections from a central
JSON file (`src/data/content.json`).

Key changes:
- Created `src/data/content.json` to store text, experience data,
  and project details (including tags and icon references).
- Modified `AboutMe.astro`, `Experience.astro`, and `Projects.astro`
  components to fetch and render data from this JSON file.
- Implemented dynamic icon loading in `Projects.astro` by mapping
  icon string names from JSON to imported Astro icon components.
- Updated `README.md` with instructions on how to modify
  `content.json` to update portfolio content.
- Resolved TypeScript errors related to JSON module imports and
  type checking to ensure a successful build.

This change makes it easier for you to update your portfolio
content without needing to modify Astro component code directly.
Copy link

netlify bot commented May 31, 2025

Deploy Preview for animated-churros-60739d ready!

Name Link
🔨 Latest commit b32e25b
🔍 Latest deploy log https://app.netlify.com/projects/animated-churros-60739d/deploys/683ad473f5d52c000818a107
😎 Deploy Preview https://deploy-preview-87--animated-churros-60739d.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant