Skip to content

Commit 20db41b

Browse files
committed
Small updates
1 parent 7d51fdb commit 20db41b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/guided-workshop/exercises/5-coding.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ GitHub Copilot is a generative AI service trained on billions of lines of public
66

77
## Scenario
88

9-
The shelter wants to add their hours to the webpage for the current day so people know when they can stop by to visit on that day. As this is something which could appear on multiple pages, it's best to create this as a [component](https://nextjs.org/learn/foundations/from-javascript-to-react/building-ui-with-components). For the time being, the component will be displayed solely on the homepage.
9+
The shelter wants to add their hours to the webpage for the current day so people know when they can stop by to visit on that day. As this is something which could appear on multiple pages, it's best to create this as a [component](https://nextjs.org/learn/foundations/from-javascript-to-react/building-ui-with-components). For the time being, the component will be displayed solely on the homepage. To support the test, the output will be displayed in a `div` element with an id of `hours`.
1010

1111
> **IMPORTANT:** You do not need to have experience with Next.js to complete this exercise. A [solution file](../resources/solutions/Hours.js) is provided for you to use as a model or to simply copy.
1212
@@ -134,15 +134,15 @@ Let's see how GitHub Copilot can help us quickly create the component.
134134
1. Finally, ask GitHub Copilot to display today's hours:
135135
136136
```javascript
137-
//display todays hours
137+
// display todays hours in a div container with an id of hours
138138
```
139139
140140
1. GitHub Copilot will likely suggest the following code line-by-line, which you can accept by pressing <kbd>Tab</kbd>:
141141
142142
```jsx
143143
return (
144-
<div>
145-
<h1>Today's Hours</h1>
144+
<div id="hours">
145+
<h2>Today's Hours</h2>
146146
<p>{todayHours.day}: {todayHours.open} to {todayHours.close}</p>
147147
</div>
148148
);

0 commit comments

Comments
 (0)