diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d41308eb..fb7bd345 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -108,3 +108,7 @@ PLEASE SUBMIT A PR, NO DIRECT COMMITS!!! > # _PLEASE SUBMIT A PR, NO DIRECT COMMITS_ ![image](https://user-images.githubusercontent.com/51555391/176925763-cdfd57ba-ae1e-4bf3-85e9-b3ebd30b1d59.png) + + +## Design Standards +All user interface contributions must adhere to clean design standards: strict 4px rhythm, quiet chrome, and verified copy. diff --git a/TRANSLATING.md b/TRANSLATING.md index 7968a6a0..b3983ae6 100644 --- a/TRANSLATING.md +++ b/TRANSLATING.md @@ -47,3 +47,7 @@ Yes, use whatever tool you want. You are still required to be fluent in the lang **Can I not use GitHub?** See above for ways to contact Froxcey, and he will help you. + + +## Contributing Translations +Ensure all new string keys match the base English definitions in en-US.yaml. diff --git a/src/components/FeaturesCard.tsx b/src/components/FeaturesCard.tsx index 7ed7e5bd..c5e3b014 100644 --- a/src/components/FeaturesCard.tsx +++ b/src/components/FeaturesCard.tsx @@ -1,6 +1,4 @@ -import dynamicWidth from '@/lib/dynamic-width'; -import { Text } from '@geist-ui/core'; -import { useState } from 'react'; +import { Text, useTheme } from '@geist-ui/core'; import { Chiislate } from './translation/Chiislate'; interface FeaturesCardProps { @@ -11,48 +9,61 @@ interface FeaturesCardProps { } const FeaturesCard = ({ cardVideo, cardTitle, cardDescription, isInverted }: FeaturesCardProps) => { - const [isSmallDevice, setIsSmallDevice] = useState(false); - dynamicWidth((width) => { - if (width < 768) { - setIsSmallDevice(true); - } - }); + const theme = useTheme(); + return ( -
-
-