A modern, responsive profile card component built with HTML, CSS, and JavaScript. Features a clean design with dark mode support, social media links, and a real-time epoch timestamp display.
- Responsive Design - Works seamlessly on mobile and desktop
- Dark Mode Support - Automatically adapts to system preferences
- Live Epoch Timer - Displays current time in milliseconds with smooth updates
- Social Links - Quick access to social media profiles
- Accessible - Built with semantic HTML and ARIA labels
- Customizable - Easy to modify colors, fonts, and content
.
├── index.html # Main HTML file with card markup
├── style.css # Styles including responsive design and dark mode
├── app.js # JavaScript for epoch time functionality
├── profile.jpg # Profile picture (add your own)
└── README.md # This file
- A modern web browser (Chrome, Firefox, Safari, Edge)
- No build tools or dependencies required
-
Clone the repository (or download the files):
git clone https://github.com/yourusername/profile-card.git cd profile-card -
Add your profile picture:
- Replace or add a
profile.jpgfile in the project directory - Ensure the image is square (88x88px or larger) for best results
- Replace or add a
-
Edit the profile content (optional):
- Open
index.htmlin a text editor - Update the name, role, bio, and social links with your information
- Open
Simply double-click the index.html file and it will open in your default browser.
Using Python 3:
python -m http.server 8000Using Node.js with http-server:
# Install globally (first time only)
npm install -g http-server
# Run the server
http-serverUsing VS Code Live Server:
- Install the Live Server extension
- Right-click
index.htmland select "Open with Live Server"
Then visit http://localhost:8000 (or the port shown in your terminal) in your browser.
Edit the following in index.html:
- Name: Change
<h2 data-testid="test-user-name">text - Role/Location: Update the
.roleparagraph - Bio: Modify the bio text in the
<p data-testid="test-user-bio"> - Social Links: Update the
hrefattributes in the social media links
Edit color variables in style.css under the :root selector:
:root {
--color-background-primary: #ffffff;
--color-text-primary: #1a1a18;
/* ... other colors */
}- Replace
profile.jpgwith your own image - Recommended size: 88x88px or larger (square aspect ratio)
- Supported formats: JPG, PNG, WebP
- Chrome/Edge: Latest versions
- Firefox: Latest versions
- Safari: Latest versions
- Mobile browsers: iOS Safari, Chrome Mobile
The main HTML file containing:
- Semantic markup with ARIA labels
- Profile card structure with sections for bio, social links, interests, and dislikes
- Real-time epoch time display element
Complete styling including:
- CSS custom properties for theming
- Responsive grid layout (mobile and desktop)
- Dark mode media query
- Animations (pulse effect on live indicator)
- Focus states for accessibility
JavaScript functionality:
- Updates epoch time every second
- Formats timestamp with proper datetime attributes
- Uses IIFE pattern for scope isolation
Feel free to fork this project and submit pull requests with improvements!
MIT License - feel free to use this project for personal or commercial purposes.
For issues or questions, please open an issue on GitHub.