Skip to content

Commit 65cee77

Browse files
committed
end pattern demo
1 parent b3f818b commit 65cee77

File tree

2 files changed

+72
-1
lines changed
  • packages

2 files changed

+72
-1
lines changed
Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,40 @@
1+
import { InoMeetupAccordion } from '@inovex.de/elements-react';
2+
13
export default function FaqSection() {
2-
return null;
4+
return (
5+
<div className="max-w-6xl p-6 bg-white ">
6+
<h3 className="text-3xl header-d3 mb-8 text-inovex-primary">FAQs</h3>
7+
8+
<InoMeetupAccordion accordionTitle="What are Web Components?">
9+
Web Components are a set of web platform APIs that allow you to create new custom, reusable, encapsulated HTML
10+
tags to use in web pages and web apps. They are based on existing web standards and work across modern browsers.
11+
</InoMeetupAccordion>
12+
13+
<InoMeetupAccordion accordionTitle="How can I use Web Components in my project?">
14+
You can use Web Components in any project by importing them into your HTML file or JavaScript framework. For
15+
example, with the inovex Elements library, you can install it using npm and then import the components you need
16+
in your React, Angular, or Vue.js project.
17+
</InoMeetupAccordion>
18+
19+
<InoMeetupAccordion accordionTitle="What are the main advantages of using Web Components?">
20+
The main advantages of Web Components include reusability across different frameworks, encapsulation of styles
21+
and functionality, and the ability to create custom elements that work seamlessly with existing HTML, CSS, and
22+
JavaScript.
23+
</InoMeetupAccordion>
24+
25+
<InoMeetupAccordion accordionTitle="How do I style Web Components?">
26+
With inovex Elements, you can use CSS variables like --ino-input-line-color to customize the appearance of
27+
components.
28+
</InoMeetupAccordion>
29+
30+
<InoMeetupAccordion accordionTitle="Can I use Web Components with React?">
31+
We provide a React wrapper, making it easy to use our web components in React projects with a familiar syntax.
32+
</InoMeetupAccordion>
33+
34+
<InoMeetupAccordion accordionTitle="What are slots in Web Components?">
35+
Slots are a feature of Web Components that allow you to define placeholders in your component that can be filled
36+
with custom content. This makes components more flexible and customizable.
37+
</InoMeetupAccordion>
38+
</div>
39+
);
340
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<div class="max-w-6xl p-6 bg-white">
2+
<h3 class="text-3xl header-d3 mb-8 text-inovex-primary">FAQs</h3>
3+
4+
<ino-meetup-accordion accordion-title="What are Web Components?">
5+
Web Components are a set of web platform APIs that allow you to create new custom, reusable, encapsulated HTML tags
6+
to use in web pages and web apps. They are based on existing web standards and work across modern browsers.
7+
</ino-meetup-accordion>
8+
9+
<ino-meetup-accordion accordion-title="How can I use Web Components in my project?">
10+
You can use Web Components in any project by importing them into your HTML file or JavaScript framework. For
11+
example, with the inovex Elements library, you can install it using npm and then import the components you need in
12+
your React, Angular, or Vue.js project.
13+
</ino-meetup-accordion>
14+
15+
<ino-meetup-accordion accordion-title="What are the main advantages of using Web Components?">
16+
The main advantages of Web Components include reusability across different frameworks, encapsulation of styles and
17+
functionality, and the ability to create custom elements that work seamlessly with existing HTML, CSS, and
18+
JavaScript.
19+
</ino-meetup-accordion>
20+
21+
<ino-meetup-accordion accordion-title="How do I style Web Components?">
22+
With inovex Elements, you can use CSS variables like --ino-input-line-color to customize the appearance of
23+
components.
24+
</ino-meetup-accordion>
25+
26+
<ino-meetup-accordion accordion-title="Can I use Web Components with React?">
27+
We provide a React wrapper, making it easy to use our web components in React projects with a familiar syntax.
28+
</ino-meetup-accordion>
29+
30+
<ino-meetup-accordion accordion-title="What are slots in Web Components?">
31+
Slots are a feature of Web Components that allow you to define placeholders in your component that can be filled
32+
with custom content. This makes components more flexible and customizable.
33+
</ino-meetup-accordion>
34+
</div>

0 commit comments

Comments
 (0)