Skip to content

Commit

Permalink
Merge pull request #119 from AnWhiteM/styles-fixes
Browse files Browse the repository at this point in the history
login styles
  • Loading branch information
AnWhiteM authored Jun 19, 2024
2 parents 46f8c73 + 9377a43 commit b9c3461
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 10 deletions.
3 changes: 1 addition & 2 deletions src/img/icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ li {
overflow: hidden;
}

h1,
h2,
h3,
p {
Expand Down
20 changes: 16 additions & 4 deletions src/pages/LoginPage/LoginPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,35 @@ export default function LoginPage() {
<div className={css.box}>
{!(isRegistering || isLoggingIn) && (
<>
<picture>

<img
className={css.img}
srcSet="https://res.cloudinary.com/dqwyuuuzd/image/upload/v1718235452/p6ex38slxwvcjwcwnbxj.png 1x, https://res.cloudinary.com/dqwyuuuzd/image/upload/v1718235452/ixq02fsx2ekcu2qu7nb0.png 2x"
src="https://res.cloudinary.com/dqwyuuuzd/image/upload/v1718235452/ixq02fsx2ekcu2qu7nb0.png"
alt="man after the laptop"



/>
{/* <picture className={css.img}>
<source
srcSet={`
https://res.cloudinary.com/dqwyuuuzd/image/upload/v1718235452/p6ex38slxwvcjwcwnbxj.png 124w,
https://res.cloudinary.com/dqwyuuuzd/image/upload/v1718235452/ixq02fsx2ekcu2qu7nb0.png 248w`}
sizes="(min-width: 1440px) 124px, (min-width: 1280px) 124px, (min-width: 768px) 124px, (min-width: 320px) 124px"
sizes="(min-width: 1440px) 162px, (min-width: 1280px) 162px, (min-width: 768px) 162px, (min-width: 320px) 124px"
/>
<img
src="https://res.cloudinary.com/dqwyuuuzd/image/upload/v1718235452/ixq02fsx2ekcu2qu7nb0.png"
alt="man after the laptop"
/>
</picture>
</picture> */}

<div className={css.title}>
<svg width="48" height="48">
<div className={css.logoBox}>
<svg className={css.logoLight}>
<use href={svg + "#icon-logo"}></use>
</svg>
</div>
<h1 className={css.titlename}>Task Pro</h1>
</div>
<p className={css.quote}>
Expand Down
77 changes: 73 additions & 4 deletions src/pages/LoginPage/LoginPage.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,85 @@
}

.img {
width: 162px;
margin-bottom: 20px;
width: 142px;
}

@media screen and (min-width: 768px) {
.img{
width: 162px;
}
}
.title {
display: flex;
align-items: center;
margin-top: 30px;
margin-bottom: 10px;
font-family: "Poppins", sans-serif;
font-weight: 600;
gap: 14px;
font-size: 25px;
font-size: 20px;
}

@media screen and (min-width: 768px) {
.title{
font-size: 23px;
}
}

@media screen and (min-width: 1280px) {
.title{

font-size: 25px;
}
}


.logoBox{
background-color: #121212;
width: 48px;
height: 48px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 12px;

}

@media screen and (min-width: 768px) {
.logoBox{
width: 64px;
height: 64px;
}
}

@media screen and (min-width: 1280px) {
.logoBox{
width: 64px;
height: 64px;

}
}
.logoLight{
fill: #fff;
width: 22px;
height: 22px;

}
@media screen and (min-width: 768px) {
.logoLight{
width: 32px;
height: 32px;
}
}

@media screen and (min-width: 1280px) {
.logoLight{
width: 32px;
height: 32px;

}
}

.titlename{
color: var(--black);
font-family: "Poppins", sans-serif;
Expand All @@ -30,20 +97,22 @@
color: var(--black);
font-family: "Poppins", sans-serif;
font-weight: 500;
font-size: 22px;
font-size: 14px;
max-width: 45vh;
text-align: center;
padding-bottom: 48px;
}
@media screen and (min-width: 768px) {
.quote{
max-width: 65vh;
font-size: 18px;
}
}

@media screen and (min-width: 1280px) {
.quote{
max-width: 80vh;
font-size: 22px;
}
}

Expand Down

0 comments on commit b9c3461

Please sign in to comment.