Skip to content

Commit de27c3b

Browse files
home nav ui change (#397)
1 parent 1d6d8aa commit de27c3b

File tree

1 file changed

+88
-68
lines changed

1 file changed

+88
-68
lines changed

src/components/homepage/homeNavBoxes.module.css

+88-68
Original file line numberDiff line numberDiff line change
@@ -5,115 +5,135 @@
55
width: 100%;
66
}
77

8-
.featureSvg {
9-
height: 200px;
10-
width: 200px;
11-
}
12-
13-
14-
15-
16-
.grid3col{
8+
.grid3col {
179
display: grid;
18-
grid-template-columns: repeat(4,minmax(0,1fr));
19-
gap:56px;
10+
grid-template-columns: repeat(4, minmax(0, 1fr));
11+
gap: 56px;
2012
margin: 0 auto;
2113
padding: 0;
2214
}
15+
2316
@media screen and (max-width: 1680px) {
24-
.grid3col{
25-
display: grid;
26-
grid-template-columns: repeat(3,minmax(0,1fr));
27-
gap:56px;
28-
margin: 0 auto;
17+
.grid3col {
18+
grid-template-columns: repeat(3, minmax(0, 1fr));
2919
}
3020
}
21+
3122
@media screen and (max-width: 1180px) {
32-
.grid3col{
33-
display: grid;
34-
grid-template-columns: repeat(2,minmax(0,1fr));
35-
gap:56px;
36-
margin: 0 auto;
23+
.grid3col {
24+
grid-template-columns: repeat(2, minmax(0, 1fr));
3725
}
3826
}
27+
3928
@media screen and (max-width: 768px) {
40-
.grid3col{
41-
display: grid;
42-
grid-template-columns: repeat(1,minmax(0,1fr));
43-
gap:56px 0px;
44-
margin: 0 auto;
29+
.grid3col {
30+
grid-template-columns: 1fr;
31+
gap: 32px;
4532
}
4633
}
4734

48-
49-
.listContainer{
50-
min-height: 17rem;
35+
.listContainer {
36+
min-height: 20rem;
5137
}
38+
5239
@media screen and (max-width: 768px) {
53-
.listContainer{
54-
min-height: 3rem;
40+
.listContainer {
41+
min-height: 5rem;
5542
padding-bottom: 1rem;
5643
}
5744
}
58-
.listContainer li{
45+
46+
.listContainer li {
5947
list-style-type: none;
6048
position: relative;
49+
padding: 0.28rem 1rem;
50+
font-size: 1rem;
51+
color: #444;
52+
transition: color 0.2s;
6153
}
6254

55+
.listContainer li:hover {
56+
color: #007bff;
57+
}
6358

64-
65-
66-
67-
.listContainer li:before{
68-
--ifm-menu-link-sublist-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16px" height="16px" viewBox="0 0 24 24"><path fill="white" d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"></path></svg>');
59+
.listContainer li:before {
60+
--ifm-menu-link-sublist-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16px" height="16px" viewBox="0 0 24 24"><path fill="%2300bfff" d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"></path></svg>');
6961
background: var(--ifm-menu-link-sublist-icon) 50% / 1.25rem 1.25rem;
7062
transform: rotate(90deg);
71-
content: '';
72-
position: absolute;
73-
height: 1.25rem;
74-
width: 1.25rem;
75-
left: -1.5rem;
76-
top: 0.5rem;
77-
}
63+
content: '';
64+
position: absolute;
65+
height: 1.25rem;
66+
width: 1.25rem;
67+
left: -1.5rem;
68+
top: 0.5rem;
69+
}
7870

79-
.homecard{
71+
.homecard {
8072
background-color: #1c1f26;
81-
width: 320px;
82-
padding: 8px;
73+
width: 330px;
74+
height: 420px;
75+
padding: 20px;
8376
position: relative;
8477
display: block;
8578
border-radius: 16px;
86-
border: 1px solid #a8b3cf33;
79+
border: 1px solid rgba(255, 255, 255, 0.1);
80+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
81+
transition: transform 0.3s, box-shadow 0.3s;
82+
}
83+
84+
.homecard:hover {
85+
transform: translateY(-4px);
86+
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
87+
}
88+
89+
html[data-theme='light'] .homecard {
90+
background-color: #ffffff;
91+
border: 1px solid #e0e0e0;
92+
color: #333;
8793
}
8894

89-
html[data-theme='light'] .homecard{
90-
background-color: #fff;
91-
border: 1px solid #a8b3cf;
92-
color: #000;
95+
html[data-theme='dark'] .homecard {
96+
transition: transform 0.3s, box-shadow 0.3s;
9397
}
9498

99+
html[data-theme='dark'] .homecard:hover {
100+
box-shadow: 0 12px 30px rgba(255, 255, 255, 0.2);
101+
}
95102

96-
.homecard h2{
97-
margin: 8px 16px;
98-
min-height: 2.4rem;
99-
font-size: 1.25rem;
103+
.homecard h2 {
104+
margin: 0 0 1rem;
105+
font-size: 1.5rem;
100106
line-height: 1.4;
107+
font-weight: 700;
108+
color: #222;
101109
}
102110

103-
html[data-theme='light'] .homecard a{
104-
color: #000;
111+
html[data-theme='dark'] .homecard h2 {
112+
color: #e0e0e0;
105113
}
106-
.homecard a{
107-
color: white;
108-
text-decoration: underline;
109-
line-height: 2rem;;
114+
115+
.homecard a {
116+
color: #007bff;
117+
text-decoration: none;
118+
font-weight: 600;
110119
}
111-
html[data-theme='light'] .homeIcon{
112-
filter: brightness(0.5);
120+
121+
.homecard a:hover {
122+
text-decoration: underline;
113123
}
114-
.homeIcon{
115-
width: 28px;
116-
height: 28px;
117-
border-radius: 0!important;
124+
125+
.homeIcon {
126+
width: 32px;
127+
height: 32px;
128+
border-radius: 0 !important;
118129
margin: 12px 0 4px 16px;
130+
filter: brightness(0.9);
131+
}
132+
133+
html[data-theme='light'] .homeIcon {
134+
filter: brightness(0.3);
135+
}
136+
137+
html[data-theme='dark'] .homeIcon {
138+
filter: brightness(1.5);
119139
}

0 commit comments

Comments
 (0)