Skip to content

Commit

Permalink
added dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
AliSananS committed Mar 19, 2024
1 parent d243fa4 commit c3ad703
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 29 deletions.
29 changes: 29 additions & 0 deletions boxshadow.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
.box-with-gradient-shadow {
position: relative;
/* width: 200px; */
/* height: 200px; */
}

.box-with-gradient-shadow::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
filter: blur(10px);
border: 1px transparent;
border-radius: 0px;
/* standard box shadow */
background: linear-gradient(to bottom right, blue, red);
/* linear gradient */
z-index: -1;
/* ensure the pseudo-element is behind the content */
}

/* Additional styling for content */
.box-with-gradient-shadow>* {
position: relative;
z-index: 1;
/* ensure content is above pseudo-element */
}
49 changes: 20 additions & 29 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,35 +1,26 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ali - Full Stack Localhost Developer</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}

.content {
text-align: center;
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body>
<div class="content">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Ali - Full Stack Localhost Developer</title>
<link rel="stylesheet" href="./style.css" />
<link rel="stylesheet" href="./boxshadow.css" />
</head>
<body>
<div class="box-with-gradient-shadow">
<div class="content">
<h1>Hi, I'm Ali!</h1>
<p>Full Stack Localhost Developer</p>
<<<<<<< HEAD
<a href="/blogs/blog1">blog1</a>
=======
<a href="/blogs">👉 My Expensive Articles</a>
</div>
>>>>>>> 5593415 (added dark theme)
</div>
</body>
<footer>
<p>This page is just for testing purpose 😁</p>
</footer>
</body>
</html>
28 changes: 28 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
body {
font-family: Arial, sans-serif;
background-color: #000;
margin: 0;
padding: 0;
display: flex;
justify-content: space-around;
align-items: center;
height: 100vh;
flex-direction: column;
}

.content {
text-align: center;
background-color: #020202;
color: white;
padding: 20px;
border-radius: 10px;
}

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

footer p {
color: gray;
}

0 comments on commit c3ad703

Please sign in to comment.