Skip to content

Commit

Permalink
Merge pull request #1 from githubuniverseworkshops/add-front-end-comp…
Browse files Browse the repository at this point in the history
…onents

Add front end components
  • Loading branch information
bryantson authored Sep 11, 2024
2 parents 364827f + b3ad32e commit e03c4d7
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion contents/3_GettingStarted/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,38 @@
# Getting started - Front end setup with HTML and CSS
# Getting started - Front end setup with HTML and CSS

In this section, we will start by setting up the face of our OctoFit application by building the front end page. To do that, we will keep it as simple as possible for now. We need resources like HTML and CSS to start decorating first, and we will later modify the page to extend the functionalities.

## Goals/Outcome:
- Understand the basic strategies around designing the OctoFit app by asking GitHub Copilot Chat
- Start getting the feel for OctoFit app by generating HTML and CSS resources
- See a front-end page with a greeting message

![OctoFit App with front end](images/0_FinalResult.jpg)

Let’s start with the basic front end development with the help of GitHub Copilot. Although we can start using the built-in in-file Copilot suggestion, we will initiate this by using GitHub Copilot Chat.

After you open the GitHub Copilot Chat panel, please type the following prompt.

`I have this great idea called the OctoFit app. Can you show me the outline for how to get started? Please ignore technology stacks for now.`

![Ask Copilot for Outline](images/1_AskCopilot4Outline.jpg)

The reason why I asked to ignore technology stack is because I want to keep it super simple. If we did not add that, what you will likely see is that some users will get code examples, while some others don’t, etc.

> TIP: One challenging thing about GitHub Copilot is that it is very generative. Thus, it is hard to make a consistent, repeatable tutorial unless you try to keep it simple and very progressive.
Once you get the result, try to read to see how you can approach creating our fitness application. Your result still might look different from mine, and that is perfectly okay!

Once you get the result, try to read to see how you can approach creating our fitness application. Your result still might look different from mine, and that is perfectly okay!

Now, let’s move onto the next prompt through GitHub Copilot Chat. This time, we want to generate some assets to create our web pages. HTML, which stands for Hyper Text Markup Language, is the language of the web, though it is not exactly a programming language, and CSS, which stands for Cascading Style Sheet, is the web language for the design. Thus, we will ask to generate these two. Let’s proceed with the following prompts.

`Now, how can I add HTML and CSS on these?`

![Ask Copilot for HTML and CSS - Page 1](images/2_1_AskGenerateHTMLCSS.jpg)

![Ask Copilot for HTML and CSS - Page 2](images/2_2_AskGenerateHTMLCSS.jpg)

As you can see, this prompt will generate some examples of HTML and CSS lines that you can use. Again, your result might look different from mine, and that is perfectly okay!



Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e03c4d7

Please sign in to comment.