Your Smoothies Portfolio Project

A portfolio project website for a fictitious smoothie outlet.

Introduction

Below you can see a screenshot of the single-page website you will create.

final
  • In the <header> or 'hero block' is a full-width background image.
  • In the <main> part are five <section> blocks of content.   The first is a 'deckhead' with a single-column layout.   The remaining four are blocks for each of the four smoothie products. All have a two-column split layout.
  • All text on the web page is in the Neucha font from Google Fonts.

Project folders and files

Your first task is to create the folders you need for your Smoothies project.

  1. For your first project, the Fashion project, you created a new folder named 📁 portfolio inside your ‘main’ 📁 websites folder. file-explorer-portfolio-folder   Inside this 📁 portfolio folder create a new sub-folder named 📁 smoothies (all small letters) to store your files for this project. file-explorer-portfolio-folder
  2. Inside this new sub-folder, create an 📁 assets sub-folder.   And inside this, create a 📁 CSS sub-folder and an 📁 img sub-folder. file-explorer-portfolio-folder

✅  All done. You now have created the folder with sub-folders for your Smoothies web page project.

Project Resources

Your next task is to obtain the various files needed for your Smoothies project.

Web page

Save the following Lunevedy ‘starter’ web page to your 📁 smoothies folder:

index.html

Save as HTML

Ensure the Save as type: option is set to Web Page, HTML Only (*.htm; *.html).

Stylesheet

Save the following stylesheet file to your 📁 smoothies/assets/css sub-folder:

custom.css

When you save a stylesheet file, the Save as type: option defaults to Style Sheet (*.css).

Project Text

All the text you need for this web page is in the file below. Only <p> tags have been used for basic formatting.

text.html

You do not need to download this file. You can simply copy-and-paste from it.

Project Images

Download the following five images to your 📁 smoothies/assets/img sub-folder.

✅  That's it. You now have all the resources you need for your Smoothies project.

Launching the Lunevedy app and VS Code

Click the link below to open the Lunevedy app in a new tab of your web browser.

Lunevedy

Next, start VS Code, and open the two files below.

  • smoothies/index.html
  • smoothies/assets/css/custom.css
files VS Code

You are now ready to begin building the various ‘blocks’ of your web page.

Creating the hero block layout

You will begin by creating the hero block that is postioned at the top of the web page.

Working with the hero block in Lunevedy

Follow these steps:

  1. On the home page of the Lunevedy app, choose Hero block 3 option. files You should see a screen similar to the following. Lunevedy hero block
  2. On the Layout menu, choose the following options.
  3. On the Button menu, choose the following option.
  4. Click the HTML button near the bottom-right of the screen.

You can see that the CSS button is not enabled. That is because you have not updated any colours.

Working with the hero block in VS Code

Switch to VS Code and display the index.html web page.

  1. Select the <nav> and <header> tags as shown below. VS Code
  2. Paste in the content you copied from the Lunevedy app. Your VS Code screen should now look as shown below. VS Code
  3. Update the hero block with the words from the text.html file and the downloaded hero image. VS Code
  4. Save your index.html and display it in your web browser. It should look as shown below. Hero block
  5. To speed up the loading of the large smoothies-hero-image.jpg file, copy-and-paste the following code just after the "Preload hero image" comment line in the <head>.
    <link rel="preload" href="assets/img/smoothies-hero-image.jpg" as="image">  
    VS Code
  6. Also in the <head> of your web page, update the title and description as follows.
    • Smooth Smoothies
    • Dublin's finest smoothie store. Offering tasty alternatives to sugary and unhealthy snacks for busy, on-the-go, on-trend professionals.
    VS Code
  7. You will not be using any icons for this project. So you can delete the highlighted code below from the <head> of your web page. VS Code

Creating the deckhead layout

Now it's time to create a deckhead/standfirst section that will be positioned under the hero block.

Working with the deckhead in Lunevedy

