Skip to content

Commit ce93f57

Browse files
committed
added more sections to the docs
1 parent feb4053 commit ce93f57

File tree

2 files changed

+101
-0
lines changed

2 files changed

+101
-0
lines changed

docs/.vitepress/theme/custom.css

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,80 @@
9898
color: var(--vp-c-text-2);
9999
}
100100

101+
.used-by {
102+
background: var(--vp-c-bg-soft);
103+
border: 1px solid var(--vp-c-border);
104+
border-radius: 12px;
105+
padding: 3rem 2rem;
106+
margin: 6rem 0;
107+
text-align: center;
108+
}
109+
110+
.used-by-title {
111+
font-size: 1.6rem;
112+
font-weight: 600;
113+
margin-bottom: 2.5rem;
114+
color: var(--vp-c-text-1);
115+
}
116+
117+
.used-by-logos {
118+
display: flex;
119+
flex-wrap: wrap;
120+
justify-content: center;
121+
gap: 3rem;
122+
}
123+
124+
.used-by-item {
125+
display: flex;
126+
flex-direction: column;
127+
align-items: center;
128+
text-decoration: none !important;
129+
transition: transform 0.2s ease;
130+
color: var(--vp-c-yellow-1);
131+
}
132+
133+
.used-by-item img {
134+
height: 120px; /* Increased size */
135+
max-width: 120px;
136+
object-fit: contain;
137+
margin-bottom: 0.5rem;
138+
opacity: 0.85;
139+
transition: all 0.2s ease;
140+
}
141+
142+
.used-by-item:hover img {
143+
opacity: 1;
144+
transform: scale(1.1);
145+
}
146+
147+
.used-by-name {
148+
font-size: 1.2rem;
149+
font-weight: 500;
150+
color: var(--vp-c-yellow-1);
151+
text-align: center;
152+
}
153+
154+
.used-by-add .add-logo {
155+
height: 120px;
156+
width: 120px;
157+
border-radius: 8px;
158+
background: rgba(255, 255, 255, 0.05);
159+
color: var(--vp-c-text-3);
160+
display: flex;
161+
align-items: center;
162+
justify-content: center;
163+
font-size: 2rem;
164+
font-weight: 600;
165+
border: 2px dashed var(--vp-c-text-3);
166+
margin-bottom: 0.5rem;
167+
transition: all 0.2s ease;
168+
}
169+
170+
.used-by-add:hover .add-logo {
171+
background: rgba(255, 255, 255, 0.1);
172+
transform: scale(1.05);
173+
}
174+
101175
.demo-section {
102176
display: flex;
103177
flex-direction: column;

docs/index.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,33 @@ features:
2424
details: Full multi-language support built-in. No need for extra setup.
2525
---
2626

27+
<section class="used-by">
28+
<div class="used-by-title">Projects using Robust Validator</div>
29+
30+
<div class="used-by-logos">
31+
<a
32+
href="https://axe-api.com"
33+
target="_blank"
34+
rel="noopener"
35+
class="used-by-item"
36+
title="Axe API"
37+
>
38+
<img src="https://axe-api.com/viking.png" alt="Axe API" />
39+
<div class="used-by-name">Axe API</div>
40+
</a>
41+
<a
42+
href="https://github.com/axe-api/validator/edit/main/docs/index.md"
43+
target="_blank"
44+
rel="noopener"
45+
class="used-by-item used-by-add"
46+
title="Add your project"
47+
>
48+
<div class="add-logo">+</div>
49+
<div class="used-by-name">Add your project</div>
50+
</a>
51+
</div>
52+
</section>
53+
2754
<div class="demo-section">
2855

2956
<div class="demo-text">

0 commit comments

Comments
 (0)