Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Resolve responsive layout issues on homepage #12

Merged
merged 3 commits into from
Nov 27, 2023
Merged
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
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />
<meta name="theme-color" content="#000000" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
Expand Down
4 changes: 4 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@
transform: rotate(360deg);
}
}

body {
overflow: hidden; /* Prevent scrolling */
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/HeaderBar.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
display: flex;
justify-content: space-between;
align-items: center;
background-color: black;
background-color: #010206;
padding: 0.5rem 2rem;
color: white;
height: 50px;
Expand Down
20 changes: 9 additions & 11 deletions src/HeroSection.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
justify-content: space-between;
align-items: center;
height: 100vh;
background-color: black; /* Set the background to black */
background-color: #010206; /* Set the background to black */
color: white;
text-align: left;
}

.hero-content {
width: 50%;
width: 50vw;
padding-left: 10%;
max-width: 600px; /* Set a max-width if needed */
max-width: 600px;
}

.hero-greeting {
font-size: 2rem; /* Smaller font size for the greeting */
font-size: 2rem;
margin: 0 0 0.5rem 0;
}

Expand Down Expand Up @@ -60,16 +60,14 @@
}

.hero-image-container {
width: 50%;
height: 100%;
display: flex;
width: 50vw;
height: 100vh;
justify-content: center;
align-items: center;
}

.hero-image {
max-width: 100%; /* Adjust the size as needed */
max-height: 100%;
box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.25); /* Example shadow */
border-radius: 10px; /* If you want rounded corners */
width: 100%;
height: 100%;
border-radius: 10px;
}