Skip to content

Commit

Permalink
done project
Browse files Browse the repository at this point in the history
  • Loading branch information
maahbatistaa committed Oct 14, 2024
1 parent 7fa64d5 commit 9647692
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 0 deletions.
Empty file added social-links/README.md
Empty file.
Binary file added social-links/assets/avatar-jessica.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
89 changes: 89 additions & 0 deletions social-links/css/styles.css
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);
}
}
}
}
37 changes: 37 additions & 0 deletions social-links/index.html
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>

0 comments on commit 9647692

Please sign in to comment.