Skip to content

Commit

Permalink
OV-358: * use json instead of mock
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanchousina committed Sep 23, 2024
1 parent b4c2c50 commit f5694b8
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ import {
TabPanels,
Tabs,
} from '~/bundles/common/components/components.js';
// TODO: Make endpoint for this
import backgroundColors from '~/bundles/studio/data/bg-colors.json';
import backgroundImages from '~/bundles/studio/data/bg-images.json';

import { backgroundColors, backgroundImages } from '../../mock/bg-mock.js';
import { ColorCard, ImageCard } from './components/components.js';

const BackgroundsContent: React.FC = () => {
Expand Down

This file was deleted.

10 changes: 10 additions & 0 deletions frontend/src/bundles/studio/data/bg-colors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
"#FFE9D0",
"#FFFED3",
"#BBE9FF",
"#B1AFFF",
"#91DDCF",
"#F7F9F2",
"#E8C5E5",
"#F19ED2"
]
8 changes: 8 additions & 0 deletions frontend/src/bundles/studio/data/bg-images.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
"https://d2tm5q3cg1nlwf.cloudfront.net/city.webp",
"https://d2tm5q3cg1nlwf.cloudfront.net/wall_2.jfif",
"https://d2tm5q3cg1nlwf.cloudfront.net/wall.jpg",
"https://d2tm5q3cg1nlwf.cloudfront.net/sea.jfif",
"https://d2tm5q3cg1nlwf.cloudfront.net/school.jpg",
"https://d2tm5q3cg1nlwf.cloudfront.net/library.jfif"
]

0 comments on commit f5694b8

Please sign in to comment.