Skip to content

Commit

Permalink
Hero images (#45)
Browse files Browse the repository at this point in the history
* Update images

* cut
  • Loading branch information
johnmosesman authored Apr 21, 2024
1 parent f64227b commit 8aae3fe
Show file tree
Hide file tree
Showing 7 changed files with 459 additions and 529 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
} from "@/lib/workflow-constants";
import { Step } from "@/components/shared/step-list";
import HeaderContent from "@/components/shared/header-content";
import SVG from "react-inlinesvg";

export default function EmbeddedPortal({
flatfileSpaceId,
Expand Down Expand Up @@ -81,6 +82,11 @@ export default function EmbeddedPortal({
</div>
</div>
</div>

<SVG
src={EMBEDDED_PORTAL_ITEM.heroUri}
className="w-full md:w-2/3 lg:w-1/4 md:mx-auto md:absolute md:left-[35%] md:top-[52%] lg:left-[50%] lg:top-[35%]"
/>
</div>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export default function Workspace({
</div>
<SVG
src={FILE_FEED_ITEM.heroUri}
className="w-full md:w-2/3 lg:w-1/2 md:mx-auto md:absolute md:left-[35%] md:top-[100%] lg:left-[40%] lg:top-[60%]"
className="w-full md:w-2/3 lg:w-1/3 md:mx-auto md:absolute md:left-[35%] md:top-[100%] lg:left-[50%] lg:top-[60%]"
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
PROJECT_ONBOARDING_ITEM,
SAMPLE_DATA_FILENAME,
} from "@/lib/workflow-constants";
import SVG from "react-inlinesvg";

export default function Workspace({ spaceId }: { spaceId: string }) {
const steps: Step[] = [
Expand Down Expand Up @@ -54,6 +55,11 @@ export default function Workspace({ spaceId }: { spaceId: string }) {
</div>
</div>
</div>

<SVG
src={PROJECT_ONBOARDING_ITEM.heroUri}
className="w-full md:w-2/3 lg:w-1/3 md:mx-auto md:absolute md:left-[35%] md:top-[52%] lg:left-[45%] lg:top-[35%]"
/>
</div>
);
}
75 changes: 0 additions & 75 deletions lib/services/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export class SeedService {
await this.upsertAttributes(userId);
await this.upsertCategories(userId);
await this.upsertSuppliers(userId);
// await this.upsertProducts(userId);
}

static async upsertAttributes(userId: string) {
Expand Down Expand Up @@ -918,80 +917,6 @@ export class SeedService {
return suppliers[randomIndex].id;
}

// static async upsertProducts(userId: string) {
// const attrs = [
// {
// externalProductId: "prod100",
// name: faker.commerce.product(),
// description: faker.commerce.productDescription(),
// price: 100,
// quantity: 1,
// imageUrl: "https://loremflickr.com/100/100?lock=7826533007753216",
// supplierId: await this.getRandomSupplierId(userId), // Random supplier
// categoryId: await this.getRandomCategoryId(userId), // Random category
// },
// {
// externalProductId: "prod200",
// name: faker.commerce.product(),
// description: faker.commerce.productDescription(),
// price: 100,
// quantity: 1,
// imageUrl: "https://loremflickr.com/100/100?lock=7826533007753216",
// supplierId: await this.getRandomSupplierId(userId), // Random supplier
// categoryId: await this.getRandomCategoryId(userId), // Random category
// },
// {
// externalProductId: "prod300",
// name: faker.commerce.product(),
// description: faker.commerce.productDescription(),
// price: 100,
// quantity: 1,
// imageUrl: "https://loremflickr.com/100/100?lock=7826533007753216",
// supplierId: await this.getRandomSupplierId(userId), // Random supplier
// categoryId: await this.getRandomCategoryId(userId), // Random category
// },
// {
// externalProductId: "prod400",
// name: faker.commerce.product(),
// description: faker.commerce.productDescription(),
// price: 100,
// quantity: 1,
// imageUrl: "https://loremflickr.com/100/100?lock=7826533007753216",
// supplierId: await this.getRandomSupplierId(userId), // Random supplier
// categoryId: await this.getRandomCategoryId(userId), // Random category
// },
// {
// externalProductId: "prod500",
// name: faker.commerce.product(),
// description: faker.commerce.productDescription(),
// price: 100,
// quantity: 1,
// imageUrl: "https://loremflickr.com/100/100?lock=7826533007753216",
// supplierId: await this.getRandomSupplierId(userId), // Random supplier
// categoryId: await this.getRandomCategoryId(userId), // Random category
// },
// ];

// for (const a of attrs) {
// await prismaClient.product.upsert({
// where: {
// userId_externalProductId: {
// userId,
// externalProductId: a.externalProductId,
// },
// },
// create: {
// ...a,
// userId,
// },
// update: {
// ...a,
// userId,
// },
// });
// }
// }

private static async upsertUser() {
const data = {
email: "[email protected]",
Expand Down
Loading

0 comments on commit 8aae3fe

Please sign in to comment.