Follow these steps:

  1. On the Home page of the Lunevedy app, click the Single column option. files
  2. On the Section menu, leave the Section Class Name option at section-selector-1 and centre-align the content for both desktop and mobile screens.
  3. On the Text menu, select the options below.
  4. On the Illustrations menu, remove the illustration.

When finished, click the HTML button near the bottom-right of the screen.

Working with the deckhead in VS Code

Follow these steps:

  1. Switch to VS Code and display the index.html web page. Inside the opening <main> tag pair, select the first <section> block. VS Code Now paste in your copied content.
  2. Delete the h2 sub-heading, and the second and third p paragraphs of sample text. Your VS Code screen should now look as shown below. VS Code
  3. Update the deckhead with the words from the text.html file. VS Code
  4. Return to the Lunevedy app and click the CSS button at the bottom-right.
  5. In VS Code, display the custom.css stylesheet, and paste in the copied CSS style rule. See below. VS Code
  6. Save your index.html and custom.css files and display the web page in your browser. It should look as shown below. files

Creating the Watermelon smoothie layout

Now you will begin creating the four <section> blocks to hold details of the four smoothie products.

Working with the Watermelon smoothie in Lunevedy

Follow these steps:

  1. On the Home page of the Lunevedy app, click the Two-column split option.files
  2. On the Section menu, choose the following options:
  3. On the Text menu, choose the following option:

When finished, click the HTML button at the bottom-right of the screen.

Working with the Watermelon smoothie in VS Code

Follow these steps:

  1. Switch to VS Code and display the index.html web page. After the first deckhead <section>, select the next empty <section>.
  2. Paste in the copied content from Lunevedy.
  3. Update the text with the words from the text.html file and the downloaded watermelon.png image.
  4. Return to the Lunevedy app. At the bottom-right of the screen, click the CSS button.
  5. In VS Code, display the custom.css file, and paste in the two CSS style rules. VS Code

Save your index.html and custom.css files.

In your browser, the watermelon section should now look as shown below.

Watermelon smoothie - small

Creating the Apple smoothie layout

Let's create the layout for the second smoothie.

Working with the Apple smoothie in Lunevedy

Follow these steps:

  1. On the Lunevedy screen for the two-column split layout, reload the screen in your web browser to remove all previous settings.
  2. On the Section menu, choose the following options:
  3. On the Text menu, choose the following option:

When finished, click the HTML button at the bottom-right of the screen.

Working with the Apple smoothie in VS Code

Follow these steps:

  1. Switch to VS Code and display the index.html web page. Select the next empty <section> tag pair.
  2. Paste in the copied content from Lunevedy.
  3. Update the text with the words from the text.html file and the downloaded apple.png image.
  4. Return to the Lunevedy app. At the bottom-right of the screen, click the CSS button.
  5. In VS Code, display the custom.css file, and paste in the two CSS style rules. VS Code

Save your index.html and custom.css files.

In your browser, the apple section should now look as shown below.

Apple smoothie

That's two of the four smoothie products complete.

Creating the Blueberry smoothie layout

Let's create the layout for the third smoothie.

Working with the Blueberry smoothie in Lunevedy

Follow these steps:

  1. On the Lunevedy screen for the two-column split layout, reload the screen in your web browser to remove all previous settings.
  2. On the Section menu, choose the following options:
  3. On the Text menu, choose the following option:

When finished, click the HTML button at the bottom-right of the screen.

Working with the Blueberry smoothie in VS Code

Follow these steps:

  1. Switch to VS Code and display the index.html web page. Select the next empty <section> tag pair.
  2. Paste in the copied content from Lunevedy.
  3. Update the text with the words from the text.html file and the downloaded blueberry.png image.
  4. Return to the Lunevedy app. At the bottom-right of the screen, click the CSS button.
  5. In VS Code, display the custom.css file, and paste in the three CSS style rules. VS Code

Save your index.html and custom.css files.

