Skip to content

Commit

Permalink
Merge pull request #118 from 0nikhilkumar/dark-branch
Browse files Browse the repository at this point in the history
Add - adding dark-template #2
  • Loading branch information
MichaelBarney authored Oct 10, 2023
2 parents 041207f + 492c936 commit fbe5684
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Templates/darkTemplate/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 3001
}
25 changes: 25 additions & 0 deletions Templates/darkTemplate/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dark-Web</title>
<link rel="stylesheet" href="style.css">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css" rel="stylesheet">
</head>
<body>
<div class="container">
<header>
<div class="picture"></div>
<h1>Nikhil Kumar</h1>
</header>
<main>
<a class="link" href="https://linkedin.com/in/0nikhilkumar" target="_blank"><i class="ri-linkedin-fill"></i> Linkedln</a>
<a class="link" href="https://github.com/0nikhilkumar" target="_blank"><i class="ri-github-fill"></i> Github</a>
<a class="link" href="https://www.instagram.com/0nikhilkumar.ig/" target="_blank"><i class="ri-instagram-line"></i> Instagram</a>
<a class="link" href="https://twitter.com/0nikhilkumar_" target="_blank"><i class="ri-twitter-fill"></i> X (Twitter)</a>
</main>
</div>
</body>
</html>
Binary file added Templates/darkTemplate/photo.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
117 changes: 117 additions & 0 deletions Templates/darkTemplate/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
@import url("https://fonts.googleapis.com/css2?family=Mulish:wght@400;700&display=swap");

:root {
--shadow: 2px 2px 10px #a1974c, -2px -2px 10px #ffffff;
--inner-shadow: inset 2px 2px 10px #999999, inset -2px -2px 10px #ffffff;
}

* {
box-sizing: border-box;
}

body {
align-items: center;
background-color: #000000;
display: flex;
flex-direction: column;
font-family: "Mulish", sans-serif;
font-size: 112.5%;
font-weight: 400;
color: white;
margin: 0;
min-height: 100vh;
padding-block: clamp(2rem, 10vw, 4rem);
}

.container {
align-items: center;
border-radius: 10px;
box-shadow: var(--shadow);
display: flex;
flex-direction: column;
gap: 2em;
max-width: 672px;
padding: clamp(1em, 5vw, 2em);
width: 90%;
}

header {
align-items: center;
display: flex;
flex-direction: column;
gap: 1em;
}

h1 {
font-size: clamp(1.9em, 7vw, 4em);
font-weight: 700;
margin: 0;
text-align: center;
border: 1px solid white;
width: 30rem;
background-color: white;
color: black;
box-shadow: var(--shadow);
user-select: none;
}

h1:hover{
background-color: black;
color: white;
cursor: pointer;
}

a {
color: inherit;
text-decoration: none;
}

.picture {
border-radius: 50%;
height: 8em;
position: relative;
width: 8em;
box-shadow: var(--shadow);
}

.picture:hover, .picture:focus {
box-shadow: var(--hover-shadow);
outline: none;
transform: scale(1.02);
}

.picture::before {
content: "";
background: url("photo.jpeg");
background-size: cover;
background-position: center;
border-radius: 50%;
inset: 0;
position: absolute;
z-index: -1;
}

main {
align-items: center;
display: flex;
flex-direction: column;
gap: 1em;
vertical-align: middle;
}

.link {
border-radius: 5px;
box-shadow: var(--shadow);
min-width: 20ch;
padding: 0.5em 1em;
text-align: center;
}

.link:hover, .link:focus {
box-shadow: var(--inner-shadow);
outline: none;
}

.link i {
vertical-align: -13%;
}

0 comments on commit fbe5684

Please sign in to comment.