diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..6f2d406 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,16 @@ +name: Build and Deploy +on: + push: + branches: + - main + +permissions: + contents: write +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: enriikke/gatsby-gh-pages-action@v2 + with: + deploy-branch: gh-pages diff --git a/plugins/gatsby-source-monday/gatsby-node.js b/plugins/gatsby-source-monday/gatsby-node.js index 61fdfcb..c0639fe 100644 --- a/plugins/gatsby-source-monday/gatsby-node.js +++ b/plugins/gatsby-source-monday/gatsby-node.js @@ -11,7 +11,7 @@ exports.sourceNodes = async (gatsbyApi, pluginOptions) => { const timer = reporter.activityTimer(`source Monday.com boards`) function createBoardNode(data) { - // console.log(JSON.stringify(data, null, 2)) + actions.createNode({ ...data, parent: null, diff --git a/src/components/carousel.js b/src/components/carousel.js index d171c3d..61c6345 100644 --- a/src/components/carousel.js +++ b/src/components/carousel.js @@ -30,7 +30,7 @@ export const Carousel = ({students}) => { > { students.map((student) => ( - + )) @@ -58,7 +58,7 @@ export const MobileCarousel = ({students}) => { > { students.map((student) => ( - + )) diff --git a/src/components/cta-button.js b/src/components/cta-button.js index 5c5492b..9c32d37 100644 --- a/src/components/cta-button.js +++ b/src/components/cta-button.js @@ -9,7 +9,7 @@ import NavigateNextIcon from '@mui/icons-material/NavigateNext'; import DownloadIcon from '@mui/icons-material/Download'; export const CtaButton = ({ - background_image, href, title, backgroundColor, interview + background_image, href, title, backgroundcolor, interview }) => { const bgImage = getImage(background_image) return ( @@ -18,7 +18,7 @@ export const CtaButton = ({ borderRadius: '0% 0% 25px 25px', border: 'none', '.card-content': { - backgroundColor: backgroundColor, + backgroundColor: backgroundcolor, display: 'flex', justifyContent: 'center', alignItems: 'center', diff --git a/src/components/dates-table.js b/src/components/dates-table.js index c609447..652dc14 100644 --- a/src/components/dates-table.js +++ b/src/components/dates-table.js @@ -47,7 +47,7 @@ export const DatesTable = ({content, type}) => { > - + {content.dates.map(({semester}, i) => ( {semester} ))} diff --git a/src/components/footer.js b/src/components/footer.js index 2d4fec7..1da8148 100644 --- a/src/components/footer.js +++ b/src/components/footer.js @@ -1,7 +1,6 @@ import React from 'react' import { graphql, useStaticQuery } from 'gatsby' import { Typography, Box, Container, Grid, useTheme } from '@mui/joy' -// import { Container } from './container' import { Link } from './link' import starRenciLogo from '../images/star-renci-logo-combined.png' @@ -42,7 +41,7 @@ export const Footer = () => { > - + { mb: '1rem' }} /> - + Student Achievement at RENCI Europa Center 100 Europa Drive, Suite 540 Chapel Hill, NC 27517 - {data.themeYaml.footer.email} + {data.themeYaml.footer.email} 919-445-9640 - + Stay Connected with RENCI
    { data.themeYaml.footer.socials.map((item) => ( -
  • {item.name}
  • +
  • {item.name}
  • )) }
- + © { new Date().getFullYear() } diff --git a/src/components/header.js b/src/components/header.js index 1dddba9..fb68ace 100644 --- a/src/components/header.js +++ b/src/components/header.js @@ -1,21 +1,11 @@ import React, { useMemo } from 'react' -import { useStaticQuery, graphql } from 'gatsby' import { Sheet } from '@mui/joy' import { Container } from './container' import { useScrolling, useWindowWidth } from '../hooks' import { Menu } from './menu' import { MobileMenu } from './mobile-menu' -const Header = ({ siteTitle, menuOptions }) => { - const data = useStaticQuery(graphql` - query SiteTitleQuery { - themeYaml { - metadata { - title - } - } - } - `) +const Header = () => { const { isCompact } = useWindowWidth(); const { scrollPosition } = useScrolling() diff --git a/src/components/hero.js b/src/components/hero.js index 9fdd160..4b4fc59 100644 --- a/src/components/hero.js +++ b/src/components/hero.js @@ -103,6 +103,7 @@ export const Hero = ({ hero component={Link} to={button.url} + key={button.title} > {button.title} @@ -117,6 +118,6 @@ export const Hero = ({ Hero.propTypes = { background_image: PropTypes.object.isRequired, - blurb: PropTypes.string.isRequired, + blurb: PropTypes.string, title: PropTypes.string.isRequired, } diff --git a/src/components/link.js b/src/components/link.js index fe3facc..85459d3 100644 --- a/src/components/link.js +++ b/src/components/link.js @@ -25,6 +25,25 @@ ExternalLinkIcon.propTypes = { size: PropTypes.number.isRequired, } +export const MailtoLinkIcon = ({ size = 12, fill, ...rest }) => { + return ( + + + + ) +} + export const ExternalLink = ({ to, children, noIcon, fill, ...etc }) => { return ( @@ -49,8 +68,16 @@ export const ExternalLink = ({ to, children, noIcon, fill, ...etc }) => { ) } +export const MailtoLink = ({ to, children }) => { + return ( + + { children } + + + ) +} -export const InternalLink = ({ to, children, ref, ...props }) => { +export const InternalLink = React.forwardRef(({ to, children, ...props }, ref) => { return ( { { children } ) -} +}) export const Link = React.forwardRef(({ to, children, noIcon, fill, ...props }, ref) => { const externalUrlPattern = new RegExp(/^https?:\/\//) const match = externalUrlPattern.exec(to) + const mailtoPattern = new RegExp(/^mailto:/) + const mailtoMatch = mailtoPattern.exec(to) + if (match) { - return { children } + return { children } + } + if (mailtoMatch) { + return { children } } return { children } }) \ No newline at end of file diff --git a/src/components/mobile-menu.js b/src/components/mobile-menu.js index 2ed1658..9067dae 100644 --- a/src/components/mobile-menu.js +++ b/src/components/mobile-menu.js @@ -6,7 +6,7 @@ import { useStaticQuery, graphql } from 'gatsby' import MenuIcon from '@mui/icons-material/Menu'; import starLogo from '../images/star-logo-color.png' -export const MobileMenu = ({ options }) => { +export const MobileMenu = () => { const data = useStaticQuery(graphql` query ThemeQuery { themeYaml { @@ -132,13 +132,12 @@ const [open, setOpen] = useState(false) > { data.themeYaml.navigation.map(({ label, path }) => ( - -
  • setOpen(false) } - > - { label } + +
  • + setOpen(false) } + >{ label }
  • @@ -158,5 +157,5 @@ const MenuOptionPropTypes = PropTypes.shape({ MobileMenu.propTypes = { options: PropTypes.arrayOf( MenuOptionPropTypes - ).isRequired + ) } diff --git a/src/components/paragraph-grid.js b/src/components/paragraph-grid.js index 3d13c87..b49ba97 100644 --- a/src/components/paragraph-grid.js +++ b/src/components/paragraph-grid.js @@ -6,7 +6,7 @@ import Grid from '@mui/joy/Grid' export const ParagraphGrid = ({heading, body, color}, id) => { return ( - + {heading} {body} diff --git a/src/components/program-tabs/panel-content.js b/src/components/program-tabs/panel-content.js index 4c46dcf..9fef7d1 100644 --- a/src/components/program-tabs/panel-content.js +++ b/src/components/program-tabs/panel-content.js @@ -16,7 +16,7 @@ export const PanelContentGridContainer = ({children}) => ( ) export const PanelContentGridItem = ({section, color}) => ( - + {section.heading} { section.contentType === "ul" ? ( @@ -27,7 +27,7 @@ export const PanelContentGridItem = ({section, color}) => ( ) : section.contentType === 'button' ? ( {section.content.map((button) => ( diff --git a/src/components/program-tabs/program-tabs-section.js b/src/components/program-tabs/program-tabs-section.js index 8b9cd8f..6a38fd2 100644 --- a/src/components/program-tabs/program-tabs-section.js +++ b/src/components/program-tabs/program-tabs-section.js @@ -5,25 +5,25 @@ import { styled } from '@mui/joy' export const TabContainer = styled(Tabs)` ` -export const ProgramTab = styled(Tab)((({backgroundColor, color, ...props}) => ({ +export const ProgramTab = styled(Tab)((({backgroundcolor, color, ...props}) => ({ width: '33%', display: 'flex', alignItems: 'flex-start', color: color ? color : null, transition: 'background-color 0.5s ease', [`&[aria-selected="false"]`]: { - backgroundColor: `${backgroundColor}75`, + backgroundColor: `${backgroundcolor}75`, ':hover': { - backgroundColor: `${backgroundColor}99`, + backgroundColor: `${backgroundcolor}99`, }, }, [`&[aria-selected="true"]`]: { - backgroundColor: backgroundColor, + backgroundColor: backgroundcolor, }, borderBottom: 'none' }))) -export const ProgramPanel = styled(TabPanel)(({backgroundColor, ...props})=> ({ - backgroundColor: backgroundColor, +export const ProgramPanel = styled(TabPanel)(({backgroundcolor, ...props})=> ({ + backgroundColor: backgroundcolor, paddingBottom: '2rem' })) \ No newline at end of file diff --git a/src/components/section.js b/src/components/section.js index 00006f5..61667d8 100644 --- a/src/components/section.js +++ b/src/components/section.js @@ -6,8 +6,6 @@ import Typography from '@mui/joy/Typography'; import { Container } from './container' -const SHOW_SECTION_HEIGHTS = true - export const Section = ({ id, children, @@ -26,30 +24,14 @@ export const Section = ({ sx={{ backgroundColor, display: 'flex', - // justifyContent: 'stretch', alignItems: 'stretch', - // position: 'relative', - // overflow: 'hidden', '.section-container': { backgroundColor: 'transparent', - // display: 'flex', - // flexDirection: 'column', - // justifyContent: 'center', alignItems: 'center', px: 2, py: 8, mx: 'auto', }, - '.height-indicator': { - position: 'absolute', - bottom: '1rem', - right: '1rem', - zIndex: 8, - color: '#334', - backgroundColor: '#ccd9', - fontSize: '75%', - p: '4px', - }, ...customStyles, }} > @@ -61,13 +43,6 @@ export const Section = ({ } { children }
    - { - process.env.NODE_ENV === 'development' && SHOW_SECTION_HEIGHTS && ( - - {/* height = { JSON.stringify(height) } */} - - ) - } ) } diff --git a/src/components/sections/about-star.js b/src/components/sections/about-star.js index 008888c..1fbb7c2 100644 --- a/src/components/sections/about-star.js +++ b/src/components/sections/about-star.js @@ -31,7 +31,7 @@ export const AboutStar = ({ content }) => { > { content.bullets.map(({item})=>( - {item} + {item} )) } diff --git a/src/components/sections/forms.js b/src/components/sections/forms.js index 99079a1..183e55c 100644 --- a/src/components/sections/forms.js +++ b/src/components/sections/forms.js @@ -12,14 +12,14 @@ export const Forms = ({ content }) => { > {content.sections.map((section) => ( - {section.heading} {section.description} {section.links && section.links.map((link) => ( - + {link.name} diff --git a/src/components/sections/interview-tips.js b/src/components/sections/interview-tips.js index 23d0060..0580cf5 100644 --- a/src/components/sections/interview-tips.js +++ b/src/components/sections/interview-tips.js @@ -43,7 +43,7 @@ const TextPhotoWrapper = ({ return ( - + {tips.map((item, i)=>( - { { content.people.map((person) => ( - + )) } diff --git a/src/components/sections/programs-overview.js b/src/components/sections/programs-overview.js index a220cf6..00f785d 100644 --- a/src/components/sections/programs-overview.js +++ b/src/components/sections/programs-overview.js @@ -12,20 +12,20 @@ export const ProgramsOverview = ({ content }) => { { program_id: 'starship', content: content.starShipContent, - backgroundColor: '#F9A302', + backgroundcolor: '#F9A302', ...content.programs[0] }, { program_id: 'starventures', content: content.starVenturesContent, - backgroundColor: '#1A1B2F', + backgroundcolor: '#1A1B2F', color: '#fff', ...content.programs[1] }, { program_id: 'irods', content: content.irodsContent, - backgroundColor: '#00758D', + backgroundcolor: '#00758D', color: '#fff', ...content.programs[2] } @@ -56,7 +56,7 @@ export const ProgramsOverview = ({ content }) => { disableIndicator indicatorInset key={`${program.program_id}-tab`} - backgroundColor={program.backgroundColor} + backgroundcolor={program.backgroundcolor} sx={{ padding: {xs: '1rem 0', sm: '2rem 0', md: '2.5rem 0'}, }} @@ -91,7 +91,7 @@ export const ProgramsOverview = ({ content }) => { { program.program_id === 'starship' ? diff --git a/src/components/sections/programs/starShipPanel.js b/src/components/sections/programs/starShipPanel.js index 029c8eb..b26e12a 100644 --- a/src/components/sections/programs/starShipPanel.js +++ b/src/components/sections/programs/starShipPanel.js @@ -28,8 +28,6 @@ const datesQuery = graphql`query { export const StarShipPanel = ({title, content}) => { const data = useStaticQuery(datesQuery) - - console.log(data) return ( @@ -38,7 +36,7 @@ export const StarShipPanel = ({title, content}) => { { content.sections.map((section) => ( - + )) } diff --git a/src/components/sections/programs/starVenturesPanel.js b/src/components/sections/programs/starVenturesPanel.js index e6a5e23..630ed31 100644 --- a/src/components/sections/programs/starVenturesPanel.js +++ b/src/components/sections/programs/starVenturesPanel.js @@ -7,7 +7,7 @@ import { import { PanelContentGridContainer, PanelContentGridItem, - MainPanelButton + // MainPanelButton } from '../../program-tabs' import { GatsbyImage, getImage } from 'gatsby-plugin-image' diff --git a/src/components/sections/resources.js b/src/components/sections/resources.js index d459436..b0c66d5 100644 --- a/src/components/sections/resources.js +++ b/src/components/sections/resources.js @@ -19,7 +19,7 @@ export const Resources = ({ content }) => { {section.links && ( {section.links.map((link) => ( - + {link.title} @@ -33,7 +33,7 @@ export const Resources = ({ content }) => { {section.stayConnectedList.map(({item}) => ( - + {item} ))} diff --git a/src/components/sections/students-staff-ctas.js b/src/components/sections/students-staff-ctas.js index bebb599..3f081d5 100644 --- a/src/components/sections/students-staff-ctas.js +++ b/src/components/sections/students-staff-ctas.js @@ -12,8 +12,8 @@ export const StudentsStaffCtas = ({ content }) => { direction={{ xs: 'column', sm: 'row' }} gap={ 2 } > - - + + ) diff --git a/src/components/student-slide.js b/src/components/student-slide.js index 2126eaa..d4d473b 100644 --- a/src/components/student-slide.js +++ b/src/components/student-slide.js @@ -72,7 +72,6 @@ export const MobileSlide = ({student}) => { const { student_name, title, - semester, project_description, project_link_text, project_link } = student diff --git a/src/content/sections/forms.yaml b/src/content/sections/forms.yaml index 596f8d3..7638623 100644 --- a/src/content/sections/forms.yaml +++ b/src/content/sections/forms.yaml @@ -14,12 +14,16 @@ sections: - name: Guidelines for Managing Students url: https://docs.google.com/document/d/1fHsEqDMMCpjmHiiGthKPfsUuTGIlXawYT2J-cA7rSrE/edit# - name: Onboarding Document Template - url: https://docs.google.com/document/d/1j9w2yb6lTPGsiD_7VEiFfX2ulcuTLdscmATMF5KYzqI/edit?usp=drive_link + url: https://docs.google.com/document/d/1fsX-eMVlHaOE5fqSEt8v0D8KEneftj3cr0tgwfZwFsw/view - heading: "Other Resources" links: - name: STAR Ventures One-Pager - url: https://drive.google.com/file/d/1BDoEzeoXC0u_g65Bzc1TQlUfRpoBE5xT/preview + url: https://drive.google.com/file/d/1n_jWCF64Px8noX-bQr2OMgpi3OVVV9EA/preview + - name: Proposal Package + url: https://drive.google.com/drive/folders/1TWLvz5dT09nSS4ZVYGrqKpVOZMBid1lj?usp=drive_link - heading: "Managing Your Student" links: - name: STARship STAR Talk Guidelines url: https://docs.google.com/document/d/1p20E9P-rZUjCoDAJCzGckRqPRxI18ldv85fUueLwxvc/edit?usp=drive_link + - name: 31-day Break Process + url: https://docs.google.com/document/d/1IMNMEpdtKb6q437xTsWoOyE7kAvIOdd5SymYORvg6Mw/view \ No newline at end of file diff --git a/src/content/sections/important-dates.yaml b/src/content/sections/important-dates.yaml index 7518ac6..e8ab584 100644 --- a/src/content/sections/important-dates.yaml +++ b/src/content/sections/important-dates.yaml @@ -17,18 +17,6 @@ date_titles: # Content managers edit below this line. dates: - - semester: SUMMER 2024 - semester_dates: - date1: "Friday, March 29, 2024" - date2: "Friday, April 12, 2024" - date3: "Friday, May 3, 2024" - date4: "Wednesday, May 8, 2024" - date5: "Friday, May 24, 2024" - date6: "Friday, July 5, 2024" - date7: "Friday, July 5, 2024" - date8: "Monday, July 29, 2024" - date9: "Friday, August 9, 2024" - date10: "Friday, August 9, 2024" - semester: FALL 2024 semester_dates: date1: "Friday, July 5, 2024" @@ -40,4 +28,28 @@ dates: date7: "Friday, November 15, 2024" date8: "Wednesday, November 20, 2024" date9: "Wednesday, December 18, 2024" - date10: "Wednesday, December 18, 2024" \ No newline at end of file + date10: "Wednesday, December 18, 2024" + - semester: SPRING 2025 + semester_dates: + date1: "Wednesday, November 20, 2024" + date2: "Friday, November 29, 2024" + date3: "Friday, December 20, 2024" + date4: "Friday, January 3, 2025" + date5: "Friday, January 17, 2025" + date6: "Friday, March 7, 2025" + date7: "Friday, March 28, 2025" + date8: "Monday, April 21, 2025" + date9: "Friday, May 9, 2025" + date10: "Friday, May 9, 2025" + - semester: SUMMER 2025 + semester_dates: + date1: "Friday, March 28, 2025" + date2: "Friday, April 11, 2025" + date3: "Friday, May 2, 2025" + date4: "Wednesday, May 7, 2025" + date5: "Friday, May 23, 2025" + date6: "Thursday, July 3, 2025" + date7: "Thursday, July 3, 2025" + date8: "Monday, July 28, 2025" + date9: "Friday, August 8, 2025" + date10: "Friday, August 8, 2025" \ No newline at end of file diff --git a/src/content/sections/key-contacts.yaml b/src/content/sections/key-contacts.yaml index c8d7b77..671fa4c 100644 --- a/src/content/sections/key-contacts.yaml +++ b/src/content/sections/key-contacts.yaml @@ -4,9 +4,7 @@ people: - name: Bryttany Todd description: STAR Program Manager - name: Ashley Hukins - description: STAR Project Coordinator - - name: Griffin Kay - description: STAR Program Associate + description: STAR Program Coordinator - name: Questions? description: > Contact the team at internships@renci.org or diff --git a/src/content/sections/programs-overview.yaml b/src/content/sections/programs-overview.yaml index cc6c6b2..8f9ddc1 100644 --- a/src/content/sections/programs-overview.yaml +++ b/src/content/sections/programs-overview.yaml @@ -38,10 +38,12 @@ starShipContent: - heading: "Student Responsibilities" contentType: "button" content: - - title: "New Student Responsibilities" - url: "https://drive.google.com/file/d/1yKWPW7Zc-8J56Dn0DWhZB7KakpIuli2w/preview" - - title: "Extended Student Responsbilities" - url: "https://drive.google.com/file/d/1OOx9_bhREQB360d7fD3h_blk4JkJTHsL/preview" + - title: "New Students" + url: "https://drive.google.com/file/d/1dCSoxwKSAK4EFYgcuweGRdAJnSo_qRlO/preview" + - title: "Extended Students" + url: "https://drive.google.com/file/d/15had4MnthZlWGVIfjVZd9FgFzRtye4WR/preview" + - title: "Rising & Guiding STARs" + url: "https://drive.google.com/file/d/1TGnbEVcsVh6XVDH8IEg8B4RD9OpC9c5K/preview" starVenturesContent: program_id: 'starventures' description: > diff --git a/src/content/sections/resources.yaml b/src/content/sections/resources.yaml index d866940..95ddabd 100644 --- a/src/content/sections/resources.yaml +++ b/src/content/sections/resources.yaml @@ -17,9 +17,9 @@ sections: Talks for STARships and STAR Ventures vary. links: - title: STARship Students - url: https://drive.google.com/file/d/1JOGySSp5lbyOlHCO-cdVPNJ0NuEmBMgk/preview + url: https://drive.google.com/file/d/15had4MnthZlWGVIfjVZd9FgFzRtye4WR/preview - title: STAR Ventures Students - url: https://drive.google.com/file/d/1rUnZ65y88_hExa32H4Mm3yHeEu5VgKzT/preview + url: https://drive.google.com/file/d/1dCSoxwKSAK4EFYgcuweGRdAJnSo_qRlO/preview - heading: "Want to stay connected?" description: > Fill out the Student Interest Form to stay connected with STAR