-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.css
112 lines (97 loc) · 2.14 KB
/
test.css
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
/* Basic styling */
body {
font-family: 'Roboto', sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
.about-section {
text-align: center;
padding: 50px 20px;
}
.about-section h2 {
font-size: 3em;
margin-bottom: 40px;
color: #333;
text-transform: uppercase;
letter-spacing: 2px;
}
/* Grid container styling */
.grid-container {
display: grid;
grid-template-columns: repeat(6, 1fr);
grid-template-rows: repeat(3, 200px);
gap: 20px;
padding: 20px;
}
/* Box styling */
.box {
background: linear-gradient(135deg, #ffddd2, #ffc5b3);
color: #fff;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2em;
padding: 20px;
transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
cursor: pointer;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
position: relative;
overflow: hidden;
}
.box::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: rgba(255, 255, 255, 0.1);
transform: rotate(45deg);
transition: all 0.3s;
}
.box:hover::before {
top: -40%;
left: -40%;
}
.box:hover {
transform: scale(1.05);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
/* Asymmetric grid positions */
.box1 {
grid-column: 1 / 3;
grid-row: 1 / 2;
background: linear-gradient(135deg, #ffddd2, #ffc5b3);
}
.box2 {
grid-column: 3 / 5;
grid-row: 1 / 3;
background: linear-gradient(135deg, #d4e157, #c5e1a5);
}
.box3 {
grid-column: 5 / 7;
grid-row: 1 / 2;
background: linear-gradient(135deg, #b2ebf2, #b3e5fc);
}
.box4 {
grid-column: 1 / 4;
grid-row: 2 / 4;
background: linear-gradient(135deg, #d1c4e9, #b39ddb);
}
.box5 {
grid-column: 4 / 7;
grid-row: 3 / 4;
background: linear-gradient(135deg, #ffe0b2, #ffcc80);
}
.hidden-content {
display: none;
margin-top: 10px;
font-size: 0.9em;
color: #f0f0f0;
opacity: 0.8;
}
.box.show .hidden-content {
display: block;
}