diff --git a/src/components/hero.jsx b/src/components/hero.jsx index 2486d54..6fd80df 100644 --- a/src/components/hero.jsx +++ b/src/components/hero.jsx @@ -4,7 +4,8 @@ import Button from "react-bootstrap/Button"; import Container from "react-bootstrap/Container"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { icon } from "@fortawesome/fontawesome-svg-core/import.macro"; -import Alert from "react-bootstrap/Alert"; +// import Alert from "react-bootstrap/Alert"; +import { StaticImage } from "gatsby-plugin-image"; const Hero = ({ small }) => { const data = useStaticQuery( @@ -36,9 +37,35 @@ const Hero = ({ small }) => { const metadata = data.site.siteMetadata; return ( -
- - {/* {small && ( +
+ +
+ + {/* {small && ( {

)} */} -

- Linux Day Milano {metadata.event.year} -

-

- - organizzato da{" "} - - unix - MiB - - -

-
- {" "} - {metadata.event.text} -
- {" "} - Ore {metadata.event.time} -
- {" "} - {metadata.contacts.place.name} -
- {" "} - {metadata.contacts.place.building} -
-
- {small && ( -
- - +

+ Linux Day Milano {metadata.event.year} +

+

+ + organizzato da{" "} + + unix + MiB + + +

+
+ {" "} + {metadata.event.text} +
+ {" "} + Ore {metadata.event.time} +
+ {" "} + {metadata.contacts.place.name} +
+ {" "} + {metadata.contacts.place.building} +
- )} - + {small && ( +
+ + +
+ )} + +
); }; diff --git a/src/pages/schedule.jsx b/src/pages/schedule.jsx index 317ebb8..0129ec5 100644 --- a/src/pages/schedule.jsx +++ b/src/pages/schedule.jsx @@ -215,10 +215,6 @@ const Page = ({ data }) => { useEffect(() => { let current = localStorage.getItem("starredTalks"); - let showStarred = localStorage.getItem("showStarred"); - if (showStarred === "true") { - setShowStarred(true); - } if (current) { try { current = JSON.parse(current); @@ -230,6 +226,7 @@ const Page = ({ data }) => { setStarredTalks({}); } } + localStorage.getItem("showStarred") === "true" && setShowStarred(true); }, []); useEffect(() => { @@ -260,7 +257,10 @@ const Page = ({ data }) => {
diff --git a/src/styles/base.scss b/src/styles/base.scss index 3af9043..7534d74 100644 --- a/src/styles/base.scss +++ b/src/styles/base.scss @@ -6,16 +6,6 @@ html { color: $unixmib; } -@mixin cover-background($imageUrl, $overlay) { - @if $overlay { - background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), - url($imageUrl) no-repeat center center fixed; - } @else { - background: url($imageUrl) no-repeat center center fixed; - } - background-size: cover; -} - @mixin tshadow() { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); } diff --git a/src/styles/components/hero.scss b/src/styles/components/hero.scss index 40bd154..c9ad118 100644 --- a/src/styles/components/hero.scss +++ b/src/styles/components/hero.scss @@ -1,5 +1,4 @@ .hero { - @include cover-background("../assets/images/hero.jpg", true); @include media-breakpoint-up(md) { padding: 3rem 4rem 5rem; diff --git a/src/styles/pages/index.scss b/src/styles/pages/index.scss index 76eda94..8ba03ab 100644 --- a/src/styles/pages/index.scss +++ b/src/styles/pages/index.scss @@ -132,8 +132,6 @@ &#sponsors { background-color: white; //#1881a2; color: black; - //@include cover-background("../assets/images/sponsor-bg.jpg", true); - //background-image: url("../assets/images/sponsor-bg.jpg"); background-position: 50% 0; background-size: cover; padding-top: 0;