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

Feature/dad 18 connect prismic #107

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
33cca5b
initial commit
Feb 27, 2022
3dc26c9
add ts
Feb 27, 2022
6e09da7
test images
Feb 27, 2022
e8b2192
image base64
Feb 28, 2022
89ede8f
initial commit
Mar 7, 2022
d6229ce
Merge pull request #1 from solimer/feature/initial
rafpaz Mar 7, 2022
3f098db
add default theme
Mar 7, 2022
ef5cf91
add stiches and config
Mar 7, 2022
685f478
Merge pull request #2 from solimer/feature/stitches-radix-ui
rafpaz Mar 7, 2022
b5fc409
add stitches
Mar 9, 2022
e10235e
get dynamic gen ref
Mar 12, 2022
c0902e0
fix font and errors
Mar 14, 2022
d29d06a
format
Mar 16, 2022
0097e86
dev works
Apr 4, 2022
f1cf4ac
remove node fetch
Apr 4, 2022
eab0c8c
move header image to headre
Apr 5, 2022
41bb352
use prismic types
Apr 11, 2022
16bd0ef
update packages
May 3, 2022
0a3c1ae
upgrade
May 15, 2022
8601867
upgrade and add prismic image
May 25, 2022
1e54902
upgrade
Jun 1, 2022
f7bbaa1
upgrade
Jun 7, 2022
0e91854
upgrade typescript
Jul 31, 2022
ea2774d
start
Apr 29, 2023
b46fbf9
working state
Apr 30, 2023
f24a7f9
add styles
Apr 30, 2023
b9145c8
counter and portfolio
Apr 30, 2023
8573a79
fix lint errors
Apr 30, 2023
1f4e0d8
fix types on preview
May 1, 2023
342e2d0
update
May 1, 2023
ac34481
Merge pull request #3 from solimer/feature/header
rafpaz May 1, 2023
28083e0
add to page
May 1, 2023
aa177ef
Add prettier to eslint config and update PortfolioVideo file formatting
May 1, 2023
7cc02a6
🎨 style(Portfolio.tsx): change portfolio images layout to grid
May 1, 2023
5b6c691
Refactor portfolio layout and styling for responsiveness
May 1, 2023
68934f1
Refactor Portfolio component video display
May 2, 2023
47c9745
Refactor portfolio grid layout and image display
May 2, 2023
e439607
Merge pull request #4 from solimer/feature/portfolio
rafpaz May 2, 2023
82f89b2
before trying to copy from orig
May 2, 2023
1db25f5
Refactor testimonial carousel to use active boolean instead of active…
May 2, 2023
2ce780b
add tw lib
May 3, 2023
10a6c68
before trying different approach
May 3, 2023
abfcdb2
finalise testimoniala
May 3, 2023
2de2bc1
Merge pull request #5 from solimer/feature/testimonials
rafpaz May 3, 2023
ff7e65a
Add blog section to home page
May 3, 2023
32cc3ed
Merge pull request #6 from solimer/feature/blogs-section
rafpaz May 3, 2023
96951d4
Refactor blog and testimonial components for better readability
May 4, 2023
8499652
Merge pull request #7 from solimer/feature/dad-17-testimonials-fix-mu…
rafpaz May 4, 2023
c0d8a66
🚀 chore(package.json): add new dependencies
May 4, 2023
6fba0e2
update packages
May 4, 2023
370880d
replace key with env
May 4, 2023
19e0c1d
regenerate yarn.lock
May 4, 2023
cd3c20e
Add @hookform/resolvers and zod validation schema to Contact form
May 4, 2023
a335274
🎨 style(contact): add styles for success and error messages
May 5, 2023
b3dfbbf
Remove react-tooltip dependency and CSS import
May 5, 2023
589cfc6
test
May 6, 2023
a32b1b4
fix
May 6, 2023
ed59eef
send email
May 6, 2023
584fb40
Refactor contact form submission to handle errors and success
May 6, 2023
9fb0496
use env for email
May 6, 2023
0e1ac89
Add footer component to home page
May 6, 2023
7161271
Merge pull request #8 from solimer/feature/dad-13-contact-me-section
rafpaz May 6, 2023
2751bbc
Refactor About, Footer, and Header components and add useOnScroll hook
May 6, 2023
69457d2
Add Brand component to NavigationBar with DA-DA-BOOM
May 6, 2023
f7790fa
navigation
May 6, 2023
783fc00
Add state for NavigationBar burger menu
May 7, 2023
755f63f
Refactor NavigationItems component styles for better mobile responsiv…
May 7, 2023
6d46f4d
Merge pull request #10 from solimer/feature/dad-16-navigation-bar-bro…
rafpaz May 7, 2023
ad50e7e
Add photoswipe and react-photoswipe-gallery dependencies
May 7, 2023
e9c3586
Add refs and onClick handlers to portfolio images
May 8, 2023
44547fe
Merge pull request #11 from solimer/feature/dad-15-lightbox-when-clic…
rafpaz May 8, 2023
1e54751
🎨 style(About.tsx): add SlideWhenVisible component to about section
May 8, 2023
22b7168
Merge pull request #12 from solimer/feature/dad-19-section-title-anim…
rafpaz May 8, 2023
f529fdf
update favicon
May 8, 2023
a14a94a
about section from prisic
May 8, 2023
2185df2
fix types
May 8, 2023
b6aafc6
fix types
May 8, 2023
65a6ac5
Update import path for HomepageDocument in Header interface
May 8, 2023
f270e93
add og image
May 8, 2023
4356570
add update
May 8, 2023
4363164
send response
May 8, 2023
ad867c0
log request
May 8, 2023
4683aa4
edit console
May 8, 2023
cbcbe87
depth
May 8, 2023
f8fad1c
add secret
May 8, 2023
a3ab7e3
services from prismic
May 8, 2023
c65e69d
gallery from prismic
May 9, 2023
6a03bd5
typed header from prismic
May 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Refactor portfolio grid layout and image display
  • Loading branch information
