Skip to content

Commit

Permalink
use tailwind to import the prototypr node_modules css
Browse files Browse the repository at this point in the history
  • Loading branch information
GraemeFulton committed Jul 30, 2024
1 parent 392a77b commit 53a4403
Show file tree
Hide file tree
Showing 10 changed files with 608 additions and 2,848 deletions.
2 changes: 1 addition & 1 deletion components/carousel/EmblaCarousel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const EmblaCarousel = props => {
src={item.original}
alt="Your alt text"
/> */}
<div className="relative shimmer border border-gray-300/70 h-[240px] shadow-md w-full rounded-2xl h-full w-full relative overflow-hidden flex justify-center">
<div className="relative shimmer border border-gray-300/70 h-[240px] shadow-md w-full rounded-2xl w-full relative overflow-hidden flex justify-center">
{/* <img src={item.original} className='object-cover cursor-pointer pointer-events-auto' alt={`Gallery Image ${index}`}/> */}
<Image
// placeholder="blur"
Expand Down
2 changes: 1 addition & 1 deletion components/toolbox/HeroCardSectionSimple.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const HeroCardSection = ({ post, tags, featuredImage, user }) => {
href={`/toolbox/${tag.attributes.slug}/page/1/`}
>
<button
className={` h-5 ${i<2?'flex':'hidden md:flex'} flex-col justify-center capitalize font-medium text-base px-1.5 tracking-tight cursor-pointer bg-[#e0e4ea] hover:bg-gray-300 hover:text-black transition transition-all duration-400 rounded-full text-black/50 text-[12px] font-base`}
className={` h-5 ${i<2?'flex':'hidden md:flex'} flex-col justify-center capitalize font-medium px-1.5 tracking-tight cursor-pointer bg-[#e0e4ea] hover:bg-gray-300 hover:text-black transition transition-all duration-400 rounded-full text-black/50 text-[12px] font-base`}
>
{tag.attributes.name}
</button>
Expand Down
6 changes: 3 additions & 3 deletions lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ export const NAV_OFFSET = 'pt-[84px]'
export const SIDEBAR_STICKY_OFFSET = 'pt-24'


export const TOTAL_STATIC_POSTS = process.env.NODE_ENV === 'production'?5000:2;
export const TOTAL_STATIC_NEWSLETTERS = process.env.NODE_ENV === 'production'?1000:2;
export const TOTAL_STATIC_NEWS = process.env.NODE_ENV === 'production'?50:2;
export const TOTAL_STATIC_POSTS = process.env.NODE_ENV === 'production'?2:2;
export const TOTAL_STATIC_NEWSLETTERS = process.env.NODE_ENV === 'production'?2:2;
export const TOTAL_STATIC_NEWS = process.env.NODE_ENV === 'production'?2:2;

export const jobTypes = [
{
Expand Down
9 changes: 5 additions & 4 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 @@ -188,7 +188,7 @@
"zod": "^3.23.8"
},
"optionalDependencies": {
"@prototypr/paper-interview": "0.0.31",
"@prototypr/paper-interview": "^0.0.32",
"@prototypr/prototypr-postie": "^1.0.91"
},
"resolutions": {
Expand Down
2 changes: 1 addition & 1 deletion pages/p/[slug].js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getUserArticle, getSlugFromArticleId } from "@/lib/api";
const EditorWrapper = dynamic(() => import("tiptypr/dist/EditorWrapper"), {
ssr: false
});
import 'tiptypr/dist/styles.css';
// import 'tiptypr/dist/styles.css';
import 'tippy.js/dist/svg-arrow.css';
import 'tippy.js/animations/scale-subtle.css';
import "react-datepicker/dist/react-datepicker.css";
Expand Down
11 changes: 6 additions & 5 deletions pages/toolbox/post/[id]/interview/[slug].js
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,22 @@ import { getUserArticle, getSlugFromArticleId } from "@/lib/api";
import useUser from "@/lib/iron-session/useUser";
import dynamic from 'next/dynamic';

import '@prototypr/paper-interview/dist/styles.css';
import 'tiptypr/dist/styles.css';

import 'tippy.js/dist/svg-arrow.css';
import 'tippy.js/animations/scale-subtle.css';
import "react-datepicker/dist/react-datepicker.css";
// import '@prototypr/paper-interview/dist/styles.css';
// import 'tiptypr/dist/styles.css';


const EditorWrapper = dynamic(() => import("tiptypr/dist/EditorWrapper"), {
ssr: false
});

// const InterviewEditor = dynamic(() => import("prototypr-packages/private/InterviewEditor/components/InterviewEditor"), {
// ssr: false
// });
const InterviewEditor = dynamic(() => import("@prototypr/paper-interview/dist/components/InterviewEditor"), {
// ssr: false
// });
const InterviewEditor = dynamic(() => import("@prototypr/paper-interview/dist/components/InterviewEditor"), {
ssr: false
});

Expand Down
2 changes: 1 addition & 1 deletion pages/write.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import dynamic from "next/dynamic";
const EditorWrapper = dynamic(() => import("tiptypr/dist/EditorWrapper"), {
ssr: false
});
import 'tiptypr/dist/styles.css';
// import 'tiptypr/dist/styles.css';
import 'tippy.js/dist/svg-arrow.css';
import 'tippy.js/animations/scale-subtle.css';
import "react-datepicker/dist/react-datepicker.css";
Expand Down
Loading

0 comments on commit 53a4403

Please sign in to comment.