Skip to content

Commit

Permalink
add hero and modified header navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
schabibi1 committed Nov 7, 2022
1 parent a0b63c2 commit fd410a0
Show file tree
Hide file tree
Showing 7 changed files with 191 additions and 108 deletions.
3 changes: 1 addition & 2 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ module.exports = {
{
resolve: 'gatsby-source-storyblok',
options: {
accessToken: "ZdFYtxeakrdRenL0wGCJsgtt",
// accessToken: process.env.GATSBY_PREVIEW_STORYBLOK,
accessToken: process.env.GATSBY_PREVIEW_STORYBLOK,
version: process.env.NODE_ENV === 'production' ? 'published' : 'draft',
localAssets: true, // Optional parameter to download the images to use with Gatsby Image Plugin
// languages: ['de', 'at'] // Optional parameter. Omission will retrieve all languages by default.
Expand Down
216 changes: 159 additions & 57 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"gatsby-plugin-react-helmet": "^5.17.0",
"gatsby-plugin-sharp": "^4.17.0",
"gatsby-source-filesystem": "^4.17.0",
"gatsby-source-storyblok": "^4.0.1",
"gatsby-source-storyblok": "^4.2.0",
"gatsby-transformer-sharp": "^4.17.0",
"prop-types": "^15.8.1",
"react": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Feature.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const Feature = ({ blok }) => {
return (
<div className="column feature" {...storyblokEditable(blok)}>
<div className="p-6">
<img className="object-cover object-center w-full mb-8 lg:h-48 md:h-36 rounded-xl" src={blok.image} alt="feature" />
<img className="object-cover object-center w-full mb-8 lg:h-48 md:h-36 rounded-xl" src={blok.image.filename} alt="feature" />
<h1 className="mx-auto mb-8 text-2xl font-semibold leading-none tracking-tighter text-neutral-600 lg:text-3xl">{blok.name}</h1>
<div className="mt-4">
<Link to="#" className="inline-flex items-center mt-4 font-semibold text-blue-600 lg:mb-0 hover:text-neutral-600" title="read more"> Read More » </Link>
Expand Down
47 changes: 0 additions & 47 deletions src/components/hero-section.js

This file was deleted.

Loading

0 comments on commit fd410a0

Please sign in to comment.