Making Code Changes using Claude Code | How to Add Image as Context | CampusX

Making Code Changes using Claude Code | How to Add Image as Context | CampusX

Introduction to the Video

Overview of the Content

  • Nitesh introduces himself and welcomes viewers to his YouTube channel, continuing the Clod Code playlist.
  • The video aims to improve the landing page of a website using Clod Code practically.
  • Three main objectives for this video are outlined: making changes in existing code, creating new web pages, and utilizing Clod Code's multimodal capabilities.

Current State of the Landing Page

Initial Assessment

  • Nitesh shows the current appearance of their landing page and discusses planned improvements.
  • The first improvement involves redesigning the hero section with a new layout that includes centered text and buttons.

Planned Changes to Hero Section

Design Enhancements

  • A graphic will be added along with a button that triggers a popup containing a YouTube video explaining how their product works.
  • The second change includes adding two links in the footer: Terms and Conditions, and Privacy Policy.

Implementation Process

Coding Steps

  • Nitesh explains they will create a new session in Clod Code for implementing these changes.
  • He emphasizes following previously discussed procedures for making changes through prompts.

Opening New Session in VS Code

Starting Work on Changes

  • In VS Code, Nitesh opens a new session by typing "Clod" command.
  • He names this session "Landing Page Improvements."

Adding Links to Footer

First Coding Task

  • The initial task is adding Terms and Conditions and Privacy Policy links to the footer.
  • Nitesh mentions he has pre-written prompts for all required changes throughout the video.

Prompt Writing Strategy

Efficient Coding Practices

  • He recommends planning prompts beforehand instead of typing them manually during coding sessions to avoid mistakes.

Executing Footer Link Addition

Implementing Changes

  • Nitesh provides a prompt for adding links in plain text format without special styling at this stage.

Mentioning Specific Files

File Targeting

  • He explains using "@" symbol to specify which file should be edited, ensuring accuracy in code modifications.

Confirming Changes Made

Review Process

  • After executing commands, he checks if links have been successfully added at the bottom of the landing page.

Committing First Change

Version Control

  • Since it's an important milestone, he commits this change with appropriate messages indicating what was done.

Creating Terms & Conditions Page

Next Steps

  • A prompt is prepared for creating a generic Terms & Conditions page suitable for personal expense tracking applications.

Adding New Route

Routing Setup

  • Nitesh instructively adds routes within app.py while ensuring proper structure is maintained.

Verifying New Page Creation

Checking Functionality

  • After creating terms.html file, he verifies its functionality by checking if it displays correctly when accessed from links.

Improving Appearance

CSS Adjustments

  • To enhance visual appeal, adjustments are made within CSS files corresponding to newly created pages.

Committing Second Change

Documenting Progress

  • Another commit is made after completing significant updates related to privacy policy implementation.

Adding Privacy Policy Page

Finalizing Updates

  • Similar steps are followed as before; another route is added specifically for privacy policy content creation.

Ensuring Consistency with Theme

Visual Cohesion

  • Emphasis on maintaining consistent design themes across all pages being developed ensures user experience remains seamless.

Final Verification

Quality Check

  • Upon refreshing pages linked from footer sections confirms successful integration into overall site structure.

Preparing Major Change Implementation

Hero Section Redesign

  • Plans are laid out regarding enhancements needed specifically targeting hero section based on design references provided earlier.

Image Integration

Visual Elements

  • An image reference is pasted into code as part of redesign efforts aimed at improving aesthetics significantly.

Modifying Hero Section Only

Focused Edits

  • Instructions emphasize modifying only designated areas without altering other parts of webpage layout unnecessarily.

Executing Design Changes

Applying Updates

  • After hitting enter command executes necessary alterations reflecting updated designs effectively onto live site viewable by users immediately post-refresh action taken thereafter .

Reviewing Updated Landing Page

User Experience Enhancement

  • Refresh action reveals transformed landing page showcasing improved visuals aligning closely with intended design specifications shared earlier .

Functional Button Implementation

Interactive Features

  • Plans include enabling button functionalities allowing pop-up overlays displaying embedded videos upon user interactions enhancing engagement levels significantly .

Defining Modal Requirements

Detailed Specifications

  • Clear requirements set forth outlining expected behaviors associated with modal interactions including closing mechanisms ensuring smooth transitions between states during usage scenarios encountered frequently across various platforms today .

Testing Modal Functionality

Quality Assurance

  • Post-integration testing confirms operational success verifying all defined criteria met satisfactorily resulting positive outcomes observed consistently throughout trials conducted thus far .

Final Commit Actions

Documentation Completion

Final commit actions executed documenting comprehensive progress achieved over course entire project lifecycle culminating successful deployment phase reached now officially concluded marking end journey undertaken together exploring intricacies involved developing effective solutions leveraging modern technologies available today!

Turn any video into a summary like this

YouTube links, meetings, lectures. With transcripts, search, and chat.

Video description

Code - https://github.com/campusx-official/spendly Hero image - https://drive.google.com/file/d/1aZYxOfOTIR4tLHe6bLorC4uPoaLUfzev/view?usp=sharing Demonstrates how to use Claude Code to modify an existing project, create new pages, and generate UI from an image. The video covers prompt-driven code edits, adding footer links, generating Terms & Conditions and Privacy pages, redesigning the hero section using an image, implementing a modal with a YouTube video, and following a practical workflow of session → prompt → commit → push with iterative improvements. 📱 Grow with us: CampusX' LinkedIn: https://www.linkedin.com/company/campusx-official CampusX on Instagram for daily tips: https://www.instagram.com/campusx.official My LinkedIn: https://www.linkedin.com/in/nitish-singh-03412789 Discord: https://discord.gg/PsWu8R87Z8 E-mail us at support@campusx.in Chapters 00:00:00 - Introduction & Agenda 00:01:07 - Landing Page Improvement Plan 00:02:52 - Workflow Overview (Session → Prompt → Commit → Push) 00:03:29 - Adding Footer Links Using Prompts 00:07:57 - Creating Terms & Conditions Page 00:11:54 - Creating Privacy Policy Page 00:13:37 - Using Image as Context (Hero Section Redesign) 00:16:30 - Commit & Verify UI Changes 00:17:11 - Adding Modal Popup with YouTube Video 00:18:39 - Commit & Push Changes to Repository 00:20:10 - Handling Mistakes & Iterative Prompting 00:21:24 - Summary & Key Takeaways