Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
.first_page {
display: flex;
height: 100vh;
/* background-image: url("https://cdn.pixabay.com/photo/2018/07/05/14/45/conference-3518465_1280.jpg"); */
background-image: url("https://cdn.pixabay.com/photo/2018/07/05/14/45/conference-3518465_1280.jpg");
background-size: cover;
background-position: center;
justify-content: center;
Expand Down
16 changes: 8 additions & 8 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React, { useState } from "react";
import "./App.css";
import ConferenceEvent from "./ConferenceEvent";
import AboutUs from "./AboutUs";
import React, { useState } from "react"; /* need to define this */
import "./App.css"; /* imports the theme from css file */
import ConferenceEvent from "./ConferenceEvent"; /* imports the conferenceEvent.jsx file (Conference event planner) */
import AboutUs from "./AboutUs"; /* imports the about us.jsx file */

function App() {
const [showVenue, setShowVenue] = useState(false);
function App() { /* Component function */
const [showVenue, setShowVenue] = useState(false); /* Get started page */

const handleGetStarted = () => {
setShowVenue(true);
Expand All @@ -15,7 +15,7 @@ function App() {
<header className="first_page">
<div className="main_event">
<div className="first_page_name_btn">
<h1 className="budget_heading">Conference Expense Planner</h1>
<h1 className="budget_heading">Conference Expense Planner</h1>
<p className="budget_sentence"> Plan your next major event with us!</p>
<div className="getstarted_btn">
<button onClick={() => handleGetStarted()} className="get-started-btn">
Expand All @@ -29,7 +29,7 @@ function App() {
</div>
</header>

<div className={`event-list-container ${showVenue ? 'visible' : ''}`}>
<div className={`event-list-container ${showVenue ? 'visible' : ''}`}> {/* using ConferenceEvent variable */}
<ConferenceEvent />
</div>
</>
Expand Down
Loading