Refactor landing page and make it responsive
This commit is contained in:
210
docs/index.css
210
docs/index.css
@@ -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;
|
||||
}
|
||||
|
||||
.ms-365-electron {
|
||||
width: 100%;
|
||||
height: 696px;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
text-align: left;
|
||||
font-size: 18px;
|
||||
color: #525d73;
|
||||
font-family: var(--font-poppins);
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.preview-icon {
|
||||
width: 78%;
|
||||
height: auto;
|
||||
margin-top: 45%;
|
||||
margin-left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
.container {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.content {
|
||||
margin-top: 77%;
|
||||
.preview-icon {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.ms-365-electron {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,22 +26,24 @@
|
||||
/>
|
||||
</head>
|
||||
<body>
|
||||
<div class="ms-365-electron">
|
||||
<div class="content">
|
||||
<button class="download" id="download">
|
||||
<div class="download-now">
|
||||
Download Now:
|
||||
<div id="release-tag"></div>
|
||||
</div>
|
||||
</button>
|
||||
<button class="github" id="gitHub">
|
||||
<div class="download-now">View on GitHub</div>
|
||||
</button>
|
||||
<div class="container">
|
||||
<div class="ms-365-electron">
|
||||
<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>
|
||||
<b class="heading">MS-365-Electron</b>
|
||||
<div class="byagam778" id="byagam778">By @agam778</div>
|
||||
<div class="buttons">
|
||||
<button class="download" id="download">
|
||||
<div class="download-now">
|
||||
Download Now:
|
||||
<div id="release-tag"></div>
|
||||
</div>
|
||||
</button>
|
||||
<button class="github" id="gitHub">
|
||||
<div class="download-now">View on GitHub</div>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<img class="preview-icon" alt="" src="./public/preview.png" />
|
||||
</div>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user