This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mainC = useMemo( | |
() => ({ | |
userProfile: { userProfile }, | |
inHome: () => setIsDarkTheme((isDark) => !isDark), | |
signOutUser: () => Firebase.auth().signOut(), | |
handleLogin: (email, password) => { | |
doLogin(email, password); | |
}, | |
handleSignup: (name, email, password) => { | |
doSignup(name, email, password); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
siteMetadata: { | |
title: 'Site Titel', | |
}, | |
plugins: [ | |
'gatsby-plugin-sharp', | |
'gatsby-plugin-postcss', | |
'gatsby-transformer-sharp', | |
{ | |
resolve: 'gatsby-source-filesystem', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- category: Design | |
portfolio: | |
- title: Project title | |
description: Short desription | |
l_description: this is a longer descriptio | |
image: | |
- ../images/portfolio/01.jpg | |
- ../images/portfolio/02.jpg | |
- title: Project title 2 | |
description: Postcard, Booklet promozionale |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import PortfolioContent from '../components/PortfolioContent'; | |
import { graphql } from 'gatsby'; | |
const Realizzazioni = ({ data }) => { | |
return ( | |
<main className="container mx-auto px-2 md:px-0"> | |
<PortfolioContent data={data} /> | |
</main> | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect, useState } from 'react'; | |
import Img from 'gatsby-image'; | |
const PortfolioContent = ({ data }) => { | |
const [currentCategory, setCurrentCategory] = useState(); | |
const [currentPortfolio, setCurrentPortfolio] = useState(); | |
useEffect(() => { | |
//console.log(currCat); | |
data.map((portfolio, i) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import { Menu } from '../components/Menu'; | |
// markup | |
const IndexPage = ({ transitionStatus }) => { | |
return ( | |
<> | |
<main className="container mx-auto px-2 md:px-0"> | |
<Menu /> | |
<div className="text-3xl w-full mx-auto justify-center flex font-bold hometex"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { Menu } from '../components/Menu'; | |
const About = ({ transitionStatus }) => { | |
return ( | |
<> | |
<main className="container mx-auto px-2 md:px-0"> | |
<Menu /> | |
<div className="w-full h-full flex justify-center items-center realizzazioni"> | |
<div id="categories" className="w-full md:w-1/2"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { Menu } from '../components/Menu'; | |
const Contact = ({ transitionStatus }) => { | |
return ( | |
<> | |
<main className="container mx-auto px-2 md:px-0"> | |
<Menu /> | |
<div className="w-full h-full flex justify-center items-center realizzazioni"> | |
<div id="categories" className="w-full md:w-1/2"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
useEffect(() => { | |
gsap.to('.hometex', { | |
autoAlpha: 1, | |
duration: 1, | |
}); | |
}, []); //THIS IS RUN THE FIRST TIME THE SITE IS OPENED | |
useEffect(() => { | |
if (transitionStatus === 'entering') { | |
gsap.to('.hometex', { | |
autoAlpha: 1, |