Skip to content

Commit e9e0616

Browse files
Merge pull request #22 from officialblake/jacobs999-develop
2 parents 7c4268c + 53991ba commit e9e0616

File tree

2 files changed

+64
-4
lines changed

2 files changed

+64
-4
lines changed

src/App.css

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,3 +573,26 @@ canvas {
573573
height: 650px !important;
574574
overflow: visible !important;
575575
}
576+
577+
/* Confirm Transition Button Styles */
578+
.confirm-transition-button {
579+
font-size: 1.2rem !important;
580+
padding: 16px 32px !important;
581+
background: linear-gradient(135deg, var(--accent-color), var(--accent-light)) !important;
582+
font-weight: 600 !important;
583+
letter-spacing: 1.5px !important;
584+
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
585+
transform: scale(1.1) !important;
586+
margin: 15px 0 !important;
587+
}
588+
589+
.confirm-transition-button:hover {
590+
transform: scale(1.15) translateY(-2px) !important;
591+
box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3) !important;
592+
}
593+
594+
.confirm-transition-button:disabled {
595+
transform: scale(1) !important;
596+
background: var(--secondary-color) !important;
597+
opacity: 0.7 !important;
598+
}

src/Canvas.js

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,49 @@ const DfaNfaVisualizer = () => {
177177

178178
link.attr({
179179
line: {
180-
stroke: 'black',
181-
strokeWidth: 2,
182-
targetMarker: { type: 'path', d: 'M 10 -5 0 0 10 5 Z', fill: 'black' },
180+
stroke: 'var(--accent-color)',
181+
strokeWidth: 2.5,
182+
targetMarker: {
183+
type: 'path',
184+
d: 'M 12 -6 0 0 12 6 Z',
185+
fill: 'var(--accent-color)',
186+
stroke: 'var(--accent-color)'
187+
},
188+
strokeDasharray: '0',
189+
targetMarkerSize: 12,
183190
},
184191
});
185192
link.labels([{
186-
attrs: { text: { text: transitionLabel, fontSize: 14, fontWeight: 'bold' } },
193+
markup: [
194+
{
195+
tagName: 'rect',
196+
selector: 'body'
197+
},
198+
{
199+
tagName: 'text',
200+
selector: 'label'
201+
}
202+
],
203+
attrs: {
204+
label: {
205+
text: transitionLabel,
206+
fontSize: 15,
207+
fontWeight: 'bold',
208+
fontFamily: 'var(--font-family)',
209+
fill: '#000000',
210+
textAnchor: 'middle',
211+
textVerticalAnchor: 'middle'
212+
},
213+
body: {
214+
fill: '#FFFFFF',
215+
stroke: 'var(--accent-color)',
216+
strokeWidth: 2,
217+
width: 20,
218+
height: 22,
219+
x: -10, // Half of width to center
220+
y: -11 // Half of height to center
221+
}
222+
},
187223
position: 0.5,
188224
}]);
189225
link.addTo(graph);
@@ -888,6 +924,7 @@ const DfaNfaVisualizer = () => {
888924
/>
889925

890926
<button
927+
className="confirm-transition-button button"
891928
onClick={confirmTransition}
892929
disabled={!transitionSource || !transitionTarget || !transitionLabel}
893930
>

0 commit comments

Comments
 (0)