Skip to content

Commit

Permalink
added the signup page styling
Browse files Browse the repository at this point in the history
  • Loading branch information
dauletalzhanov committed May 5, 2024
1 parent 2ab1875 commit cc9ad48
Show file tree
Hide file tree
Showing 12 changed files with 443 additions and 16 deletions.
165 changes: 165 additions & 0 deletions src/Pages/CSS/signup.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Noto+Sans+JP:wght@100..900&family=Noto+Serif+JP&family=Oswald:wght@200..700&family=Playfair+Display+SC:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Roboto+Serif:ital,opsz,wght@0,8..144,100..900;1,8..144,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Sawarabi+Mincho&family=Tenor+Sans&display=swap');


#background-signup {
width: 100vw;
height: 100vh;

background-image: url("../../assets/guitar.jpg");
background-size:cover;
background-repeat: no-repeat;
background-position: center;
background-blend-mode: darken;


display: grid;
grid-template-rows: 10vh 90vh;
grid-template-columns: 30vw 70vw;


color: white;


}

#background-signup > Header {
grid-column-start: 0;
grid-column-end: 2;
}

#background-signup > .leftie-background-signup {
grid-row-start: 2;
padding: 1vh;

justify-self: center;
}

#background-signup > .rightie-background-signup {
grid-row-start: 2;
background-color: #00000080;


padding: 1vw;

width: 70vw;
height: 90vh;

place-self: center;

text-align: center;

display: flex;
flex-direction: column;
align-items: center;
}

/*****************************************/

.signup-logo {
height: 10vh;
margin-top: 20vh;

display: flex;
align-items: center;
}

.signup-logo > img {
height: 5vw;
}

.signup-logo > p {
font-size: 5vw;
font-family: "Sawarabi Mincho", "Roboto Serif", serif;
}

.rightie-background-signup > p {
margin-top: 10vh;
font-size: 30px;
font-family: "Oswald", "Roboto", sans-serif;

width: 18vw;
}

/*****************************************/
.leftie-background-signup {
display: flex;
flex-direction: column;
}

.signup-texts {
margin-top: 12vh;
margin-bottom: 5vh;

font-family: "Roboto", "San Francisco", sans-serif;
font-weight: 500;
font-size: 1vw;
color: #3a3a3a;
}

#create-an-account {
font-size: 2vw;
margin: 1vh 0;
color: black;
font-weight: 700;
}

.signup-form {
margin-top: 5vh;
}

#really {
font-size: 1vw;
}

/*****************************************/

.signup-form {

display: flex;
flex-direction: column;
align-items: center;
gap: 1vw;
}

.signup-form > div {
display: flex;
flex-direction: column;

font-family: "Roboto", sans-serif;

}

.signup-form > div > input {
color: black;
width: 25vw;
height: 4vh;
padding-left: 0.4vw;

background-color: rgba(255, 255, 255, 0.33);
}

.signup-form > div > input:focus {
background-color: #efeeff;
border: 1px solid rgba(0, 0, 255, 1);
border-radius: 8px;
outline: none;
}

.signup-button {
background-color: rgba(0, 0, 255, 0.5);
width: 10vw;
height: 6vh;
border-radius: 32px;
}

.signup-button:focus {
background-color: blue;
outline: 1px solid black;
border: 1px solid black;
}

.signup-button:active {
background-color: blue;
outline: 1px solid black;
border: 1px solid black;
}
2 changes: 2 additions & 0 deletions src/Pages/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export default function Login(){
<Helmet>
<title>Log In</title>
<meta name="description" content="Log In to Add Songs to Charts" />
<meta name="keywords" content="Log In, Login, Register, Signup, Sign Up, Log Out, Logout, iTunes, Apple, Firebase, Google, Music, iTunes, React, Facebook, Meta, giphy, artist, song, billboard, top 100, top, play music, etc.," />

</Helmet>
</>)
}
62 changes: 46 additions & 16 deletions src/Pages/Signup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,72 @@ import { useEffect } from "react"

import Header from "../Components/Header"


import white_logo from "../assets/white_logo.svg"
import "./CSS/signup.css"

export default function Signup(){
const [userCookie, setCookie] = useCookies(["user"])
const navigate = useNavigate()

const really = userCookie.user == "guest" ? "" : <p>You want to make another account?!</p>
const really = userCookie.user == "guest" ? "" : <p id="really"> You want to make another account?!</p>
function signUp(){
console.log("epic")

}

return(<>
<Header></Header>

<div id="background-signup" className="desktop-only" >
<Header></Header>

{ really }
<div className="leftie-background-signup ">
<div className="signup-texts">
<p aria-roledescription="paragraph" >Welcome to Smoky Music!</p>

<form>
<div>
<label htmlFor="username">Username:</label>
<input type="text" name="username" id="username" />
</div>
<p id="create-an-account">Create an Account!</p>
<p>Already have an account? <Link role="link" to="/login" aria-label="Navigate to the log in page" >Log In</Link></p>
</div>

{ really }

<div>
<label htmlFor="password">Password:</label>
<input type="password" name="password" id="password" />
<form className="signup-form">
<div>
<label htmlFor="username">Username:</label>
<input type="text" name="username" id="username" aria-label="Username" />
</div>

<div>
<label htmlFor="password">Password:</label>
<input type="password" name="password" id="password" aria-label="Password" />
</div>

<div>
<label htmlFor="confirm-password">Confirm Password:</label>
<input type="password" name="confirm-password" id="confirm-password" aria-label="Confirm Password" />
</div>

<button onClick={signUp} className="signup-button">Sign Up</button>

</form>
</div>

<div>
<button onClick={signUp}>Sign Up</button>
<div className="rightie-background-signup">
<div className="signup-logo">
<img src={white_logo} alt="logo in white color" />
<p role="banner" aria-label="top-banner-signup">Smoky Music </p>
</div>

<p role="banner" aria-label="bottom-banner-signup"><strong>Millions</strong> of songs from iTunes can be saved in your playlist</p>

</div>


<p>Already have an account? <Link to="/login">Log In</Link></p>
</form>
</div>

<Helmet>
<title>Sign Up</title>
<meta name="description" content="" />
<meta name="description" content="Sign up to Smoky Music Today! Sign up so that you can save songs into your personal playlists that you can come back to!" />
<meta name="keywords" content="iTunes, Apple, Firebase, Google, Music, iTunes, React, Facebook, Meta, giphy, artist, song, billboard, top 100, top, play music, etc.," />

</Helmet>
Expand Down
7 changes: 7 additions & 0 deletions src/assets/amplifier.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit cc9ad48

Please sign in to comment.