Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
},
"browserslist": "defaults, not ie <= 11",
"dependencies": {
"@headlessui/react": "^1.7.13",
"@iconify/react": "^4.1.0",
"@react-hook/intersection-observer": "^3.1.1",
"@tailwindcss/forms": "^0.5.3",
Expand Down
170 changes: 170 additions & 0 deletions src/components/FAQSection/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
//imports
import Image from 'next/image'
import { Container } from '@/components/Container'
import backgroundImage from '@/images/background-faqs.jpg'
import Link from 'next/link';
import { useState } from 'react';

// faqs
const faqs = [
{
question: 'Does Responsively App render the page with the same engine as the browser?',
answer: 'No, Responsively App is built on top of Electron and uses Chromium as its rendering engine.',
},
{
question: 'Does Responsively App accurately render as real devices?',
answer:
'Responsively App tries to render pages as close as possible to real devices but it may not be 100% accurate.',
},
{
question: 'Is Responsively App a good replacement for real devices?',
answer:
'No, Responsively App is not a replacement for real devices. It is a tool that renders pages in viewport sizes of various devices, but it does not emulate their behavior.',
},
{
question: 'Is Responsively App free?',
answer:
'Yes, Responsively App is free to use and open source. You can find the source code on GitHub.',
},
{
question: 'How do I report a bug?',
answer: (
<>
Please open an issue on our{' '}
<a
href="https://github.com/responsively-org/responsively-app/issues"
className="underline"
>
GitHub repo
</a>{' '}
and we'll look into it.
</>
),
},
{
question: 'How do I request a feature?',
answer: (
<>
Please open an issue on our{' '}
<a
href="https://github.com/responsively-org/responsively-app/issues"
className="underline"
>
GitHub repo
</a>{' '}
explainng your need and we'll look into it.
</>
),
},
{
question: 'How can I support Responsively App?',
answer: (
<>
You can support in a lot of ways and we have details of in our{' '}
<Link href="/sponsor" className="underline">
Sponsorship
</Link>{' '}
page.
</>
),
},
{
question: 'How can I contribute to Responsively App?',
answer: (
<>
Please checkout our{' '}
<a
href="https://github.com/responsively-org/responsively-app/issues"
className="underline"
>
GitHub repo
</a>{' '}
for issues that needs help and give them a try.
</>
),
},
];

export default function FAQSection() {
const [openIndex, setOpenIndex] = useState(null)

const toggleQuestion = (index) => {
setOpenIndex(openIndex === index ? null : index)
}
return (
<>
<section
id='faq'
aria-labelledby='faq-title'
className='relative overflow-hidden flex flex-col items-center justify-center bg-slate-50 py-20 sm:py-32'
>
<Image
className="absolute left-1/2 top-0 max-w-none -translate-y-1/4 translate-x-[-30%]"
src={backgroundImage}
alt=""
width={1558}
height={946}
unoptimized
/>
<Container className='relative'>
<div
id='faq-title'
className='flex flex-col'
>
{/* small screen */}
<div className='text-3xl font-display sm:hidden text-center'>
FAQ
</div>
{/* Large screen */}
<div className='hidden sm:block font-display text-3xl sm:text-4xl text-center'>
Frequently Asked Questions
</div>
<div
className='mt-1 sm:mt-4 text-md sm:text-lg tracking-tight text-slate-700 text-center'
>
If you can't find what you're looking for, please open an issue on our{' '}
<a
href="https://github.com/responsively-org/responsively-app"
target="_blank"
className="underline"
>
GitHub
</a>
.
</div>
</div>
<div className='mx-auto mt-16 grid max-w-xl divide-y divide-gray-300'>
{faqs.map((question, index) => {
return (
<div key={index} className='py-5'>
<div className='group'>
<div
className={`flex items-center justify-between cursor-pointer list-none
${openIndex === index ? `font-display` : ''} hover:font-diplay`}
//Toggle on click
onClick={() => toggleQuestion(index)}
>
<span className='text-md hover:font-display '>{question.question}</span>
<span className={`transition ${openIndex === index ? 'rotate-180' : ''}`}>
<svg fill="none" height="16" shape-rendering="geometricPrecision"
stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
stroke-width="2" viewBox="0 0 24 24" width="24">
<path d="M6 9l6 6 6-6"></path>
</svg>
</span>
</div>
{openIndex === index && (
<p className='animate-fadeIn mt-3 text-neutral-600'>
{question.answer}
</p>
)}
</div>
</div>
)
})}
</div>
</Container>
</section>
</>
)
}
151 changes: 0 additions & 151 deletions src/components/Faqs.jsx

This file was deleted.

4 changes: 2 additions & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import Image from 'next/image';
import backgroundSVG from '@/images/background-hero.svg';

import { CallToAction } from '@/components/CallToAction';
import { Faqs } from '@/components/Faqs';
import { Footer } from '@/components/Footer';
import { Header } from '@/components/Header';
import { Hero } from '@/components/Hero';
import { PrimaryFeatures } from '@/components/PrimaryFeatures';
import { SecondaryFeatures } from '@/components/SecondaryFeatures';
import { Testimonials } from '@/components/Testimonials';
import FAQSection from '@/components/FAQSection';

export default function Home() {
return (
Expand Down Expand Up @@ -44,7 +44,7 @@ export default function Home() {
<SecondaryFeatures />
<CallToAction />
<Testimonials />
<Faqs />
<FAQSection />
</main>
<Footer />
</div>
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"**/*.ts",
"**/*.tsx",
"src/components/NavLink.jsx"
],
, "src/components/FAQSection/index.jsx" ],
"exclude": ["node_modules"]
}
Loading