@codecademy/gamut

72.3.072.3.1-alpha.44ae7c.0
HeroContainer.tsx
+HeroContainer.tsxNew file
+17
Index: HeroContainer.tsx
===================================================================
--- HeroContainer.tsx
+++ HeroContainer.tsx
@@ -0,0 +1,17 @@
+import { FlexBox, FlexBoxProps } from '@codecademy/gamut';
+import React from 'react';
+
+export type HeroContainerProps = FlexBoxProps;
+
+// Teams landing page hero wrapper: flex column, 16px padding on all sides,
+// 24px margin-top, and white text color — all expressed as system props
+// directly on FlexBox rather than a styled() wrapper (Box already exposes
+// these as props, so there's nothing left to hand-write in CSS).
+export const HeroContainer: React.FC<HeroContainerProps> = ({
+  children,
+  ...props
+}) => (
+  <FlexBox flexDirection="column" p={16} mt={24} color="white" {...props}>
+    {children}
+  </FlexBox>
+);