Skip to content

Commit

Permalink
added header, logo, and explore
Browse files Browse the repository at this point in the history
  • Loading branch information
tifftang committed Jan 21, 2025
1 parent 2e7775c commit 18b4835
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/src/components/AddEventModal/AddEventModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const AddEventModal = (props: AddEventModalProps) => {
};

return (
<dialog ref={addEventRef} className="card">
<dialog ref={addEventRef} className="card" >
<div className="add-event-modal">
<h2>Add event</h2>
<input
Expand Down
18 changes: 18 additions & 0 deletions client/src/components/Header/Header.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.logo {
width: 70px;
}

.alignment {
display: flex;
justify-content: left;
padding-top: 10px;
}

.body {
padding-bottom: 10px;

}

.name {
padding-top: 9px;
}
7 changes: 5 additions & 2 deletions client/src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ import './Header.css';

const Header = () => {
return (
<header>
<h1>Header</h1>
<header className = "body">
<div className = "alignment">
<img src= "src/components/Header/calendub-transparent.png" alt= "logo" className = "logo"></img>
<h1 className = "name"> CalenDub</h1>
</div>
</header>
);
};
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions client/src/components/PageHeader/PageHeader.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,24 @@
display: block;
width: 20rem;
padding: 1rem;
padding-top: 10px;
}

.block {
padding-top: 32px;
}

.filter {
border: none;
border-radius: 12px;
padding: 10px 30px;
text-align: center;
text-decoration: none;
font-size: 12px;
margin-left: 5px;
cursor: pointer;
}

.divide {
width: 5px;
}
15 changes: 13 additions & 2 deletions client/src/components/PageHeader/PageHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,19 @@ import './PageHeader.css';

const PageHeader = () => {
return (
<div className="page-header card">
<h2>Page Header</h2>
<div className = "block">
<div className = "page-header card">
<h2>Explore</h2>
<p> Discover the most liked and anticipated events of the month!</p>
<br></br>
<p> Popular tags</p>
<div>
<button className = "filter"> testing </button>

<button className = "filter"> testing2 </button>
<button className = "filter"> testing3 </button>
</div>
</div>
</div>
);
};
Expand Down

0 comments on commit 18b4835

Please sign in to comment.