Skip to content

Commit

Permalink
media queries for home page
Browse files Browse the repository at this point in the history
  • Loading branch information
intercalaris committed Jan 10, 2025
1 parent 2fbc40f commit 40ace63
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 9 deletions.
7 changes: 6 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link
rel="icon"
type="image/png"
sizes="32x32"
href="public/img/favicon.ico"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Kinfolx</title>
</head>
Expand Down
1 change: 1 addition & 0 deletions public/img/favicon.ico

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions src/components/Header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export default function Header() {
<div className="logo">
<a href="/">Kinfolx</a>
</div>
<SearchBar />
<SearchBar className="header_search" />
<ul className="nav-links">
<li>
<li className="header_home">
<a href="/">Home</a>
</li>
<li>
Expand All @@ -27,16 +27,12 @@ export default function Header() {
</li>
</ul>
<div className="auth-links">
{/* <a href="/signup">Sign Up</a>
<a href="/login">Login</a> */}
{/* <div className="user"> */}
<SignedOut>
<SignInButton />
</SignedOut>
<SignedIn>
<UserButton />
</SignedIn>
{/* </div> */}
</div>
</nav>
</header>
Expand Down
5 changes: 5 additions & 0 deletions src/components/Header/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,8 @@
.auth-links a:hover {
text-decoration: underline;
}
@media (max-width:600px) {
.header_home, .header_home a {
display: none;
}
}
6 changes: 6 additions & 0 deletions src/components/SearchBar/searchBar.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,9 @@
.header_search-btn:active {
background-color: #3d2c1f;
}
@media (max-width:600px) {
.header_search-form {
display: none;
}

}
4 changes: 2 additions & 2 deletions src/pages/Home/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
}
@media (max-width:600px) {
.home_home-container {
flex-direction: row;
/* flex-direction: row; */
}
.home_home-container {
background-color: white;
/* background-color: white; */
}
}

0 comments on commit 40ace63

Please sign in to comment.