diff --git a/gatsby-config.js b/gatsby-config.js index f3bdbfa14d939e17c03389c1cb3839a11a2f42a4..31e0640e59f7c2de47970ccbc86386a446f11c3b 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -2,7 +2,7 @@ module.exports = { siteMetadata: { title: `AF Enterprise Digital Transformation Services`, description: `C3I&N enables digital transformation across the U.S. Air Force. Explore our Networking, Compute & Store and DevSecOps services and more.`, - image: `/src/images/usaf-logo.png`, + image: `/src/images/share/ogimage-home.png`, }, plugins: [ `gatsby-plugin-react-helmet`, diff --git a/src/components/app/Nav.js b/src/components/app/Nav.js index 2a9f92f242c36b8e9599269b3773cd41000b0ac0..70bd397d8be98c8a0c9e1e65877f5ff73fdb74b0 100644 --- a/src/components/app/Nav.js +++ b/src/components/app/Nav.js @@ -1,5 +1,13 @@ import React, { useState, useContext } from 'react'; -import { Box, Button, Text, Keyboard, Layer, ResponsiveContext } from 'grommet'; +import { + Box, + Button, + Text, + Keyboard, + Layer, + ResponsiveContext, + ThemeContext, +} from 'grommet'; import { Menu, FormUp, FormDown } from 'grommet-icons'; import { Link } from '../core'; import { MegaMenu, MegaMobileMenu } from '../mega-menu'; @@ -120,9 +128,23 @@ const Nav = ({ sticky }) => { )} {menuOpen && isMobile && ( - - - + ({ + zIndex: '50', + }), + }, + }} + > + + + + )} ); diff --git a/src/components/mega-menu/MegaMobileMenu.js b/src/components/mega-menu/MegaMobileMenu.js index ac00b767af14ae4ddbcae022c030310867ca9689..eefd77d5c539d5dd82139000f00f1efcda9da982 100644 --- a/src/components/mega-menu/MegaMobileMenu.js +++ b/src/components/mega-menu/MegaMobileMenu.js @@ -1,78 +1,162 @@ -import React, { useState } from 'react'; -import { Box, Button } from 'grommet'; -import { Close } from 'grommet-icons'; +import React, { useState, useContext } from 'react'; +import { Box, Button, Heading, Text, ThemeContext } from 'grommet'; +import { Close, FormPrevious, FormNext } from 'grommet-icons'; +import { Link } from '../core'; +import MenuGroup from './MenuGroup'; -const MenuItem = ({ label, onClick }) => ( - - + )} + + ); +}; const MenuHome = ({ onNavigate }) => ( - - {[ - 'Available Services', - 'Solutions', - 'About Us', - 'Our Other Programs', - '1', - '2', - '3', - '4', - '5', - '6', - '10', - '20', - '30', - '40', - '50', - '60', - ].map((item) => ( - onNavigate(item)} /> + + {mainLinks.map((item) => ( + ))} ); -const MenuCategory = ({ onNavigate }) => ( +const MenuServices = ({ onNavigate }) => ( + + + Available Services + + + The following services are available to your organization through C3I&N + + {[ - 'Networking & Connectivity', - 'Compute & Store', - 'Software Development & DevSecOps', - 'Communications', - 'Data Analysis', + { name: 'Networking & Connectivity', to: '#categories' }, + { name: 'Compute & Store', to: '#categories' }, + { name: 'Software Development & DevSecOps', to: '#categories' }, + { name: 'Digital Engineering', to: '#categories' }, + { name: 'Communications', to: '#categories' }, + { name: 'Data Analysis', to: '#categories' }, ].map((item) => ( - onNavigate(item)} /> + ))} ); +const MenuCategory = ({ category, onNavigate }) => ( + + + + {category} + + + + + + +); + const MegaMobileMenu = ({ onClose }) => { const [depth, setDepth] = useState(0); + const [category, setCategory] = useState(); + const theme = useContext(ThemeContext); const handleNavigate = (name) => { - console.log('handle nav', name); setDepth(depth + 1); }; + const handleBack = () => { + setDepth(depth - 1); + }; + + const handleToCategory = (name) => { + setDepth(depth + 1); + setCategory(name); + }; + return ( - - - + )} + +