Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

white screen #47

Open
imjord opened this issue Jun 18, 2022 · 1 comment
Open

white screen #47

imjord opened this issue Jun 18, 2022 · 1 comment

Comments

@imjord
Copy link

imjord commented Jun 18, 2022

`import React from 'react';
import './Projects.css';
import TouchCarousel from 'react-touch-carousel'
const Projects = () => {

    const myProjects = [
        {
            image: require('../assets/budget.png'),
            title: 'Budget App',
            description: 'A budget app that allows you to track your expenses and income. You can also add new expenses and income to your budget.',
        },
        {
            image: require('../assets/weather.PNG'),
            title: 'Weather App',
            description: 'A weather app that allows you to search for weather conditions in any city. You can also add a new city to your list of cities.',
        },
    
    ]
    function CarouselContainer(){
        // render the carousel structure
        }
        
function renderCard(index, modIndex, cursor){
const item = myProjects[modIndex];
 // render the item 
}

  return (
        
    <TouchCarousel
  component={CarouselContainer}
  cardCount={myProjects.length}
  cardSize={375}
  renderCard={renderCard}
  loop
  autoplay={3000}
></TouchCarousel>
  
  )
}

export default Projects`

what am i missing? my screen just shows blank

@xiaody
Copy link
Owner

xiaody commented Jun 21, 2022

Your CarouselContainer and renderCard are empty so I can't say any thing. A runnable stackblitz/codesandbox demo would help debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants