Skip to content

Commit 166185f

Browse files
committed
Use fontawesome for feature card icons as well
1 parent 3dca2e2 commit 166185f

File tree

2 files changed

+8
-23
lines changed

2 files changed

+8
-23
lines changed

spock-website/index.html

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -87,58 +87,43 @@ <h2 class="text-3xl md:text-4xl font-bold text-center mb-16 text-gray-100" data-
8787
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
8888
<div data-aos="fade-up" data-aos-delay="100">
8989
<div class="feature-card h-full">
90-
<svg viewBox="0 0 24 24">
91-
<rect x="4" y="4" width="16" height="16" rx="2"/>
92-
</svg>
90+
<div><i class="fas fa-receipt spock-blue-text"></i></div>
9391
<h3 class="text-xl font-semibold text-gray-100 mb-2">Expressive Specifications</h3>
9492
<p class="text-gray-300">Write tests that are easy to read and understand, even for
9593
non-programmers.</p>
9694
</div>
9795
</div>
9896
<div data-aos="fade-up" data-aos-delay="200">
9997
<div class="feature-card h-full">
100-
<svg viewBox="0 0 24 24">
101-
<path d="M3 17l6-6 4 4 8-8"/>
102-
</svg>
98+
<div><i class="fas fa-masks-theater spock-blue-text"></i></div>
10399
<h3 class="text-xl font-semibold text-gray-100 mb-2">Powerful Mocking</h3>
104100
<p class="text-gray-300">Create flexible and powerful mocks and stubs with built-in support.</p>
105101
</div>
106102
</div>
107103
<div data-aos="fade-up" data-aos-delay="300">
108104
<div class="feature-card h-full">
109-
<svg viewBox="0 0 24 24">
110-
<circle cx="12" cy="12" r="10"/>
111-
<path d="M12 6v6l4 2"/>
112-
</svg>
105+
<div><i class="fas fa-vial-circle-check spock-blue-text"></i></div>
113106
<h3 class="text-xl font-semibold text-gray-100 mb-2">JUnit Platform</h3>
114107
<p class="text-gray-300">Seamless integration with JUnit 5+ and build tools.</p>
115108
</div>
116109
</div>
117110
<div data-aos="fade-up" data-aos-delay="400">
118111
<div class="feature-card h-full">
119-
<svg viewBox="0 0 24 24">
120-
<path d="M3 3h18v6H3zM3 15h18v6H3z"/>
121-
<path d="M9 9v6"/>
122-
</svg>
112+
<div><i class="fas fa-table-cells spock-blue-text"></i></div>
123113
<h3 class="text-xl font-semibold text-gray-100 mb-2">Data-Driven Testing</h3>
124114
<p class="text-gray-300">Easily run the same test with different sets of data.</p>
125115
</div>
126116
</div>
127117
<div data-aos="fade-up" data-aos-delay="500">
128118
<div class="feature-card h-full">
129-
<svg viewBox="0 0 24 24">
130-
<polygon points="12 2 15 8 22 9 17 14 18 21 12 18 6 21 7 14 2 9 9 8 12 2"/>
131-
</svg>
119+
<div><i class="fas fa-star spock-blue-text"></i></div>
132120
<h3 class="text-xl font-semibold text-gray-100 mb-2">Groovy DSL</h3>
133121
<p class="text-gray-300">Leverage the power and flexibility of the Groovy language.</p>
134122
</div>
135123
</div>
136124
<div data-aos="fade-up" data-aos-delay="600">
137125
<div class="feature-card h-full">
138-
<svg viewBox="0 0 24 24">
139-
<rect x="3" y="3" width="18" height="18" rx="2"/>
140-
<path d="M9 12l2 2 4-4"/>
141-
</svg>
126+
<div><i class="fas fa-circle-check spock-blue-text"></i></div>
142127
<h3 class="text-xl font-semibold text-gray-100 mb-2">Built-in Matchers</h3>
143128
<p class="text-gray-300">Use a rich set of matchers to verify expectations with clarity.</p>
144129
</div>

spock-website/src/icons.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { library, dom } from '@fortawesome/fontawesome-svg-core';
2-
import { faBook, faCode, faLaptopCode, faComments, faCommentDots} from '@fortawesome/free-solid-svg-icons';
2+
import { faBook, faCode, faLaptopCode, faComments, faCommentDots, faReceipt, faMasksTheater, faVialCircleCheck, faTableCells, faStar, faCircleCheck} from '@fortawesome/free-solid-svg-icons';
33
import { faGithub, faStackOverflow, faJava, faXTwitter, faMastodon, faBluesky } from '@fortawesome/free-brands-svg-icons';
44

55
// Add icons to the library
6-
library.add(faGithub, faStackOverflow, faJava, faXTwitter, faMastodon, faBluesky, faBook, faCode, faLaptopCode, faComments, faCommentDots);
6+
library.add(faGithub, faStackOverflow, faJava, faXTwitter, faMastodon, faBluesky, faBook, faCode, faLaptopCode, faComments, faCommentDots, faReceipt, faMasksTheater, faVialCircleCheck, faTableCells, faStar, faCircleCheck);
77

88
// Watch for <i> tags and replace with SVG
99
dom.watch();

0 commit comments

Comments
 (0)