Skip to content

Commit

Permalink
Edit css
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian0701 committed Feb 20, 2023
1 parent e8f2588 commit 1ece947
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/components/faq/faqItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ import { useState } from "react";
import { useTranslation } from "next-i18next";
import myStyles from "@/styles/faq.module.css";

function FAQItems(props: { question: string; answer: string }) {
function FAQItems(props: {
question: string;
answer: string;
//faqStyle: string;
}) {
const { t } = useTranslation("common");

const [showAns, setShowAns] = useState(false);
Expand Down
16 changes: 15 additions & 1 deletion src/pages/faq.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { useState } from "react";
import { useTranslation } from "next-i18next";
import { serverSideTranslations } from "next-i18next/serverSideTranslations";
import myStyles from "@/styles/faq.module.css";
Expand All @@ -7,9 +8,22 @@ import { getFaqData } from "contents";
function FAQPage() {
const { t } = useTranslation("common");

//const [showAnsIndex, setShowAnsIndex] = useState(null);
//const clickHandler = () => setShowAnsIndex();

//const faqBlockStyles = showAns ? myStyles.faq_showAns : myStyles.faq_hideAns;
//const answerTextStyles = showAns ? myStyles.showAnswer : myStyles.hideAnswer;

const faqData = getFaqData();
const faqList = faqData.map((v) => {
return <FAQItems key={v.id} question={v.question} answer={v.answer} />;
return (
<FAQItems
key={v.id}
question={v.question}
answer={v.answer}
//faqStyle={answerTextStyles}
/>
);
});

return (
Expand Down
2 changes: 1 addition & 1 deletion src/styles/technology.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}

.tech_main_container h1 {
font: normal normal medium 36px/58px Noto Sans TC;
font: normal normal 36px/58px Noto Sans TC;
color: #3a3b4d;
}

Expand Down

0 comments on commit 1ece947

Please sign in to comment.