forked from toeverything/blocksuite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(presets): add cover page for AI slides (toeverything#6105)
- Loading branch information
Showing
6 changed files
with
163 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
95 changes: 95 additions & 0 deletions
95
packages/presets/src/fragments/copilot-panel/chat/templates/basic-cover.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
export const basicCover = () => ({ | ||
type: 'page', | ||
meta: { | ||
id: 'page:home', | ||
title: '', | ||
createDate: 1706086837052, | ||
tags: [], | ||
}, | ||
blocks: { | ||
type: 'block', | ||
id: 'QiBH29dycZ', | ||
flavour: 'affine:page', | ||
version: 2, | ||
props: { | ||
title: { | ||
'$blocksuite:internal:text$': true, | ||
delta: [], | ||
}, | ||
}, | ||
children: [ | ||
{ | ||
type: 'block', | ||
id: 'WZ9zUizVrs', | ||
flavour: 'affine:surface', | ||
version: 5, | ||
props: { | ||
elements: { | ||
DcoFASHQKI: { | ||
index: 'a1', | ||
seed: 1391437441, | ||
xywh: '[-83.54346701558063,-50.225603646128235,1600.17596435546875,179]', | ||
rotate: 0, | ||
text: { | ||
'affine:surface:text': true, | ||
delta: [ | ||
{ | ||
insert: 'section1.title', | ||
}, | ||
], | ||
}, | ||
color: '--affine-palette-line-black', | ||
fontSize: 128, | ||
fontFamily: 'blocksuite:surface:Poppins', | ||
fontWeight: '400', | ||
fontStyle: 'normal', | ||
textAlign: 'left', | ||
type: 'text', | ||
id: 'DcoFASHQKI', | ||
hasMaxWidth: false, | ||
}, | ||
}, | ||
}, | ||
children: [ | ||
{ | ||
type: 'block', | ||
id: 'Rb6xTvGyzU', | ||
flavour: 'affine:image', | ||
version: 1, | ||
props: { | ||
caption: 'background', | ||
sourceId: 'xeeMw2R2FtjRo2Q0H14rsCpImSR9-z54W_PDZUsFvJ8=', | ||
width: 1920, | ||
height: 1080, | ||
index: 'a0', | ||
xywh: '[-300.7451171875,-355.744140625,1920,1080]', | ||
rotate: 0, | ||
size: 938620, | ||
}, | ||
children: [], | ||
}, | ||
{ | ||
type: 'block', | ||
id: 'Pa1ZO7Udi-', | ||
flavour: 'affine:frame', | ||
version: 1, | ||
props: { | ||
title: { | ||
'$blocksuite:internal:text$': true, | ||
delta: [ | ||
{ | ||
insert: 'title', | ||
}, | ||
], | ||
}, | ||
background: '--affine-palette-transparent', | ||
xywh: '[-340.7451171875,-395.744140625,2000,1160]', | ||
index: 'a0', | ||
}, | ||
children: [], | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
}); |
145 changes: 0 additions & 145 deletions
145
packages/presets/src/fragments/copilot-panel/chat/templates/basic0.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters