Computer Science
Gilmour AcademyLancerTech
  • Our Curriculum and Department
  • Intro to Programming
    • 1: Parts of a Computer
    • 2: Parts of Python
    • 3: DRY Turtle
    • 4: Turtle Design App
    • Wordle with Turtles
    • 5: Interactive Turtles
    • OLD 5: Replit, GitHub, and repositories (Oh my!)
    • 6: Raspberry Pi / GoPiGo
    • 7: Kivy
  • Intro to Web Design
    • 1: Internet?
    • 2: Websites?
    • 3: Bootstrap Template
    • 4: Graphics and Branding
    • 5: Collaboration
    • 6: Advanced Editing
    • Publish Static HTML
  • AP Computer Science
    • 1: Logic & Instances
    • 2: How Java Works
    • 3: Data Types & Flow
    • 4: Strings
    • 5: Objects & References
    • 6: Inheritance & Algorithms
    • 7: Data Structures
    • 8: Sorting
    • 9: Review
    • Data Science
  • Web App Dev
    • 1: Core Concepts
    • 2: MVT Pattern
    • 3: Hello Flask
    • 4: Install Flaskinni
    • 5: Tour Flaskinni
    • 6: Visualize Your App
    • 7: Theme & Blueprint
    • 8: Standup Your DB
    • 9: Advanced Topics
    • 10: Deployment
  • 2D Game Design
    • Class Overview
    • Gamemaker Studio 2 and Github Setup
    • Game 1: Bouncing Ball
    • Turning in your games
    • Game 2: Maze
    • Game 3: Ping Pong
    • Game 4: Breakout
    • Game 5: Tank Battle
    • Game 6 Highlights
    • DO NOT DO:
    • Game 7: Final Project
    • Publish to Opera
    • FAQ
  • 3D Game Design
    • 1: Class Overview
    • 2: Installation
    • 3: Exploring the Unity UI
    • Game 1: Rolling Ball
    • Game 2: Tanks
    • Game 3: Third Person Platformer
    • Game 4: Final project
    • FAQs
    • OLD: Distance Learning Setup
    • OLD: GIT
  • 3D Modeling & Fabrication
    • Installation
    • Fusion 360 Interface and Sketch Modeling
    • Primitive Modeling
    • Patterns
    • Appearances and Rendering
    • Building Community Gallery Page 2023
    • Parametric Modeling
    • 3D Printing Concerns
    • Assemblies and Mechanical Design
    • Laser Cutting
    • Sculpt Tools
    • Milling Concerns
  • Robotics 7
    • Software Installation
    • Python basics (trinket.io)
    • Python Turtle
    • Programming for the Ev3
    • Setting up for clarity
  • Robotics 8
    • Replit
    • Python review
    • Kivy Basics
    • Calculator
  • Competitive Robotics
    • Hardware Team
      • CAD Examples
      • Elevators
    • Software Team
      • Command Pattern
      • Example Command
      • Subsystem
      • Running Your Code
      • Under the Hood
      • RoadRunner
      • Vision Processing
  • Archives
    • Adiletta Archives
      • Old Web
        • Ex: WordPress CMS
      • ItP
        • OLD: Parts of Python (old -- Mr. A)
        • OLD: 5: Raspberry Pi
        • OLD: 6: Deploying Code
        • OLD 7: Nav Algorithm
    • Vanek Archives
      • OLD Robotics 8
        • OLD: End of Class Project
      • OLD Competitive Robotics
        • Untitled
        • Webots Videos
      • OLD Robotics 7
        • Trinket Introduction
        • Lists: x/y position
        • Functions: Math program
        • Lists: Grocery List
        • Study Guide Program
        • Tic Tac Toe Game
        • Dice Roller Program
        • Visualization
        • Dice Roller + Visualization
        • OpenSCAD: Installation
        • OpenSCAD: Command Sheet and Intro
        • OpenSCAD: Difference
        • OpenSCAD: Variables
        • OpenSCAD: Union
        • OpenSCAD: For Loops
        • OpenSCAD: Final Project
      • OLD Art I - Blender Sculpting
        • Class Overview
        • Installation
        • Lesson 1 - Tools
        • Lesson 2 - Detail
        • Lesson 3 - Base Mesh: Metaballs
        • Lesson 4: Converting metaballs and adding detail
        • Lesson 5: Masking, Hiding, and Working with Multiple Objects
        • Lesson 6: Joining Objects & Basing
        • Lesson 7: Sculpture Painting
        • Student Gallery: Animal Sculpts
        • Lesson 8: 3D Compositon
        • Lesson 9: The Project - Putting it all together
        • Lesson 10: Developing the image further
        • Lesson 11: Layout the base metaball mesh.
        • Lesson 12: Final Detail
        • Lesson 13: Basing and Painting
        • Final Project Gallery
      • OLD Fab
        • OLD Building Community Project Gallery
        • Copy of Building Community Project Gallery
        • old Building Community Project Gallery
      • OLD: Turtle Design App
      • OLD Arduino Robotics 8
        • Arduino Basic Commands Cheat Sheet
        • Logging into Tinkercad
        • Arduino, Circuits, LEDs and Resistors
        • Functions and Variables
        • Serial Monitor
        • Buttons and Interrupts
        • Traffic Light Project
        • Potentiometers + Servos
        • Piezo Buzzer and Tone();
        • Sequencer Project
        • Arrays and for loops
        • Extra Loop Practice
        • Refining the Sequencer
        • Servos
        • Ultrasonic Sensors
        • Final Project
Powered by GitBook
On this page
  • Learning Targets
  • What is Bootstrap?
  • What is responsive?
  • Optional Button Drill
  • Bootstrap 2 Project
  • Download a StartBootstrap Template:
  • Open the Template in VS Code:
  • Create a Custom CSS File:
  • Open a Preview of the Site:
  • Make Changes and Refresh:
  • Continue Building:
  • Video Walkthroughs

Was this helpful?

Export as PDF
  1. Intro to Web Design

3: Bootstrap Template

Use a Bootstrap template to produce a stunning webpage.

Previous2: Websites?Next4: Graphics and Branding

Last updated 12 months ago

Was this helpful?

Learning Targets

  • I can build a hero with a call to action.

  • I can implement a color palette via CSS.

  • I can build a responsive Bootstrap website.

  • I can implement Bootstrap classes and components into a website.

What is Bootstrap?

What is responsive?

Responsive design isn't just about websites looking good on different screens; it's about delivering an optimal user experience on any device. Imagine navigating a complex website on a tiny phone instead of a spacious desktop – the frustration is real! Responsive design solves this by adapting the website's layout, content, and functionality to various screen sizes, ensuring a seamless user journey.

Bootstrap's Grid System:

Bootstrap, a popular framework, makes responsive design accessible. Based on 12 columns, its grid system provides a flexible layout structure. In your example, <div class="col-md-6"> and <div class="col-lg-6"> define elements that occupy 6 columns on medium and large screens, respectively.

Breakpoints and Device Adaptation:

The magic happens with breakpoints and specific screen widths where the layout adjusts. Bootstrap uses predefined breakpoints for @media queries, essentially saying, "When the screen size reaches X, apply these styles." Your task with the inspector window is to find these breakpoints! Look for @media rules defining styles for lg, md, and sm (small) screens. Notice how Bootstrap adjusts the number of columns these classes occupy at each breakpoint.

Exploring Device-Specific Adjustments:

While Bootstrap offers a solid foundation, sometimes device-specific tweaks are necessary. For example, on smaller screens, you might:

  • Collapse content sections by default and use buttons or icons to reveal them.

  • Increase font sizes for better readability.

  • Simplify navigation menus or switch to hamburger menus for better accessibility.

  • Optimize images for faster loading times.

Beyond Bootstrap:

Remember, Bootstrap is a tool, not a silver bullet. You might need to go beyond its base styles as your projects evolve. This is where understanding CSS media queries and flexbox becomes crucial for more granular control over responsive layouts.

Beyond Screen Size:

While the screen size is the primary factor, a responsive design also considers other aspects:

  • Device orientation: Portrait and landscape modes on phones and tablets require different layouts.

  • Resolution: High-resolution displays might necessitate adjustments for image quality and text sizes.

  • Network speed: Consider loading optimizations for users with slower connections.

The Importance of Testing:

Responsive design isn't a one-and-done task. Rigorous testing on various devices and screen sizes is crucial. Use browser emulators and real devices to identify and fix any layout issues and ensure a consistent user experience across platforms.

Optional Button Drill

Bootstrap 2 Project

Replit: Our Cloud-Based IDE

  • What is Replit? Replit is an online platform that acts as an Integrated Development Environment (IDE). Think of it as a workspace in your browser where you can write code, run your website, and collaborate with others in real time.

  • How does it work in class? Instead of downloading templates, each student will have a pre-provisioned copy of the chosen StartBootstrap template ready to use in Replit. This eliminates the need for individual downloads and setups.

  • Pros of using Replit:

    • Convenience: No setup required, access your project from any device with internet.

    • Collaboration: Work with classmates on your website in real time.

    • Pre-configured environment: Everything you need to start coding is already set up.

    • Cloud storage: No need to worry about losing your work; it's automatically saved online.

  • Cons of using Replit:

    • Limited customization: Replit may have limitations compared to desktop IDEs like VS Code in terms of customization and plugin options.

    • Offline access: You need an internet connection to access your project in Replit.

,VS Code with Downloaded Template:

  • What is VS Code? VS Code is a popular, downloadable code editor for your computer. It provides powerful features like syntax highlighting, code completion, and debugging tools.

  • Using VS Code: You can download the StartBootstrap template yourself and open it in VS Code for editing.

  • Pros of using VS Code:

    • More customization: VS Code offers extensive customization options with plugins and themes, catering to your preferred development style.

    • Offline access: Work on your website even without an internet connection.

    • Advanced features: Powerful debugging tools and code analysis features for more in-depth development.

  • Cons of using VS Code:

    • Setup required: You must download and install VS Code and the template.

    • No real-time collaboration: Working with classmates requires additional tools or sharing downloaded files.

    • Storage management: You're responsible for saving and backing up your project files.

The Choice is Yours!

Both options have their merits, and the best choice depends on your personal preferences and learning style.

  • For beginners: Replit's easy access and collaboration features might be ideal.

  • For experienced programmers: VS Code's customization and offline capabilities could be more appealing.

Download a StartBootstrap Template:

  • Choose a template that suits your project's needs.

  • Click on the template's preview page and find the download button.

  • Select the option to download the zipped file.

  • Save the downloaded file to a convenient location on your computer.

Open the Template in VS Code:

  • Open VS Code.

  • Go to File > Open Folder.

  • Select the unzipped folder containing the downloaded template.

  • Click Open. This will open the entire template structure within VS Code.

Create a Custom CSS File:

  • Within VS Code:

    • Go to File > New File.

    • Name the file custom.css.

    • Save the file in the appropriate location within your project folder (usually the root directory).

Open a Preview of the Site:

  • In VS Code:

    • Right-click on the index.html file and select Open with > Live Server.

  • This will launch a local preview of the website in your default browser.

Make Changes and Refresh:

  • Edit the HTML and CSS files directly within VS Code to customize the website.

  • Update your custom.css file with desired styles.

  • Save your changes.

  • The Live Server preview will automatically refresh, reflecting your latest edits.

Continue Building:

  • Use the template's structure and provided classes as a starting point.

  • Add your own content and modify the HTML as needed.

  • Refer to the template's documentation for available components and their usage.

  • Use your custom.css file to personalize the design further.

  • Keep making changes, saving, and refreshing to see your progress unfold.

Additional Tips:

  • Regularly save your project folder to Google Drive for backup and collaboration.

  • Explore Bootstrap's extensive documentation and online resources to learn more about its features and customization options.

  • Remember, practice makes perfect! Start with this guide, experiment, and have fun creating your unique website!

In the same folder, create a new file: custom.css. Next we'll need to connect the css file to the folder html file.

Video Walkthroughs

. Twitter publishes a front-end framework that has significantly impacted web designers. It's great, and you'll spend a lot of time with .

Here's another fun exercise. Let's open up again, set up Bootstrap, and customize a button. Check out some simple examples from the ever-helpful W3schools:

Look at some of the .

Visit StartBootstrap () and browse their collection of free templates.

Read about it
its documentation
https://codepen.io/
https://www.w3schools.com/csS/css3_buttons.asp
coolest CSS buttons
https://startbootstrap.com/
LogoIntroductiongetbootstrap
Check that you're looking at the latest version
Bootstrap has tons of helpful styles and tools built in, but most importantly, it makes your page responsive