Skip to content

Commit

Permalink
Merge branch 'main' into 281_Lesson10
Browse files Browse the repository at this point in the history
  • Loading branch information
Dankco authored Oct 18, 2023
2 parents 524da47 + 5190160 commit cdfcf43
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 11 deletions.
11 changes: 8 additions & 3 deletions src/components/Terminal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,14 @@ export default function Terminal(props: TerminalProps): JSX.Element {

return (
<div>
<div className={alert ? 'copyalert fadeout' : 'hiddenalert'}>
<p>Copied to Clipboard</p>
</div>
{alert ? (
<div className={alert ? 'copyalert fadeout' : 'hiddenalert'}>
<p>Copied to Clipboard</p>
</div>
) : (
<></>
)}

<div className="terminal">
<CopyToClipboard
text={props.code}
Expand Down
9 changes: 5 additions & 4 deletions src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ const Home: FC = () => {
<div id="col-1">
<h1 id="title">Parcel Pointers</h1>
<p id="description">
Lorem ipsum dolor sit amet, consecteur adipiscing elit, sed do
eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut
enim ad minim vernian, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat.
Welcome to Parcel Pointers! This learning lab is designed to
help you learn everything about pointers and how they are used
by following our robot Pipi through a warehouse. By the end of
the learning lab, hopefully you should know how and where to use
pointers in your own projects!
</p>
<button
id="start-button"
Expand Down
5 changes: 5 additions & 0 deletions src/styles/CodeDiagram.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,15 @@
margin: 0.5em;
padding: 5px 10px;
width: fit-content;

&:hover {
cursor: pointer;
}
}

.arrow {
position: relative;
width: 50%;
}

@media screen and (max-width: 1024px) {
Expand Down
5 changes: 3 additions & 2 deletions src/styles/Terminal/Terminal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@
border-color: black;
display: flex;
justify-content: center;
left: 40vw;
left: 50%;
padding: 1em;
position: fixed;
right: 40vw;
top: 7.5vh;
transform: translateX(-50%);
width: max-content;
}

@keyframes fadeout {
Expand Down
2 changes: 1 addition & 1 deletion src/types/globalTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
export enum HeaderSections {
LANDING_SECTION = 'landingSection',
TITLE_SECTION = 'titleSection',
TITLE_SECTION = 'Parcel Pointers',
LEARNING_SECTION = 'learningSection',
CODE_SECTION = 'codeSection',
DEMO_SECTION = 'Demo',
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7548,4 +7548,4 @@ yaml@^1.10.0:

yargs-parser@^20.2.1, yargs-parser@^20.2.3:
version "20.2.9"
resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz"
resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz"

0 comments on commit cdfcf43

Please sign in to comment.