-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
125 lines (116 loc) · 4.22 KB
/
index.html
File metadata and controls
125 lines (116 loc) · 4.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Custom Layout with Fonts and Icons</title>
<!-- Link to Font Awesome for icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<!-- Link to Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Lobster&family=Pacifico&family=Caveat:wght@700&display=swap" rel="stylesheet">
<style>
/* General Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Define the Grid Container */
.grid-container {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr; /* Four equal columns */
grid-template-rows: 1fr 1fr 1fr; /* Three equal rows */
gap: 20px;
height: 100vh;
padding: 20px;
background-color: #000;
}
/* Define Each Box */
.box {
display: flex;
justify-content: center;
align-items: center;
font-size: 1.5em;
color: white;
padding: 20px;
border-radius: 10px;
border: 2px solid white;
position: relative; /* Allow positioning of inner elements */
text-align: center; /* Center text */
}
/* Box hover effect */
.box:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}
/* Specific Box Styles */
.box1 {
background-color: #f24d56;
grid-column: 1 / 3; /* Spans across first two columns */
grid-row: 1 / 3; /* Spans across first two rows */
height: 400px;
width: 300px;
}
.box2 {
background-color: #f5d3c1;
grid-column: 2 / 4; /* In the second column */
grid-row: 1 / 3; /* In the first row */
height: 150px;
width: 330px;
font-family: 'Lobster', cursive; /* Lobster font for Box 2 */
font-size: 2em; /* Increased font size */
}
.box3 {
background-color: #282828;
grid-column: 1 / 4; /* Spans columns 1 to 4 */
grid-row: 2 / 3; /* In the second row */
font-family: 'Pacifico', cursive; /* Pacifico font for Box 3 */
font-size: 2em;
width: 330px;
height: 230px; /* Increased height for Box 3 */
justify-self: center; /* Center horizontally */
align-self: center; /* Align slightly higher */
}
.box4 {
background-color: #b884f0;
grid-column: 3 / 5;
grid-row: 1 / 3;
height: 400px;
width: 300px;
}
.box5 {
background-color: #a3e5a8;
grid-column: 1 / 3; /* Spans columns 1 and 2 */
grid-row: 3 / 4; /* In the third row */
font-family: 'Lobster', cursive; /* Lobster font for Box 5 */
width: 500px;
height: 100px;
margin-left:25px;
}
.box6 {
background-color: #f5d3c1;
grid-column: 3 / 5; /* Spans columns 3 and 4 */
grid-row: 3 / 4; /* In the third row */
width: 450px;
height: 100px;
font-family: 'Caveat', cursive; /* Cursive font for Box 6 */
font-size: 1.5em; /* Default size */
margin-left:50px;
}
</style>
</head>
<body>
<div class="grid-container">
<div class="box box1">
<i class="fas fa-pencil-alt" style="font-size: 4em;"></i> <!-- Pencil Icon -->
</div>
<div class="box box2">12833</div>
<div class="box box3">Reyansh Sinha</div>
<div class="box box4">
<i class="fas fa-eye-slash" style="font-size: 4em;"></i> <!-- Privacy Icon -->
</div>
<div class="box box5">Works</div>
<div class="box box6">Fear & Failures</div>
</div>
</body>
</html>