Add editable profile fields and localStorage saving #944
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
✨ Pull Request: Add Editable Social Links Preview Card
Description:
This PR adds a responsive Social Links Preview card built using HTML, CSS, and JavaScript. The project allows users to customize and personalize their profile details directly on the card interface.
🚀 Features Added
Editable fields for Name, Location, and Occupation using contentEditable.
Automatic fallback defaults if fields are left empty.
Character limit on name field with automatic truncation.
Persistent data storage via localStorage, so user edits remain after page reloads.
Dynamic profile image generation using UI Avatars API
.
Clean and minimal layout for better readability and aesthetic balance.
🧩 Tech Stack
HTML5 for structure
CSS3 for styling and layout
JavaScript (Vanilla) for interactivity and data persistence
🧪 How to Test
Open the index.html file in your browser.
Click on the name, location, or occupation text to edit it.
Refresh the page — your edits should remain saved.
Observe the dynamically generated avatar image.
🎃 Hacktoberfest
This PR is submitted as part of Hacktoberfest 2025 🎉