In your browser, the blueberry section should now look as shown below.

Apple smoothie

Creating the Lemon smoothie layout

Let's create the layout for the fourth and final smoothie.

Working with the Lemon smoothie in Lunevedy

Follow these steps:

  1. On the Lunevedy screen for the two-column split layout, reload the screen in your web browser to remove all previous settings.
  2. On the Section menu, choose the following options:
  3. On the Text menu, choose the following option:

When finished, click the HTML button at the bottom-right of the screen.

Working with the Lemon smoothie in VS Code

Follow these steps:

  1. Switch to VS Code and display the index.html web page. Paste in the copied content under the previous <section> block.
  2. Update the text with the words from the text.html file and the downloaded lemon.png image.
  3. Return to the Lunevedy app. At the bottom-right of the screen, click the CSS button.
  4. In VS Code, display the custom.css file, and paste in the two CSS style rules. VS Code

Save your index.html and custom.css files.

In your browser, the lemon section should now look as shown below.

Apple smoothie

You have now completed all four of the layouts.

Adding a Google Font

Your next task is to add a Google font to all the text in your smoothies web page Here are the steps:

  1. In a new browser tab, choose the Neucha font in Google Fonts.
  2. At the right of the screen, click Remove all to remove any previously selected fonts.
  3. Scroll down the screen and click the Select Regular 400 option. (This is the only version available for this font family.)
  4. From the two boxes of code at the lower-right of the screen, copy the first.
  5. Switch to the index.html file in VS Code, and paste the font code in the <head> of the web page.
  6. Display the custom.css file and add the following style at the top of the file.

Save your index.html and custom.css files.

Amending the font sizes

Your final task is to update the font sizes and spacing.

  1. For the <h1> and <h2> headings in the hero block, add the following in the custom.css file.
    header h1 { font-size: var(--font-size-xxxl) }
    header h2 { font-size: var(--font-size-xxl) }
    
    header h1, header h2 { letter-spacing: -1px }
  2. For the <p> text in the deckhead, add the following in the custom.css file.
    .section-selector-1 p.bigger-desktop { font-size: var(--font-size-xl) }
    .section-selector-1 p.bigger-mobile { font-size: var(--font-size-lg) }
  3. For the <h2> sub-headings and <p> text for the four smoothies, add the following in the custom.css file.
    .cols-2-half .col-2 h2 {
        font-size: var(--font-size-xxl);
    }
    
    .cols-2-half .col-2 p {
        font-size: var(--font-size-md);
    }
    
    .cols-2-half .col-2 h2,
    .cols-2-half .col-2 p { letter-spacing: 1px }  

Save your index.html and custom.css files.

✅   Finished!

Uploading your project folder to GitHub

After finishing your project, you are now ready to upload it to your account on GitHub.

  1. Open a new tab in your web browser and go to GitHub.com. If you are not already signed in to your GitHub account, sign in now. github-signin
  2. On your GitHub home page, click the ‘repo’ that holds your web pages. Its name will look as follows, where username is your chosen username on GitHub.   username.github.io github-signin
  3. On the next GitHub screen displayed, click the portfolio folder.
  4. With your portfolio folder displayed on GitHub, click Add file button. github-upload-portfolio
  5. From the dropdown list displayed, choose the option Upload files. Project Animation Google Fonts
  6. In File Explorer (Windows) or Finder (Apple Mac), drag-and-drop your 📁 smoothies folder to upload it to the portfolio folder within your repository on GitHub. Introduction to HTML
  7. Scroll down to the bottom of the GitHub screen, and accept or edit the short message (Add files via upload) in the Commit changes box.
  8. Finally, click the green Commit changes button to upload your files. Project Animation Google Fonts

Your portfolio project web page is now published on GitHub at a web address similar to the following:

https://username.github.io/portfolio/smoothies/index.html

or simply:

https://username.github.io/portfolio/smoothies

It may take a few minutes for your uploaded files to appear on GitHub.