Coder Social home page Coder Social logo

regen-network / regen-web Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 10.0 376.93 MB

:seedling: Website and marketplace application

Home Page: https://app.regen.network

JavaScript 0.38% TypeScript 97.37% CSS 0.15% HTML 0.14% Dockerfile 0.14% Shell 0.13% MDX 1.68%
biodiversity carbon climate climate-tech credit marketplace origination

regen-web's People

Contributors

aaronc avatar aptcore avatar blarsy avatar blushi avatar brokenthumbs avatar clevinson avatar cpolitano avatar cshear avatar dpdanpittman avatar erikalogie avatar ethanfrey avatar flagrede avatar haveanicedavid avatar mergify[bot] avatar mhagel avatar paul121 avatar petefarmer avatar ratacat avatar regensolarpunk avatar ryanchristo avatar sarahbaxendell avatar swidnikk avatar wgwz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

regen-web's Issues

Rename section components and files consistently

I like the idea of starting the filename with either the page it's in, or shared...so the marketplace section could be:
home-marketplace-section.tsx

Also theres a question of whether or not include the word section at the end of them, maybe not necessary since they're all in a section folder.

Additionally, we could go camelcase or dashes..

Best way to reorder elements for mobile view?

For example, on jared/home-climate-change the positioning of the dialogue boxes / text / image need to be pretty different on mobile vs on desktop.

It seems like absolute positioning could work, but would feel a bit brittle. Flexbox maybe with order property..

how to draw a line connecting two components

In looking at this section, I'm wondering how I might draw those connecting lines best? It seems like an SVG might be a good bet, but we'd need the locations of the image and the dialogue box in order to best fit the ends. Do you have any suggestions @blushi ?

Screen Shot 2020-06-12 at 9 41 59 AM

Implement Header

Needs some fixing up.

  • mobile version
  • fix layout (due to absolute position)

Can't seem to get useTheme hook to work with our theme.

I am pulling RegenThemeProvider into layout.tsx

/**
 * Layout component that queries for data
 * with Gatsby's useStaticQuery component
 *
 * See: https://www.gatsbyjs.org/docs/use-static-query/
 */

import React from 'react';
import PropTypes, { string } from 'prop-types';
import { useStaticQuery, graphql } from 'gatsby';
import Header from 'web-components/lib/components/header';
import { useTheme } from '@material-ui/core/styles';
import './layout.css';
import ThemeProvider from 'web-components/lib/theme/RegenThemeProvider';

let logo = 'images/logo.png';
interface propTypes {
  children: Array<React.ReactElement>;
  color: string;
}

const Layout = ({ children, color }: propTypes): JSX.Element => {
  const data = useStaticQuery(graphql`
    query SiteTitleQuery {
      site {
        siteMetadata {
          title
        }
      }
    }
  `);

  //   const theme = useTheme();

  //   const url = typeof window !== 'undefined' ? window.location.href : '';

  //   let color = theme.palette.primary.contrastText;
  //   console.log(`url: ${url}`);
  //   if (url.includes('page')) {
  //     color = theme.palette.primary.main;
  //   }

  const menuItems = [
    { title: 'Buyers', href: '/buyers' },
    { title: 'Land Steward', href: '/landsteward' },
    {
      title: 'Learn More',
      dropdownItems: [
        { title: 'Case Studies', href: '/casestudies' },
        { title: 'FAQ', href: '/faq' },
        { title: 'Team', href: '/team' },
      ],
    },
  ];

  return (
    <>
      <ThemeProvider injectFonts>
        <Header menuItems={menuItems} absolute transparent color={color ? color : null}></Header>
        <div
          style={{
            margin: `0 auto`,
          }}
        >
          <main>{children}</main>
          <footer>
            © {new Date().getFullYear()}, Built with
            {` `}
            <a href="https://www.gatsbyjs.org">Gatsby</a>
          </footer>
        </div>
      </ThemeProvider>
    </>
  );
};

Layout.propTypes = {
  children: PropTypes.node.isRequired,
};

export default Layout;

So it should be a parent of the component call makes the call. Which I am thinking is why I can't make the call from this same component. Because it's not a parent. In researching the best ways to do this, this person, suggests using gatsby-plugin-layout to avoid issues with FOUC. So I'm giving this a go on jared/home-fold-section to fix the header color.

A side effect of the new layout system

Now that the layout is being set in a plugin, we no longer are able to send in different color parameters to the header from different pages. We could go back to using the http_location string in combination with a list of pages to change the color to in the layout file...but maybe one of you has a better solution? @blushi @clevinson

Implement For Developers "careers" section

Currently, we're using https://apply.workable.com/regen-network/
Should we pull data from it? In that case, we would need to filter dev only posts.
Or should we just replace this section with a link to workable for now?
Or have it editable from the cms so that it shows the featured job post? Then that means that the person who deals with that should make edits in both workable and the cms.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.