Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ignite
GitHub Repository: ignite/cli
Path: blob/main/docs/src/pages/index.module.css
1007 views
1
.hero {
2
text-align: center;
3
padding: 1.75rem 1.5rem; /* Matches --ifm-spacing-horizontal: theme(spacing.7) */
4
background-color: var(--ifm-background-color);
5
border-bottom: 1px solid var(--ifm-blockquote-border-color);
6
}
7
8
.heroTitle {
9
font-size: 2.5rem; /* Matches h1 sizing */
10
font-weight: 700;
11
line-height: 2.5rem;
12
letter-spacing: -0.025em; /* Approximates tracking-tight */
13
margin-bottom: 1rem;
14
color: var(--ifm-font-color-base);
15
}
16
17
.heroSubtitle {
18
font-size: 1.125rem;
19
color: #666; /* Approximates gray.600 */
20
max-width: 600px;
21
margin: 0 auto;
22
line-height: 1.75rem; /* Matches relaxed line height */
23
}
24
25
.main {
26
padding: 1.75rem 1.5rem;
27
max-width: 90rem;
28
margin: 0 auto;
29
}
30
31
.cardsContainer {
32
display: grid;
33
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
34
gap: 1.5rem;
35
max-width: 1200px;
36
margin: 0 auto;
37
}
38
39
.card {
40
padding: 1.5rem;
41
border: 1px solid var(--ifm-blockquote-border-color);
42
border-radius: 0.5rem;
43
background-color: #f7f7f7; /* Matches --docsearch-searchbox-background as a card bg */
44
transition: all 0.2s ease-in-out;
45
}
46
47
.card:hover {
48
box-shadow: 0px 0px 80px rgba(0, 0, 0, 0.07);
49
transform: translateY(-2px);
50
}
51
52
.card h2 {
53
margin-top: 0;
54
font-size: 1.25rem; /* Matches h3 sizing */
55
font-weight: 600;
56
line-height: 1.75rem;
57
letter-spacing: -0.025em;
58
color: var(--ifm-font-color-base);
59
}
60
61
.card p {
62
color: #666;
63
font-size: 1rem;
64
line-height: 1.75rem;
65
margin-bottom: 1rem;
66
}
67
68
.cardLink {
69
display: inline-block;
70
font-size: 1rem;
71
font-weight: 500;
72
color: var(--ifm-color-primary);
73
text-decoration: underline;
74
text-underline-offset: 2px;
75
transition: all 0.2s ease-in-out;
76
}
77
78
.cardLink:hover {
79
color: #3d39fc;
80
text-decoration-color: #3d39fc;
81
}
82
83
/* Dark mode adjustments */
84
html[data-theme="dark"] .hero {
85
background-color: var(--ifm-background-color);
86
}
87
88
html[data-theme="dark"] .card {
89
background-color: #1a1a1a; /* Matches dark theme --ifm-background-color */
90
}
91
92
html[data-theme="dark"] .card p {
93
color: #b3b3b3; /* Approximates mutedLight */
94
}
95
96
html[data-theme="dark"] .cardLink {
97
color: var(--ifm-color-primary);
98
}
99
100
html[data-theme="dark"] .cardLink:hover {
101
color: #3d39fc;
102
text-decoration-color: #3d39fc;
103
}
104
105
/* Responsive adjustments */
106
@media (max-width: 996px) {
107
.cardsContainer {
108
grid-template-columns: 1fr;
109
}
110
111
.hero {
112
padding: 1.5rem 1rem;
113
}
114
115
.main {
116
padding: 1.5rem 1rem;
117
}
118
}
119
120
@media (min-width: 997px) {
121
.hero {
122
padding-top: 3.5rem;
123
padding-bottom: 3.5rem;
124
}
125
}
126
127