-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
67 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Responsive Centered Website</title> | ||
<script src="https://cdn.tailwindcss.com"></script> | ||
</head> | ||
|
||
<body class="flex flex-col items-center h-screen"> | ||
<!-- Main Content (95% of Screen Height) --> | ||
<div class="w-4/5 sm:w-3/5 lg:w-2/5 px-6 py-8 rounded-lg flex flex-col h-[95vh] gap-4"> | ||
<!-- Top Black Section (30% of Main Content Height) --> | ||
<div class="h-[30%] rounded-md bg-black relative flex items-center justify-center"> | ||
<!-- Title in the Center --> | ||
<h1 class="text-white text-3xl">Centered Title</h1> | ||
|
||
<!-- Rectangle in the Top-Right Corner --> | ||
<div class="w-16 h-16 bg-gray-700 absolute top-0 right-0 m-4"></div> | ||
</div> | ||
|
||
<!-- Bottom Section with 2x2 Grid (70% of Main Content Height) --> | ||
<div class="grid grid-cols-2 gap-4 h-[70%]"> | ||
<!-- First Column --> | ||
<div class="bg-blue-500 rounded-md transform transition-transform hover:scale-105"></div> | ||
|
||
<!-- Green Section Divided into Two --> | ||
<div class="rounded-md flex flex-col gap-6"> | ||
<div class="h-[50%] bg-green-600 rounded-md transform transition-transform hover:scale-105"></div> | ||
<div class="h-[50%] bg-green-400 rounded-md transform transition-transform hover:scale-105"></div> | ||
</div> | ||
|
||
<!-- Second Column --> | ||
<div class="bg-red-500 rounded-md h-[60%] transform transition-transform hover:scale-105"></div> | ||
<div class="bg-yellow-500 rounded-md h-[60%] transform transition-transform hover:scale-105"></div> | ||
</div> | ||
</div> | ||
|
||
<!-- Footer (Fixed at 5% of Screen Height) --> | ||
<footer class="w-full h-[5vh] text-black flex items-center justify-center"> | ||
Footer Content | ||
</footer> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters