Skip to content

Commit

Permalink
main layout padding and home hero screenshot adjustment on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
cankurttekin committed Nov 11, 2024
1 parent f07b2d5 commit c5342e5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
3 changes: 2 additions & 1 deletion frontend/src/components/layout/MainContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import styled from 'styled-components';
const MainContent = styled.div`
flex: 1;
padding: 20px;
margin: 20px;
margin-top: 20px;
//margin: 20px;
//background-color: #ffffff;
//border-radius: 10px;
//box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
Expand Down
17 changes: 12 additions & 5 deletions frontend/src/styles/Home.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
justify-content: space-between; /* Space between header and footer */
min-height: 100vh; /* Ensure it occupies the full height of the viewport */
text-align: center;
padding: 20px;
//padding: 10px;
margin-top: 10px;
}

Expand Down Expand Up @@ -63,6 +63,11 @@

/* Media query for small devices */
@media (max-width: 768px) {
.header-container {
flex-direction: column;
align-items: center;
margin-bottom: 30px;
}
.big-text {
font-size: 1.8em;
}
Expand All @@ -89,8 +94,7 @@
}

.register-button {
width: 100%; /* Full-width button on mobile */
padding: 15px;
/*padding: 12px;*/
}
}

Expand All @@ -99,6 +103,7 @@
margin-top: 20px;
}


.big-text {
font-size: 1.6em;
}
Expand Down Expand Up @@ -190,8 +195,10 @@ a:hover {
}

.screenshot-container {
max-width: 100%; /* Full width on small screens */
margin: 0 0 20px 0; /* Space below the image */
/*max-width: 220%; Full width on small screens */
min-width: 230%;
margin-left: -126%;
//margin: 0 0 20px 0; /* Space below the image */
}

.screenshot-text {
Expand Down

0 comments on commit c5342e5

Please sign in to comment.