Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 91 additions & 11 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

body {
background-color: #1c2333; /* blue-black */
background-color: #121212; /* Darker background */
background-image: radial-gradient(circle at 1px 1px, rgba(138, 43, 226, 0.05) 1px, transparent 0);
background-size: 25px 25px;
color: #f0f0f0; /* light grey for text */
font-family: 'Poppins', sans-serif;
margin: 0;
Expand Down Expand Up @@ -47,14 +49,18 @@ main {
section {
margin-bottom: 3rem;
padding: 2rem;
border-radius: 8px;
background-color: #2a344a;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease;
border-radius: 15px; /* more rounded corners */
background-color: rgba(28, 35, 51, 0.6); /* Slightly more opaque */
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px); /* For Safari */
border: 1px solid rgba(138, 43, 226, 0.1); /* Even more subtle border */
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
transition: transform 0.4s ease, filter 0.4s ease;
}

section:hover {
section:hover:not(#games):not(#apps) {
transform: translateY(-5px);
filter: grayscale(100%);
}

h1, h2, h3 {
Expand Down Expand Up @@ -82,12 +88,9 @@ footer {

#hero {
text-align: center;
background: linear-gradient(rgba(28, 35, 51, 0.8), rgba(28, 35, 51, 0.8)), url('https://source.unsplash.com/random/1600x900/?abstract');
background-size: cover;
background-position: center;
background: linear-gradient(135deg, #1c2333 0%, #2a344a 100%);
padding: 4rem 2rem;
border: none;
box-shadow: none;
border-radius: 8px; /* Match other sections */
}

#hero:hover {
Expand Down Expand Up @@ -231,6 +234,9 @@ input[type="text"] {
.chess-square {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}

.chess-square.light {
Expand Down Expand Up @@ -302,10 +308,84 @@ input[type="text"] {
grid-column: span 2;
}

.profile-picture {
width: 150px;
height: 150px;
border-radius: 50%;
border: 5px solid #8a2be2; /* violet */
margin-bottom: 20px;
object-fit: cover;
box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

/* Search highlight styling */
mark {
background-color: #8a2be2;
color: white;
padding: 2px;
border-radius: 3px;
}

.chess-piece {
font-size: 36px; /* Adjust size as needed */
line-height: 1;
user-select: none; /* Prevent text selection */
-webkit-user-select: none;
cursor: grab;
text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.chess-square.selected {
background-color: #8a2be2 !important; /* A strong highlight */
box-shadow: inset 0 0 10px #00000080;
}

.valid-move {
position: relative;
}

.valid-move::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 30%;
height: 30%;
border-radius: 50%;
background-color: rgba(138, 43, 226, 0.5);
pointer-events: none; /* Allows clicking through the dot */
}

.chess-square.in-check {
background-color: #ff4d4d !important;
box-shadow: inset 0 0 10px #00000080;
}

/* Gallery Styling */
.gallery-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}

.gallery-item {
display: block;
background-color: #2a344a;
padding: 2rem;
border-radius: 10px;
text-decoration: none;
color: #f0f0f0;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.gallery-item h3 {
color: #8a2be2;
border-bottom: none;
margin-top: 0;
}
62 changes: 62 additions & 0 deletions games/calculator/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Calculator - Rendani Manugeni</title>
<link rel="stylesheet" href="../../css/style.css">
</head>
<body>
<header>
<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/projects/">Projects</a></li>
<li><a href="/games/">Games & Apps</a></li>
</ul>
</nav>
</header>

<main>
<section id="apps">
<h2>Calculator</h2>
<div class="app-container-full">
<div id="calculator" class="calculator">
<div id="calculator-display" class="calculator-display">0</div>
<div class="calculator-keys">
<button data-action="clear" class="key--operator">AC</button>
<button data-action="sign" class="key--operator">+/-</button>
<button data-action="percent" class="key--operator">%</button>
<button data-action="divide" class="key--operator">&divide;</button>

<button data-number="7">7</button>
<button data-number="8">8</button>
<button data-number="9">9</button>
<button data-action="multiply" class="key--operator">&times;</button>

<button data-number="4">4</button>
<button data-number="5">5</button>
<button data-number="6">6</button>
<button data-action="subtract" class="key--operator">-</button>

<button data-number="1">1</button>
<button data-number="2">2</button>
<button data-number="3">3</button>
<button data-action="add" class="key--operator">+</button>

<button data-number="0" class="key--zero">0</button>
<button data-action="decimal">.</button>
<button data-action="calculate" class="key--equal">=</button>
</div>
</div>
</div>
</section>
</main>

<footer>
<p>&copy; 2024 Rendani Manugeni. All rights reserved.</p>
</footer>

<script src="../../js/main.js"></script>
</body>
</html>
37 changes: 37 additions & 0 deletions games/chess/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chess - Rendani Manugeni</title>
<link rel="stylesheet" href="../../css/style.css">
</head>
<body>
<header>
<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/projects/">Projects</a></li>
<li><a href="/games/">Games & Apps</a></li>
</ul>
</nav>
</header>

<main>
<section id="games">
<h2>Chess</h2>
<div class="game-container-full">
<div id="chess-status" class="game-status">Turn: White</div>
<div id="chess-board" class="game-board"></div>
</div>
</section>
</main>

<footer>
<p>&copy; 2024 Rendani Manugeni. All rights reserved.</p>
</footer>

<script src="../../js/chess.js"></script>
<script src="../../js/main.js"></script>
</body>
</html>
46 changes: 46 additions & 0 deletions games/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Games & Apps - Rendani Manugeni</title>
<link rel="stylesheet" href="../css/style.css">
</head>
<body>
<header>
<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/projects/">Projects</a></li>
<li><a href="/games/">Games & Apps</a></li>
</ul>
</nav>
</header>

<main>
<section id="games-gallery">
<h2>Games & Apps</h2>
<div class="gallery-container">
<a href="/games/tictactoe/" class="gallery-item">
<h3>Tic-Tac-Toe</h3>
<p>A classic game of X's and O's.</p>
</a>
<a href="/games/chess/" class="gallery-item">
<h3>Chess</h3>
<p>A classic game of strategy.</p>
</a>
<a href="/games/calculator/" class="gallery-item">
<h3>Calculator</h3>
<p>A simple and stylish calculator app.</p>
</a>
</div>
</section>
</main>

<footer>
<p>&copy; 2024 Rendani Manugeni. All rights reserved.</p>
</footer>

<script src="../js/main.js"></script>
</body>
</html>
37 changes: 37 additions & 0 deletions games/tictactoe/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tic-Tac-Toe - Rendani Manugeni</title>
<link rel="stylesheet" href="../../css/style.css">
</head>
<body>
<header>
<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/projects/">Projects</a></li>
<li><a href="/games/">Games & Apps</a></li>
</ul>
</nav>
</header>

<main>
<section id="games">
<h2>Tic-Tac-Toe</h2>
<div class="game-container-full">
<div id="tic-tac-toe-status" class="game-status"></div>
<div id="tic-tac-toe-board" class="game-board"></div>
<button id="tic-tac-toe-restart" class="restart-btn">Restart Game</button>
</div>
</section>
</main>

<footer>
<p>&copy; 2024 Rendani Manugeni. All rights reserved.</p>
</footer>

<script src="../../js/main.js"></script>
</body>
</html>
Loading