Skip to content

Commit 8007276

Browse files
committed
feat: Implement custom story generation feature with modal and URL references
1 parent 401cd88 commit 8007276

File tree

9 files changed

+890
-3
lines changed

9 files changed

+890
-3
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<script lang="ts">
2+
interface Props {
3+
onclick: () => void;
4+
}
5+
6+
let { onclick }: Props = $props();
7+
</script>
8+
9+
<button id="custom-story-button" class="own-project-button" onclick={onclick} title="Generate a story for your own project">
10+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
11+
<path d="M12 20h9"/>
12+
<path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"/>
13+
</svg>
14+
Own Project
15+
</button>
16+
17+
<style>
18+
.own-project-button {
19+
display: flex;
20+
align-items: center;
21+
gap: 0.4rem;
22+
padding: 0.5rem 1rem;
23+
background: rgba(123, 175, 212, 0.1);
24+
border: 1px solid rgba(123, 175, 212, 0.3);
25+
border-radius: 0.5rem;
26+
color: #7bafd4;
27+
font-size: 0.8rem;
28+
font-weight: 500;
29+
cursor: pointer;
30+
transition: all 0.2s ease;
31+
white-space: nowrap;
32+
}
33+
34+
.own-project-button:hover {
35+
background: rgba(123, 175, 212, 0.2);
36+
border-color: #7bafd4;
37+
transform: scale(1.05);
38+
}
39+
40+
.own-project-button:active {
41+
transform: scale(0.95);
42+
}
43+
</style>

0 commit comments

Comments
 (0)