From 7dd991724947c7669c1c38d7f0313d320dcea0d9 Mon Sep 17 00:00:00 2001 From: Muhammad Afnan Mohd Sallehuddin Date: Fri, 15 Aug 2025 09:22:35 +0800 Subject: [PATCH 1/6] add contact use template, docs and fix ms translation --- .../docs/develop/(template)/contact-us.mdx | 472 +++++++++++++++--- .../docs/develop/(template)/contact-us.ms.mdx | 399 +++++++++++++++ .../develop/(template)/forgot-password.ms.mdx | 4 +- .../docs/develop/(template)/login.ms.mdx | 2 +- apps/docs/templates/contact-us.tsx | 146 ++++++ 5 files changed, 944 insertions(+), 79 deletions(-) create mode 100644 apps/docs/content/docs/develop/(template)/contact-us.ms.mdx create mode 100644 apps/docs/templates/contact-us.tsx diff --git a/apps/docs/content/docs/develop/(template)/contact-us.mdx b/apps/docs/content/docs/develop/(template)/contact-us.mdx index 0494f516..d8685b50 100644 --- a/apps/docs/content/docs/develop/(template)/contact-us.mdx +++ b/apps/docs/content/docs/develop/(template)/contact-us.mdx @@ -1,80 +1,400 @@ --- -title: Contact Us -description: Explore the integrated accessibility testing tools in our development environment that help identify and resolve accessibility issues during development. These tools work together to ensure our components meet WCAG standards and provide a better experience for all users. +title: Contact us +description: A responsive, accessible contact us screen template with MYDS components. --- -## Automated Testing Tools - -Automated accessibility testing tools help catch issues early in the development process. While they can't replace manual testing, they provide a first line of defense against common accessibility problems. - - -### ESLint Plugin: jsx-a11y -The jsx-a11y ESLint plugin provides static analysis for accessibility rules on JSX elements, catching issues before your code even runs. - -**Key Features** -- Static AST checking for accessibility rules -- Integrated into our ESLint configuration -- Enforces best practices at development time - -**Implementation** - -```jsx -// In your ESLint configuration -module.exports = { - extends: [ - // ... other extensions - 'plugin:jsx-a11y/recommended', // [!code highlight] - ], - plugins: [ - // ... other plugins - 'jsx-a11y', // [!code highlight] - ], - rules: { - // You can customize specific rules - 'jsx-a11y/aria-role': 'error', - 'jsx-a11y/img-redundant-alt': 'warn', - } -}; +import { Button } from "@/components/myds"; +import { Input } from "@/components/myds"; +import { + GlobeIcon, + GoogleIcon, + JataNegaraIcon, +} from "@govtechmy/myds-react/icon"; +import { Navbar, NavbarLogo } from "@/components/myds"; +import { + Select, + SelectTrigger, + SelectValue, + SelectContent, + SelectItem, +} from "@/components/myds"; +import { ThemeSwitch } from "@/components/myds"; +import { Link } from "@govtechmy/myds-react/link"; +import { clx } from "@govtechmy/myds-react/utils"; +import ContactUsTemplate from "@/templates/contact-us.tsx"; +import Preview from "@/components/preview"; +import { Tab, Tabs } from "fumadocs-ui/components/tabs"; + + + + +
+ +
+
+ + ```tsx +import { Button } from "@govtechmy/myds-react/button"; +import { + PhoneIcon, + EmailIcon, + FacebookIcon, + InstagramIcon, + PinIcon, + TwitterXIcon, + TiktokIcon, +} from "@govtechmy/myds-react/icon"; + +export default function ContactUsTemplate() { + return ( +
+
+

Contact Us

+
+ +
+
+

+ Office +

+

Ministry of Digital

+

+ Aras 13, 14 & 15, Blok Menara, Menara Usahawan +
+ No. 18, Persiaran Perdana, Presint 2 +
+ Pusat Pentadbiran Kerajaan Persekutuan +
+ 62000 Putrajaya, Malaysia +

+ + +
+
+