Skip to content

Commit 7b9038d

Browse files
committed
refactor: Remove unused <img> and <iframe>
1 parent cb59ebc commit 7b9038d

File tree

16 files changed

+21
-139
lines changed

16 files changed

+21
-139
lines changed

examples/app-router-showcase/app/discussion-forum-advanced/page.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -108,18 +108,6 @@ export default function DiscussionForumAdvancedPage() {
108108
and the band played all their hits.
109109
</p>
110110

111-
<div className="my-4">
112-
<img
113-
src="https://example.com/concert-photo1.jpg"
114-
alt="Concert photo 1"
115-
className="mb-2"
116-
/>
117-
<img
118-
src="https://example.com/concert-photo2.jpg"
119-
alt="The main stage"
120-
/>
121-
</div>
122-
123111
<div className="my-4 bg-gray-100 p-4 rounded">
124112
<h3>Shared Link:</h3>
125113
<a href="https://example.com/concert-tickets">

examples/app-router-showcase/app/employer-aggregate-rating-advanced/page.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ export default function EmployerAggregateRatingAdvancedPage() {
4747
<div className="max-w-4xl mx-auto">
4848
<header className="mb-8">
4949
<div className="flex items-center gap-6 mb-6">
50-
<img
51-
src="https://example.com/techcorp-logo.png"
52-
alt="TechCorp International"
53-
className="w-24 h-24 object-contain"
54-
/>
5550
<div>
5651
<h1 className="text-4xl font-bold">TechCorp International</h1>
5752
<p className="text-xl text-gray-600">

examples/app-router-showcase/app/image-advanced/page.tsx

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,16 @@ export default function ImageAdvancedPage() {
3232
Sunset Landscape - Premium Photography
3333
</h1>
3434

35-
<div className="mb-8">
36-
<img
37-
src="https://example.com/photos/sunset-landscape.jpg"
38-
alt="Beautiful sunset landscape"
39-
className="w-full rounded-lg shadow-lg"
40-
/>
35+
<div className="mb-8 bg-gray-200 rounded-lg p-16 text-center">
36+
<p className="text-gray-600">Image placeholder: Sunset Landscape</p>
4137
</div>
4238

4339
<div className="bg-gray-100 p-6 rounded-lg mb-6">
4440
<h2 className="text-xl font-semibold mb-4">Studio Information</h2>
4541
<div className="flex items-start space-x-4 mb-4">
46-
<img
47-
src="https://example.com/photolab-logo.jpg"
48-
alt="PhotoLab Studios"
49-
className="w-16 h-16 rounded"
50-
/>
42+
<div className="w-16 h-16 rounded bg-gray-300 flex items-center justify-center">
43+
<span className="text-gray-600 text-xs">Logo</span>
44+
</div>
5145
<div>
5246
<h3 className="font-semibold">PhotoLab Studios</h3>
5347
<p className="text-gray-600">

examples/app-router-showcase/app/image-multiple/page.tsx

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,9 @@ export default function ImageMultiplePage() {
5151
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
5252
{/* Mountain Sunrise */}
5353
<div className="bg-white rounded-lg shadow-lg overflow-hidden">
54-
<img
55-
src="https://example.com/photos/mountain-sunrise.jpg"
56-
alt="Mountain sunrise"
57-
className="w-full h-48 object-cover"
58-
/>
54+
<div className="w-full h-48 bg-gray-200 flex items-center justify-center">
55+
<p className="text-gray-600">Mountain Sunrise</p>
56+
</div>
5957
<div className="p-4">
6058
<h3 className="font-semibold mb-2">Mountain Sunrise</h3>
6159
<dl className="text-sm space-y-1">
@@ -83,11 +81,9 @@ export default function ImageMultiplePage() {
8381

8482
{/* Ocean Waves */}
8583
<div className="bg-white rounded-lg shadow-lg overflow-hidden">
86-
<img
87-
src="https://example.com/photos/ocean-waves.jpg"
88-
alt="Ocean waves"
89-
className="w-full h-48 object-cover"
90-
/>
84+
<div className="w-full h-48 bg-gray-200 flex items-center justify-center">
85+
<p className="text-gray-600">Ocean Waves</p>
86+
</div>
9187
<div className="p-4">
9288
<h3 className="font-semibold mb-2">Ocean Waves</h3>
9389
<dl className="text-sm space-y-1">
@@ -123,19 +119,15 @@ export default function ImageMultiplePage() {
123119

124120
{/* City Lights */}
125121
<div className="bg-white rounded-lg shadow-lg overflow-hidden">
126-
<img
127-
src="https://example.com/photos/city-lights.jpg"
128-
alt="City lights"
129-
className="w-full h-48 object-cover"
130-
/>
122+
<div className="w-full h-48 bg-gray-200 flex items-center justify-center">
123+
<p className="text-gray-600">City Lights</p>
124+
</div>
131125
<div className="p-4">
132126
<h3 className="font-semibold mb-2">City Lights</h3>
133127
<div className="flex items-center space-x-2 mb-2">
134-
<img
135-
src="https://example.com/urban-photo-logo.jpg"
136-
alt="Urban Photography Inc."
137-
className="w-8 h-8 rounded"
138-
/>
128+
<div className="w-8 h-8 rounded bg-gray-300 flex items-center justify-center">
129+
<span className="text-gray-600 text-xs">U</span>
130+
</div>
139131
<span className="font-medium text-sm">
140132
Urban Photography Inc.
141133
</span>

examples/app-router-showcase/app/image/page.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@ export default function ImagePage() {
1515
<div className="max-w-4xl mx-auto">
1616
<h1 className="text-3xl font-bold mb-6">Black Labrador Puppy</h1>
1717

18-
<div className="mb-8">
19-
<img
20-
src="https://example.com/photos/black-labrador-puppy.jpg"
21-
alt="Black labrador puppy"
22-
className="w-full rounded-lg shadow-lg"
23-
/>
24-
</div>
25-
2618
<div className="bg-gray-100 p-6 rounded-lg">
2719
<h2 className="text-xl font-semibold mb-4">Image Information</h2>
2820
<dl className="grid grid-cols-1 sm:grid-cols-2 gap-4">

examples/app-router-showcase/app/product-review/page.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,6 @@ export default function ProductReviewPage() {
8787

8888
<div className="mb-8">
8989
<div className="flex items-center gap-4 mb-4">
90-
<img
91-
src="https://ui-avatars.com/api/?name=Pascal+Van+Cleeff&size=48"
92-
alt="Pascal Van Cleeff"
93-
className="rounded-full w-12 h-12"
94-
/>
9590
<div>
9691
<p className="font-semibold">Pascal Van Cleeff</p>
9792
<p className="text-sm text-gray-600">

examples/app-router-showcase/app/product-with-return-policy/page.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,6 @@ export default function ProductWithReturnPolicyPage() {
5555

5656
<div className="max-w-4xl mx-auto">
5757
<div className="grid md:grid-cols-2 gap-8 mb-8">
58-
<div>
59-
<img
60-
src="https://via.placeholder.com/400x400"
61-
alt="Premium Wireless Headphones"
62-
className="w-full rounded-lg"
63-
/>
64-
</div>
6558
<div>
6659
<h1 className="text-3xl font-bold mb-2">
6760
Premium Wireless Headphones

examples/app-router-showcase/app/profile-advanced/page.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ export default function AdvancedProfilePage() {
3636
<div className="max-w-4xl mx-auto">
3737
<div className="bg-white rounded-lg shadow-md p-8">
3838
<div className="flex items-center mb-6">
39-
<img
40-
src="https://example.com/avatars/ahuff23.jpg"
41-
alt="Angelo Huff"
42-
className="w-24 h-24 rounded-full mr-6"
43-
/>
4439
<div>
4540
<h1 className="text-3xl font-bold">Angelo Huff</h1>
4641
<p className="text-xl text-gray-600">@ahuff23</p>

examples/app-router-showcase/app/profile-organization/page.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ export default function OrganizationProfilePage() {
3939
<div className="max-w-4xl mx-auto">
4040
<div className="bg-white rounded-lg shadow-md p-8">
4141
<div className="flex items-center mb-6">
42-
<img
43-
src="https://techforum.example.com/logo.png"
44-
alt="TechForum Community"
45-
className="w-24 h-24 rounded-lg mr-6"
46-
/>
4742
<div>
4843
<h1 className="text-3xl font-bold">TechForum Community</h1>
4944
<p className="text-xl text-gray-600">@TechForum</p>

examples/app-router-showcase/app/vacation-rental-advanced/page.tsx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -148,19 +148,6 @@ export default function VacationRentalAdvancedPage() {
148148

149149
<h1 className="text-4xl font-bold mb-4">Luxury Ocean View Villa</h1>
150150

151-
<div className="mb-8 grid grid-cols-2 gap-4">
152-
<img
153-
src="https://example.com/images/villa-exterior.jpg"
154-
alt="Villa exterior"
155-
className="w-full h-64 object-cover rounded-lg"
156-
/>
157-
<img
158-
src="https://example.com/images/villa-ocean-view.jpg"
159-
alt="Ocean view"
160-
className="w-full h-64 object-cover rounded-lg"
161-
/>
162-
</div>
163-
164151
<div className="prose lg:prose-xl max-w-none">
165152
<h2>About this luxury villa</h2>
166153
<p>

0 commit comments

Comments
 (0)