Refactor landing page and make it responsive

This commit is contained in:
Agampreet Singh
2024-07-21 17:31:37 +05:30
parent 1068ed3a55
commit ffc3042053
3 changed files with 117 additions and 123 deletions

View File

@@ -5,6 +5,12 @@ body {
background-size: auto;
background-repeat: no-repeat;
background-attachment: fixed;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
text-align: center;
overflow: hidden;
}
@font-face {
@@ -19,16 +25,55 @@ body {
--font-size-sm: 14px;
--color-aliceblue-100: #f3f8ff;
--br-5xs: 8px;
--color-download: #00a7ff;
--color-github: #333;
}
.download-now {
position: relative;
font-size: var(--font-size-sm);
line-height: 19px;
font-weight: 600;
.container {
display: flex;
align-items: center;
justify-content: center;
flex-direction: row;
width: 100%;
max-width: 1200px;
padding: 20px;
font-family: var(--font-poppins);
color: var(--color-aliceblue-100);
text-align: center;
}
.ms-365-electron {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
width: 50%;
text-align: left;
}
.heading {
font-size: 85px;
line-height: 90px;
color: #292e37;
margin-bottom: 10px;
}
.byagam778 {
font-size: 38px;
line-height: 50px;
font-family: 'SF Pro Text',-apple-system,BlinkMacSystemFont,var(--font-san-francisco);
color: #00acff;
cursor: pointer;
margin-bottom: 10px;
}
.description {
font-size: 20px;
margin-bottom: 20px;
}
.buttons {
display: flex;
gap: 10px;
margin-bottom: 20px;
}
.download,
@@ -37,155 +82,100 @@ body {
border: 0;
padding: 0;
background-color: transparent;
position: absolute;
margin-top: 597px;
border-radius: var(--br-5xs);
width: 190px;
height: 62px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
transition: all 0.5ms ease;
}
.download {
margin-left: 172px;
background: linear-gradient(90.05deg, #45bfff 26.58%, #00a7ff);
background: linear-gradient(90.05deg, #45bfff 26.58%, var(--color-download));
box-shadow: 0 24px 30px -16px rgba(45, 183, 255, 0.25);
}
.github {
margin-left: 392px;
background: linear-gradient(90.05deg, #424242 26.58%, #333);
background: linear-gradient(90.05deg, #424242 26.58%, var(--color-github));
box-shadow: 0 24px 30px -16px rgba(66, 66, 66, 0.25);
}
.description,
.heading {
position: absolute;
margin-top: 505px;
margin-left: 172px;
line-height: 26px;
display: inline-block;
width: 388px;
.download:hover {
background: transparent;
border: 3px solid var(--color-download);
color: black;
}
.heading {
margin-top: 285px;
margin-left: 166px;
font-size: 85px;
line-height: 90px;
color: #292e37;
width: 461px;
.github:hover {
background: transparent;
border: 3px solid var(--color-github);
color: black;
}
.byagam778 {
position: absolute;
margin-top: 219px;
margin-left: 170px;
font-size: 38px;
line-height: 50px;
font-family: 'SF Pro Text',-apple-system,BlinkMacSystemFont,var(--font-san-francisco);
color: #00acff;
cursor: pointer;
.download-now {
font-size: var(--font-size-sm);
line-height: 19px;
font-weight: 600;
color: var(--color-aliceblue-100);
transition: color 0.5s ease;
}
.content,
.preview-icon {
position: absolute;
margin-top: -93px;
margin-left: 0;
width: 890px;
height: 834px;
}
.content {
transform: translate(-50%, -50%);
margin-left: 30%;
margin-top: 21.5%;
.download:hover .download-now,
.github:hover .download-now {
color: black;
}
.preview-icon {
position: absolute;
margin-top: 23%;
margin-left: 68%;
transform: translate(-50%, -50%);
width: 708px;
height: 447px;
width: 50%;
max-width: 708px;
height: auto;
object-fit: cover;
margin-left: 20px;
}
@media (max-width: 768px) {
.container {
flex-direction: column;
}
.preview-icon {
width: 100%;
margin: 0;
margin-bottom: 20px;
}
.ms-365-electron {
width: 100%;
height: 696px;
flex-direction: column;
text-align: center;
align-items: center;
justify-content: flex-start;
text-align: left;
font-size: 18px;
color: #525d73;
font-family: var(--font-poppins);
}
@media (max-width: 768px) {
.preview-icon {
width: 78%;
height: auto;
margin-top: 45%;
margin-left: 50%;
transform: translate(-50%, -50%);
}
.content {
margin-top: 77%;
}
.heading {
text-align: center;
font-size: 30px;
height: auto;
margin-top: 56%;
margin-left: 59%;
transform: translate(-50%, -50%);
line-height: 36px;
}
.byagam778 {
text-align: center;
width: 100%;
font-size: 26px;
height: auto;
margin-top: 50%;
margin-left: 59%;
transform: translate(-50%, -50%);
}
.description {
text-align: center;
width: 40%;
font-size: 20px;
height: auto;
margin-top: 65%;
margin-left: 59%;
transform: translate(-50%, -50%);
font-size: 18px;
}
.download,
.github {
text-align: center;
font-size: 20px;
margin-top: 85%;
margin-left: 59%;
transform: translate(-50%, -50%);
}
.download {
text-align: center;
font-size: 20px;
margin-top: 77%;
margin-left: 59%;
transform: translate(-50%, -50%);
width: 160px;
height: 54px;
font-size: 16px;
}
.download-now {
font-size: 14px;
font-size: 12px;
}
.buttons {
flex-direction: column;
}
}

View File

@@ -26,8 +26,14 @@
/>
</head>
<body>
<div class="container">
<div class="ms-365-electron">
<div class="content">
<div class="byagam778" id="byagam778">By @agam778</div>
<div class="heading">MS-365-Electron</div>
<div class="description">
Unofficial Microsoft 365 Web Desktop Wrapper made with Electron
</div>
<div class="buttons">
<button class="download" id="download">
<div class="download-now">
Download Now:
@@ -37,11 +43,7 @@
<button class="github" id="gitHub">
<div class="download-now">View on GitHub</div>
</button>
<div class="description">
Unofficial Microsoft 365 Web Desktop Wrapper made with Electron
</div>
<b class="heading">MS-365-Electron</b>
<div class="byagam778" id="byagam778">By @agam778</div>
</div>
<img class="preview-icon" alt="" src="./public/preview.png" />
</div>

View File

@@ -3,6 +3,8 @@ body {
text-rendering: optimizeLegibility;
font-family: "proxima-nova-soft", sans-serif;
-webkit-user-select: none;
overflow: hidden;
}
body .vertical-centered-box {
position: absolute;