Rafael Paz committed May 2, 2023
commit 47c974598a9ef6b7782477c03507761a7734721b
22 changes: 10 additions & 12 deletions components/Home/Portfolio/Portfolio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,16 @@ const Portfolio: React.FC = () => (
</div>
</div>
</div>
<div className="container mx-auto py-2 lg:pt-12">
<div className="-m-1 flex flex-wrap md:-m-2">
<PortfolioImage imgName="gallery_image" alt="First Image" />
<PortfolioImage imgName="p2" alt="Second Image" />
<PortfolioImage imgName="p3" alt="Third Image" />
<PortfolioVideo videoId="lUaMXm_DLJ4" />
<PortfolioVideo videoId="GNFQ8WzHc1w" />
<PortfolioVideo videoId="IB2v9tw7q_g" />
<PortfolioVideo videoId="4eNeaim4VRQ" />
<PortfolioVideo videoId="yDeH1W2eshQ" />
<PortfolioVideo videoId="qSgojcFYJ1Q" />
</div>
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3 auto-rows-fr">
<PortfolioImage imgName="gallery_image" alt="First Image" />
<PortfolioImage imgName="p2" alt="Second Image" />
<PortfolioImage imgName="p3" alt="Third Image" />
<PortfolioVideo videoId="lUaMXm_DLJ4" />
<PortfolioVideo videoId="GNFQ8WzHc1w" />
<PortfolioVideo videoId="IB2v9tw7q_g" />
<PortfolioVideo videoId="4eNeaim4VRQ" />
<PortfolioVideo videoId="yDeH1W2eshQ" />
<PortfolioVideo videoId="qSgojcFYJ1Q" />
</div>
</div>
</section>
Expand Down
20 changes: 10 additions & 10 deletions components/Home/Portfolio/PortfolioImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ const PortfolioImage: React.FC<{ imgName: string; alt: string }> = ({
imgName,
}) => {
return (
<div className="flex w-full md:w-1/2 lg:w-1/3 flex-wrap group cursor-pointer p-[10px]">
<div className="w-full p-1 md:p-2 overflow-hidden">
<Image
cloudName="dadaboom"
publicId={imgName}
className="img-responsive w-full transition-all duration-[0.6s] ease-[ease] group-hover:opacity-[0.8] group-hover:scale-[1.1]"
alt={alt}
>
<Transformation height="293" width="370" crop="scale" />
</Image>
<div className="group cursor-pointer">
<div className="overflow-hidden">
<Image
cloudName="dadaboom"
publicId={imgName}
className="img-responsive w-full transition-all duration-[0.6s] ease-[ease] group-hover:opacity-[0.8] group-hover:scale-[1.1]"
alt={alt}
>
<Transformation height="293" width="370" crop="scale" />
</Image>
</div>
</div>
);
Expand Down
14 changes: 1 addition & 13 deletions components/Home/Portfolio/PortfolioVideo.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
import React from "react";
import YouTube from "react-youtube";
import { isMobile } from "react-device-detect";

const PortfolioVideo: React.FC<{ videoId: string }> = ({ videoId }) => {
const opts = {
height: 'auto',
width: '100%',
};
// if (isMobile) opts.width = window.innerWidth - 20;
return (
<div className="flex w-full md:w-1/2 lg:w-1/3 flex-wrap group cursor-pointer p-[10px]">
<div className="w-full p-1 md:p-2 overflow-hidden">
<YouTube videoId={videoId} opts={opts} />
</div>
</div>
);
return <YouTube videoId={videoId} className="h-full" iframeClassName="h-full w-full" />;
};

export default PortfolioVideo;