Skip to content

Commit

Permalink
fix design
Browse files Browse the repository at this point in the history
  • Loading branch information
Kriti Seth committed Oct 23, 2024
1 parent 094b38d commit ec05913
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 36 deletions.
2 changes: 1 addition & 1 deletion apps/frontend-e2e/src/e2e/app.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ describe('frontend-e2e', () => {
cy.login('my-email@something.com');

// Function helper example, see `../support/app.po.ts` file
getGreeting().contains(/Link Your World with/);
getGreeting().contains(/Link Your World With/);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
<!-- Main Content Section -->
<main class="simple-url">
<!-- Page Heading with Title and Sub-title -->
<h1 class="display-5">
<!-- Icon for decorative purpose with main title -->
Link Your World with <span>QR</span> &
<span>Short Links</span>
<br />
<!-- Tagline of the service -->
“Effortless Sharing, Anytime, Anywhere"
</h1>
<div class="d-flex header-area">
<!-- Icon for decorative purpose -->
<i class="bi bi-stars"></i>
<!-- Main title -->
<h1 class="display-5 m-0">
Link Your World With <span>QR</span> & <span>Short Links</span>
<br />
<!-- Tagline of the service -->
<small>“Effortless Sharing, Anytime, Anywhere"</small>
</h1>
</div>

<!-- Tab Navigation to switch between Short Link and QR Code functionalities -->
<div class="tab-navigation">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,27 @@ main {
height: 85%;
margin-top: 70px;
@include flex;

// Main heading (H1) styling
h1 {
font-size: 40px;
color: $primary-color;
font-weight: lighter !important;
text-align: center;

// Icon inside H1 styling
.header-area {
i {
color: $primary-color;
font-size: 40px;
position: relative;
top: -30px;
top: -35px;
left: -10px;
}

// Styling for colored spans within H1
span {
color: #87a2ea;
font-weight: bold;
// Main heading (H1) styling
h1 {
font-size: 40px;
color: $primary-color;
font-weight: lighter !important;
text-align: center;

// Styling for colored spans within H1
span {
color: #87a2ea;
font-weight: bold;
}
}
}

Expand Down Expand Up @@ -88,13 +91,14 @@ main {
width: 50%; // Set form width to 50% of the parent
z-index: 1; // Ensure form is layered correctly
@include flex; // Use flexbox for layout (assuming a flex mixin)
margin-bottom: 50px;

// Form group container styling
.form-group {
display: flex; // Flexbox layout for form groups
width: 100%; // Full width for form group
justify-content: center; // Center the form group content horizontally
padding: 15px; // Padding around the form group
padding: 10px; // Padding around the form group

// Validity time section inside form group
.validity-time {
Expand Down Expand Up @@ -226,11 +230,17 @@ main {

// QR code scanner section
.scanner {
width: 100%; /* Make the container take full width of its parent */
max-width: 500px; /* Optional: Set a maximum width for the scanner */
height: auto; /* Maintain aspect ratio */
margin: 0 auto; /* Center the scanner on the page */
@include flex; // Use flexbox for layout inside the scanner

margin-top: 15px;
// QR code image styling
img {
width: 150px; // Set QR code image width
canvas {
width: 100% !important; /* Make the canvas responsive */
height: auto !important; /* Keep aspect ratio */
display: block; /* Remove any gaps below the canvas */
}
}

Expand Down Expand Up @@ -268,12 +278,20 @@ main {
/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
.container {
max-width: 100%;
max-width: 95%;

main {
h1 {
font-size: 25px;
margin-top: 100px;
.header-area {
i {
font-size: 30px;
left: 0px;
}
h1 {
font-size: 25px;
}
}

.tab-button {
padding: 5px;
width: 120px;
Expand Down Expand Up @@ -302,13 +320,19 @@ main {
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
.container {
max-width: 80%;
max-width: 80% !important;

main {
h1 {
font-size: 30px;
}
margin-top: 100px;
.header-area {
i {
left: -0px;
}

h1 {
font-size: 30px;
}
}
form {
width: 100%;

Expand All @@ -326,6 +350,7 @@ main {
max-width: 80%;

main {
margin-top: 100px;
h1 {
font-size: 30px;
}
Expand Down Expand Up @@ -365,6 +390,7 @@ main {
form {
legend {
width: 50%;
font-size: 17px;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,13 @@ nav {
color: #87a2ea !important;
}
}
.navbar-toggler:focus {
box-shadow: none !important;
}
}
}
@media (max-width: 767.98px) {
nav {
max-width: 90%;
}
}
4 changes: 2 additions & 2 deletions apps/frontend/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ body {
}
.simple-url::after {
content: '';
position: absolute;
position: fixed;
top: 200px;
left: 0;
right: 0;
bottom: 0;
background: url('../../frontend/src/assets/images/background-pattern.png') no-repeat;
background-size: contain;
background-position: right 70%;
background-position: right bottom;
z-index: -1;
}

0 comments on commit ec05913

Please # to comment.