-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7fa64d5
commit 9647692
Showing
4 changed files
with
126 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
:root { | ||
--green: #c5f82a; | ||
--white: #ffffff; | ||
--grey-700: #333333; | ||
--grey-800: #1f1f1f; | ||
--grey-900: #141414; | ||
} | ||
|
||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
body { | ||
font-family: 'Inter', sans-serif; | ||
background: var(--grey-900); | ||
} | ||
|
||
.container { | ||
background: var(--grey-800); | ||
margin: 150px auto; | ||
max-width: 350px; | ||
padding: 40px 32px; | ||
border-radius: 10px; | ||
|
||
& .profile { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
|
||
& > img { | ||
border-radius: 50%; | ||
width: 80px; | ||
} | ||
|
||
& .profile-info { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
|
||
& h1 { | ||
font-size: 28px; | ||
color: var(--white); | ||
font-weight: 700; | ||
margin-top: 16px; | ||
} | ||
|
||
& p:nth-child(2) { | ||
color: var(--green); | ||
font-weight: 700; | ||
font-size: 14px; | ||
margin-top: 10px; | ||
} | ||
|
||
& p:nth-child(3) { | ||
color: var(--white); | ||
font-weight: 400; | ||
font-size: 14px; | ||
margin-top: 20px; | ||
} | ||
} | ||
} | ||
|
||
& nav { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
margin-top: 20px; | ||
|
||
& a { | ||
color: var(--white); | ||
text-decoration: none; | ||
font-size: 14px; | ||
font-weight: 700; | ||
margin-top: 16px; | ||
padding: 16px; | ||
background-color: var(--grey-700); | ||
width: 100%; | ||
text-align: center; | ||
border-radius: 10px; | ||
|
||
&:hover { | ||
background-color: var(--green); | ||
color: var(--grey-900); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<link rel="preconnect" href="https://fonts.googleapis.com" /> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | ||
|
||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
|
||
<title>Frontend Mentor | Social links profile</title> | ||
<link rel="stylesheet" href="css/styles.css" /> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap" | ||
rel="stylesheet" | ||
/> | ||
</head> | ||
<body> | ||
<main class="container"> | ||
<div class="profile"> | ||
<img src="assets/avatar-jessica.jpeg" alt="Jessica Randall" /> | ||
<div class="profile-info"> | ||
<h1>Jessica Randall</h1> | ||
<p>London, United Kingdom</p> | ||
<p>"Front-end developer and avid reader."</p> | ||
</div> | ||
</div> | ||
|
||
<nav class="social"> | ||
<a href="#">GitHub</a> | ||
<a href="#">Frontend Mentor</a> | ||
<a href="#">Linkedin</a> | ||
<a href="#">Twitter</a> | ||
<a href="#">Instagram</a> | ||
</nav> | ||
</main> | ||
</body> | ||
</html> |