Skip to content

Commit 1be3874

Browse files
committed
css
1 parent df602d0 commit 1be3874

16 files changed

+913
-1943
lines changed

frontend/.astro/types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
/// <reference types="astro/client" />
2-
/// <reference path="content.d.ts" />
2+
/// <reference path="content.d.ts" />

frontend/src/__tests__/App.contract.test.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ describe('App contract', () => {
4242
fireEvent.click(screen.getByRole('button', { name: 'Convert' }));
4343

4444
await waitFor(() => {
45-
expect(screen.getByText('Feed Generated Successfully!')).toBeInTheDocument();
46-
expect(screen.getByText('Your RSS feed is ready to use')).toBeInTheDocument();
45+
expect(screen.getByText('Your RSS feed is live!')).toBeInTheDocument();
46+
expect(
47+
screen.getByText('Drop it straight into your reader or explore the preview without leaving this page.')
48+
).toBeInTheDocument();
4749
});
4850
});
4951
});

frontend/src/__tests__/ResultDisplay.test.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,24 @@ describe('ResultDisplay', () => {
2222
render(<ResultDisplay result={mockResult} onClose={mockOnClose} />);
2323

2424
expect(screen.getByText('🎉')).toBeInTheDocument();
25-
expect(screen.getByText('Feed Generated Successfully!')).toBeInTheDocument();
26-
expect(screen.getByText('Your RSS feed is ready to use')).toBeInTheDocument();
25+
expect(screen.getByText('Your RSS feed is live!')).toBeInTheDocument();
26+
expect(screen.getByText('Drop it straight into your reader or explore the preview without leaving this page.')).toBeInTheDocument();
2727
});
2828

29-
it('should call onClose when close button is clicked', () => {
29+
it('should call onClose when convert-another button is clicked', () => {
3030
render(<ResultDisplay result={mockResult} onClose={mockOnClose} />);
3131

32-
const closeButton = screen.getByText('Close');
33-
fireEvent.click(closeButton);
32+
const resetButton = screen.getByRole('button', { name: 'Convert another website' });
33+
fireEvent.click(resetButton);
3434

3535
expect(mockOnClose).toHaveBeenCalled();
3636
});
3737

3838
it('should copy feed URL to clipboard when copy button is clicked', async () => {
3939
render(<ResultDisplay result={mockResult} onClose={mockOnClose} />);
4040

41-
const copyButton = screen.getByText('📋');
42-
fireEvent.click(copyButton);
41+
const copyLinkButton = screen.getByRole('button', { name: 'Copy feed link' });
42+
fireEvent.click(copyLinkButton);
4343

4444
await waitFor(() => {
4545
expect(navigator.clipboard.writeText).toHaveBeenCalledWith('feed:https://example.com/feed.xml');
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.loading {
2+
display: flex;
3+
flex-direction: column;
4+
align-items: center;
5+
justify-content: center;
6+
gap: 1rem;
7+
min-height: 40vh;
8+
color: var(--sl-color-text);
9+
}
10+
11+
.loadingSpinner {
12+
width: 2.5rem;
13+
height: 2.5rem;
14+
border-radius: 50%;
15+
border: 3px solid var(--sl-color-hairline);
16+
border-top-color: var(--sl-color-accent);
17+
animation: app-spin 0.8s linear infinite;
18+
}
19+
20+
@keyframes app-spin {
21+
0% {
22+
transform: rotate(0deg);
23+
}
24+
25+
100% {
26+
transform: rotate(360deg);
27+
}
28+
}

0 commit comments

Comments
 (0)