This repository has been archived by the owner on Feb 9, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 767
London10_Jan_Softa_cyf_hotel_react #615
Open
softacoder
wants to merge
17
commits into
CodeYourFuture:master
Choose a base branch
from
softacoder:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
1cf19b9
Commits
softacoder c7ff69b
Update InfoCard
softacoder 489d1c8
Commit SearchResult
softacoder 0780f8e
Update
softacoder a853508
Added 2 commits
softacoder f3b3c83
Commit
softacoder 2e4f051
Commit Pseudocode
softacoder 908bc74
Commit
softacoder 1bfebc6
Commit
softacoder 3b74d7c
Update w delay spinner
softacoder 0577cb9
Update
softacoder c5be138
Commit changes
softacoder 5566d9d
commit list
softacoder 10fd09d
Commit
softacoder e9c0db9
commit
softacoder e7aab2d
Commit
softacoder dd36877
commit
softacoder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
"browserslist": { | ||
"production": [ | ||
">0.2%", | ||
"not dead", | ||
"not op_mini all" | ||
], | ||
"development": [ | ||
"last 1 chrome version", | ||
"last 1 firefox version", | ||
"last 1 safari version" | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,42 @@ | ||
import React from "react"; | ||
|
||
import Top from "./Top"; | ||
import Heading from "./Heading"; | ||
import Bookings from "./Bookings"; | ||
import InfoCard from "./InfoCard"; | ||
import "./App.css"; | ||
import Footer from "./Footer"; | ||
import Restaurant from "./Restaurant"; | ||
|
||
const App = () => { | ||
const contactDetails = [ | ||
"123 Fake Street, London, E1 4UD", | ||
"[email protected]", | ||
"0123 456789", | ||
]; | ||
|
||
return ( | ||
<div className="App"> | ||
<header className="App-header">CYF Hotel</header> | ||
<Top /> | ||
<Heading /> | ||
<InfoCard /> | ||
<Bookings /> | ||
<Restaurant /> | ||
<Footer contactDetails={contactDetails} /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default App; | ||
|
||
// Pseudocode: React component called "App". It imports several other components, such as "Top", "Heading", "Bookings", | ||
// "TouristInfoCards", "Footer", and "Restaurant". It also imports a CSS file called "App.css" for styling. The App | ||
// component is a functional component written using arrow function syntax. It returns JSX (JavaScript XML), which | ||
// represents the structure and content of the component's rendered output. | ||
|
||
// Inside the App component, there is a constant variable contactDetails that holds an array of contact information. | ||
// The array contains a street address, email address, and phone number. The JSX code returned by the App component | ||
// represents the structure of the web page. It consists of a <div> element with the class name "App". Inside the <div>, | ||
// the imported components are rendered in order: <Top />, <Heading />, <TouristInfoCards />, <Bookings />, <Restaurant />, and | ||
// <Footer />. The <Footer /> component is passed the contactDetails array as a prop. The export default App; statement | ||
// exports the App component as the default export of this module, allowing it to be imported and used in other parts of | ||
// the application. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move the contactDetails inside the Footer component? I don't think there is a need to define contactDetails here and pass it to the Footer component as props