Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravgorane authored Feb 28, 2024
1 parent cf43d1a commit 0d5f2b9
Show file tree
Hide file tree
Showing 4 changed files with 181 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions Social_links_profile/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css" />
<link rel="icon" type="image/png" sizes="32x32" href="./assets/images/favicon-32x32.png">

<title>Frontend Mentor | Social links profile</title>
</head>

<body>

<main>

<div class="profile">

<div class="profile-header">

<div class="profile-img">
<img src="./assets/images/avatar-jessica.jpeg" alt="Jessica's Avatar">
</div>

<div class="profile-title">
<h1>Jessica Randall</h1>
<h2>London, United Kingdom</h2>
</div>

<p>"Front-end developer and avid reader."</p>
</div>

<ul class="social-media">
<li><a href="#">GitHub</a></li>
<li><a href="#">Frontend Mentor</a></li>
<li><a href="#">LinkedIn</a></li>
<li><a href="#">Twitter</a></li>
<li><a href="#">Instagram</a></li>
</ul>

</div>

</main>

<footer>
<div class="attribution">
<p>Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor.</a> Coded by <a href="https://github.com/gauravgorane">Gaurav Gorane.</a></p>
</div>
</footer>

</body>

</html>
128 changes: 128 additions & 0 deletions Social_links_profile/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
@import url('https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap');

:root
{
--White: hsl(0, 0%, 100%);
--Grey: hsl(0, 0%, 20%);
--Dark_Grey: hsl(0, 0%, 12%);
--Off_Black: hsl(0, 0%, 8%);
--Green: hsl(75, 94%, 57%);
--fw-normal: 400;
--fw-semi-bold: 600;
--fw-bold: 700;
}

*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html{
font-size: 62.5%;
}

body{
font-family: "Inter", sans-serif;
font-size: 1.4rem;
font-weight: var(--fw-normal);
background-color: var(--Off_Black);
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: var(--White);
}

ul{
list-style: none;
}

a{
display: block;
text-decoration: none;
}

.profile{
background-color: var(--Dark_Grey);
max-width: 32rem;
padding: 1.8rem;
margin: 3rem 1rem;
border-radius: 0.8rem;
text-align: center;
}

.profile-header{
width: 100%;
}

.profile .profile-img{
width: 9rem;
margin: 0 auto;
}

.profile .profile-img img{
display: inherit;
max-width: 100%;
border-radius: 50%;
}

.profile .profile-title{
margin-top: 3rem;
}

.profile .profile-title h1{
font-size: 2.3rem;
font-weight: var(--fw-bold);
}

.profile .profile-title h2{
color: var(--Green);
font-size: 1.4rem;
margin: 1rem 0 3rem;
}

.profile .profile-header p{
margin: 0 1.2rem;
}

.profile .social-media{
display: flex;
flex-direction: column;
align-items: center;
margin-top: 1rem;
}

.profile .social-media li{
width: 100%;
}

.profile .social-media li a{
background-color: var(--Grey);
color: var(--White);
padding: 1.6rem 0;
border-radius: 1rem;
margin-top: 1.5rem;
font-weight: var(--fw-semi-bold);
transition: all 0.3sec ease-in-out;
}

.profile .social-media li a:hover{
background-color: var(--Green);
color: var(--Off_Black);
}

.attribution p{
display: flex;
flex-direction: row;
gap: 0.2rem;
font-size: 11px;
text-align: center;
}

.attribution a {
color: hsl(228, 45%, 44%);
}

0 comments on commit 0d5f2b9

Please sign in to comment.