-
Notifications
You must be signed in to change notification settings - Fork 40
css-starter&final code #13
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
fukutarosie
wants to merge
2
commits into
SIMITClub:main
Choose a base branch
from
fukutarosie:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
115 changes: 115 additions & 0 deletions
115
curriculum/phase1-foundations/01-html-css/final/finished-code.css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,115 @@ | ||
| /* ===== CSS BASICS EXERCISE ===== */ | ||
|
|
||
| *{ | ||
| box-sizing:border-box; | ||
| margin: 0; | ||
| padding: 0; | ||
| } | ||
|
|
||
| /* PAGE STYLES */ | ||
| .page { | ||
| /* 2. BOX MODEL - Content area styling */ | ||
| background-color: #6366f1; | ||
| padding: 20px; /* Space inside the element */ | ||
| margin: 0; /* Space outside the element */ | ||
| } | ||
|
|
||
| /* PROFILE STYLES */ | ||
| .profile-section { | ||
| /* 3. BASIC STYLING - Colors and fonts */ | ||
| color: white; | ||
| font-family: Arial, sans-serif; | ||
|
|
||
| /* 2. BOX MODEL - Spacing */ | ||
| padding: 30px; | ||
| margin-bottom: 20px; | ||
| } | ||
|
|
||
| /* PROFILE PICTURE STYLES */ | ||
| .profile-picture { | ||
| /* 2. BOX MODEL - Border */ | ||
| width: 120px; | ||
| height: 120px; | ||
| border: 3px solid white; /* Border around the image */ | ||
| border-radius: 60px; /* Makes it circular */ | ||
| /* 4. POSITIONING - Display */ | ||
| display: block; | ||
| margin-left: auto; | ||
| margin-right: auto; | ||
| } | ||
|
|
||
| /* PROFILE TITLE STYLES */ | ||
| .profile-title { | ||
| /* 3. BASIC STYLING - Font properties */ | ||
| font-size: 28px; | ||
| font-weight: bold; | ||
|
|
||
| /* 2. BOX MODEL - Margins */ | ||
| margin-top: 15px; | ||
| margin-bottom: 5px; | ||
|
|
||
| /* 4. POSITIONING - Text alignment */ | ||
| text-align: center; | ||
| } | ||
|
|
||
| /* PROFILE DESCRIPTION STYLES */ | ||
| .profile-description { | ||
| /* 3. BASIC STYLING */ | ||
| font-size: 16px; | ||
|
|
||
| /* 4. POSITIONING - Text alignment */ | ||
| text-align: center; | ||
| } | ||
|
|
||
| /* LINKS SECTION STYLES */ | ||
| .links-section { | ||
| /* 2. BOX MODEL - Padding for spacing */ | ||
| padding: 0 20px; | ||
|
|
||
| /* Centering the Container */ | ||
| max-width: 400px; | ||
| margin-left: auto; | ||
| margin-right: auto; | ||
|
|
||
| } | ||
|
|
||
| /* LINKS ITEM STYLES */ | ||
| .link-item { | ||
| /* 3. BASIC STYLING - Colors */ | ||
| background-color: white; | ||
| color: #333333; | ||
|
|
||
| /* 2. BOX MODEL - All sides at once */ | ||
| padding: 15px; | ||
| margin: 10px 0; | ||
| border: 2px solid #dddddd; | ||
| border-radius: 8px; | ||
|
|
||
| /* 4. POSITIONING - Display type */ | ||
| display: block; | ||
| text-decoration: none; | ||
| text-align: center; | ||
|
|
||
| /* 3. BASIC STYLING - Font */ | ||
| font-size: 16px; | ||
| } | ||
|
|
||
| /* FOOTER SECTION STYLES */ | ||
| .footer-section { | ||
| /* 3. BASIC STYLING */ | ||
| color: white; | ||
| font-size: 14px; | ||
| text-align: center; | ||
|
|
||
| /* 2. BOX MODEL */ | ||
| margin-top: 40px; | ||
| margin-left:auto; | ||
| padding: 20px; | ||
| } | ||
|
|
||
| /* (OPTIONAL) PSEUDO-CLASSES - Hover effect for links */ | ||
| .link-item:hover { | ||
| background-color: #f3f4f6; | ||
| transform: translateY(-2px); | ||
| transition: all 0.3s ease; | ||
| } |
35 changes: 35 additions & 0 deletions
35
curriculum/phase1-foundations/01-html-css/final/finished-code.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| <!-- HTML Exercise --> | ||
|
|
||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <title>My Links</title> | ||
| <link rel="stylesheet" href="finished-code.css"> | ||
|
|
||
| </head> | ||
| <body class="page"> | ||
|
|
||
| <!-- Profile Section --> | ||
| <div class="profile-section"> | ||
| <img src="Fuku.jpg" alt="Profile Picture" class="profile-picture"> | ||
| <h1 class="profile-title">Your Name</h1> | ||
| <p class="profile-description">Let's connect:</p> | ||
| </div> | ||
|
|
||
| <!-- Links Section --> | ||
| <div class="links-section"> | ||
| <a href="#" class="link-item">📱 Instagram</a> | ||
| <a href="#" class="link-item">💼 LinkedIn</a> | ||
| <a href="#" class="link-item">🎵 Spotify</a> | ||
| <a href="#" class="link-item">📧 Email Me</a> | ||
| </div> | ||
|
|
||
| <!-- Footer Section --> | ||
| <div class="footer-section"> | ||
| <p>© 2025 Made by [NAME]</p> | ||
| </div> | ||
|
|
||
| </body> | ||
| </html> |
122 changes: 122 additions & 0 deletions
122
curriculum/phase1-foundations/01-html-css/starter/starter-code.css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,122 @@ | ||
|
|
||
| I'll create a starter code version for your bootcamp exercise! This will have the HTML structure complete but with minimal CSS for students to practice with. | ||
|
|
||
| Link Page Starter HTML | ||
| Code | ||
| Perfect! I've created starter code for your bootcamp exercise with two files: | ||
|
|
||
| 📄 HTML File - Complete and ready to use | ||
|
|
||
| All structure in place | ||
| Changed image source to generic "profile.jpg" | ||
| Students just need to update their name and links | ||
| 🎨 CSS File - Exercise template with: | ||
|
|
||
| Reset styles already provided (so students can focus on learning) | ||
| Clear TODO comments for each styling task | ||
| Numbered sections that build upon each other | ||
| Organized from basic to advanced concepts | ||
| Bonus hover effect challenge at the end | ||
| How to use this: | ||
|
|
||
| Students create both files in their project folder | ||
| They add a profile image named "profile.jpg" | ||
| They complete each TODO section in the CSS | ||
| They can compare their work to your finished version | ||
| This gives them hands-on practice with: | ||
|
|
||
| Box model (padding, margin, border) | ||
| Basic styling (colors, fonts, backgrounds) | ||
| Positioning (display, text-align, centering) | ||
| Pseudo-classes (hover effects) | ||
| The structure makes it easy to teach progressively or let students work independently! 🚀 | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| /* ===== CSS BASICS EXERCISE ===== */ | ||
|
|
||
| /* RESET STYLES - Already provided */ | ||
| * { | ||
| box-sizing: border-box; | ||
| margin: 0; | ||
| padding: 0; | ||
| } | ||
|
|
||
| /* ===== YOUR TASK: Complete the CSS below ===== */ | ||
|
|
||
| /* 1. PAGE STYLES */ | ||
| .page { | ||
| /* TODO: Add background color (#6366f1) */ | ||
| /* TODO: Add padding (20px) */ | ||
| } | ||
|
|
||
| /* 2. PROFILE SECTION STYLES */ | ||
| .profile-section { | ||
| /* TODO: Set text color to white */ | ||
| /* TODO: Set font-family to Arial, sans-serif */ | ||
| /* TODO: Add padding (30px) */ | ||
| /* TODO: Add bottom margin (20px) */ | ||
| } | ||
|
|
||
| /* 3. PROFILE PICTURE STYLES */ | ||
| .profile-picture { | ||
| /* TODO: Set width to 120px */ | ||
| /* TODO: Set height to 120px */ | ||
| /* TODO: Add white border (3px solid) */ | ||
| /* TODO: Make it circular with border-radius (60px) */ | ||
| /* TODO: Center it using display: block and margin auto */ | ||
| } | ||
|
|
||
| /* 4. PROFILE TITLE STYLES */ | ||
| .profile-title { | ||
| /* TODO: Set font-size to 28px */ | ||
| /* TODO: Make text bold */ | ||
| /* TODO: Add top margin (15px) */ | ||
| /* TODO: Add bottom margin (5px) */ | ||
| /* TODO: Center the text */ | ||
| } | ||
|
|
||
| /* 5. PROFILE DESCRIPTION STYLES */ | ||
| .profile-description { | ||
| /* TODO: Set font-size to 16px */ | ||
| /* TODO: Center the text */ | ||
| } | ||
|
|
||
| /* 6. LINKS SECTION STYLES */ | ||
| .links-section { | ||
| /* TODO: Add horizontal padding (0 20px) */ | ||
| /* TODO: Set max-width to 400px */ | ||
| /* TODO: Center the container using margin auto */ | ||
| } | ||
|
|
||
| /* 7. LINK ITEM STYLES */ | ||
| .link-item { | ||
| /* TODO: Set background-color to white */ | ||
| /* TODO: Set text color to #333333 */ | ||
| /* TODO: Add padding (15px) */ | ||
| /* TODO: Add vertical margin (10px 0) */ | ||
| /* TODO: Add border (2px solid #dddddd) */ | ||
| /* TODO: Add border-radius (8px) */ | ||
| /* TODO: Set display to block */ | ||
| /* TODO: Remove text underline */ | ||
| /* TODO: Center the text */ | ||
| /* TODO: Set font-size to 16px */ | ||
| } | ||
|
|
||
| /* 8. FOOTER SECTION STYLES */ | ||
| .footer-section { | ||
| /* TODO: Set text color to white */ | ||
| /* TODO: Set font-size to 14px */ | ||
| /* TODO: Center the text */ | ||
| /* TODO: Add top margin (40px) */ | ||
| /* TODO: Add padding (20px) */ | ||
| } | ||
|
|
||
| /* 9. BONUS CHALLENGE: Add hover effect */ | ||
| .link-item:hover { | ||
| /* TODO: Change background on hover (#f3f4f6) */ | ||
| /* TODO: Add subtle lift effect (transform: translateY(-2px)) */ | ||
| /* TODO: Add smooth transition (all 0.3s ease) */ | ||
| } | ||
32 changes: 32 additions & 0 deletions
32
curriculum/phase1-foundations/01-html-css/starter/starter-code.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <title>My Links</title> | ||
| <link rel="stylesheet" href="style.css"> | ||
| </head> | ||
| <body class="page"> | ||
|
|
||
| <!-- Profile Section --> | ||
| <div class="profile-section"> | ||
| <img src="your-profile-pic.jpg" alt="Profile Picture" class="profile-picture"> | ||
| <h1 class="profile-title">Your Name</h1> | ||
| <p class="profile-description">Let's connect:</p> | ||
| </div> | ||
|
|
||
| <!-- Links Section --> | ||
| <div class="links-section"> | ||
| <a href="#" class="link-item">📱 Instagram</a> | ||
| <a href="#" class="link-item">💼 LinkedIn</a> | ||
| <a href="#" class="link-item">🎵 Spotify</a> | ||
| <a href="#" class="link-item">📧 Email Me</a> | ||
| </div> | ||
|
|
||
| <!-- Footer Section --> | ||
| <div class="footer-section"> | ||
| <p>© 2025 Made by [Your Name]</p> | ||
| </div> | ||
|
|
||
| </body> | ||
| </html> |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain what this is for?
It feels like a response from Claude; please double-check.