Skip to content

Commit

Permalink
cloudinary support added
Browse files Browse the repository at this point in the history
  • Loading branch information
michael committed Sep 8, 2023
1 parent cdaf770 commit b713ed7
Show file tree
Hide file tree
Showing 10 changed files with 54 additions and 6 deletions.
4 changes: 2 additions & 2 deletions components/Main/Gigs/Gigs.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Image from "next/legacy/image";
import Link from "next/link";
import { CldImage } from "next-cloudinary";
import { Picture } from "components/Picture";
import Header from "components/Header";
import { Button } from "components/Button";
Expand All @@ -24,7 +24,7 @@ export const Gigs = ({ gigs }: Props) => {
</Link>
<Link href={`gigs/${gigs[0].slug}`}>
<div className={`${styles.bottomImage} ${card.cardStyle}`}>
<Image
<CldImage
alt={gigs[0].frontmatter.title}
height={360}
src={gigs[0].frontmatter.pic}
Expand Down
4 changes: 2 additions & 2 deletions components/Picture.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Image from "next/image";
import { CldImage } from "next-cloudinary";

import { CSSProperties } from "react";
import { blurImgUrl } from "utils";
Expand All @@ -14,7 +14,7 @@ export const Picture = ({ alt, size, src, style }: PictureProps) => {
const css: CSSProperties = { maxWidth: "100%", height: "auto", objectFit: "contain" };
const myStyle = { ...css, ...style };
return (
<Image
<CldImage
alt={alt}
blurDataURL={blurImgUrl(size)}
height={size}
Expand Down
3 changes: 3 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ const nextConfig = {

return config;
},
images: {
domains: ["res.cloudinary.com"],
},
};

module.exports = withPWA(nextConfig);
44 changes: 44 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"gray-matter": "^4.0.3",
"marked": "^4.3.0",
"next": "^13.4.4",
"next-cloudinary": "^4.21.0",
"next-pwa": "^5.6.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion posts/premieres/lo-chi-31-8-23.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ The EP drops in full on September 1st, right on time for Bandcamp Friday.

Pre-order/ Buy here: <HoverLink url="differentintel.bandcamp.com/album/half-cut-ep"external /> 🌱

<Picture src="/premieres/54-ty-djing.jpg" alt="Lo Chi DJing" size={1200} />
<Picture src="/premieres/54-ty-djing_huyzsn.jpg" alt="Lo Chi DJing" size={1200} />
<p className="smallText">(Pictured: Lo Chi DJing)</p>
2 changes: 1 addition & 1 deletion posts/top-ten-releases/michael-22-12-22.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ intro: "Plant Bass'd co-founder, Michael, shares his 2022 roundup of leftfield b

<div className="row display-flex align-items-center">
<div className="col clubGuide">
<Picture src="/fresh-juice/17-lws-art.png" alt="LWS - Corrupt/ Brewing" size={1200} />
<Picture src="/top-ten-releases/michael/1.jpg" alt="LWS - Corrupt/ Brewing" size={1200} />
</div>
<div className="col clubGuide">

Expand Down
Binary file removed public/mixes/michael.png
Binary file not shown.
Binary file removed public/mixes/oisin.jpg
Binary file not shown.
Binary file removed public/news/39-summerJam.webp
Binary file not shown.

0 comments on commit b713ed7

Please sign in to comment.