mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
[newPage: Buecherverleih] zipFile solved
This commit is contained in:
BIN
public/buecherverleih.zip
Normal file
BIN
public/buecherverleih.zip
Normal file
Binary file not shown.
BIN
public/etiketten.zip
Normal file
BIN
public/etiketten.zip
Normal file
Binary file not shown.
BIN
public/flyer.zip
Normal file
BIN
public/flyer.zip
Normal file
Binary file not shown.
@@ -89,22 +89,14 @@
|
||||
<img src="{{ asset('/img/etikett_bucherVerleih-min.jpg') }}" alt="Buch Etiketten"
|
||||
class="mb-4 object-cover h-64 rounded-md shadow-md">
|
||||
<div class="flex justify-center space-x-2">
|
||||
<!-- Download .jpg -->
|
||||
<x-button
|
||||
class="btn bg-blue-600 text-white py-2 px-4 rounded-md hover:bg-blue-700"
|
||||
download="Bücheretiketten" href="{{ asset('/img/etikett_bucherVerleih-min.jpg') }}">
|
||||
<p class="text-white">
|
||||
Download .jpg
|
||||
</p>
|
||||
</x-button>
|
||||
<!-- Download SourceFile -->
|
||||
<x-button
|
||||
class="btn bg-blue-600 text-white py-2 px-4 rounded-md hover:bg-blue-700"
|
||||
download="Bücheretiketten" href="{{ asset('/img/Bucheretiketten.pdf') }}">
|
||||
<p class="text-white">
|
||||
Download .pdf
|
||||
</p>
|
||||
</x-button>
|
||||
|
||||
<a download="true" href="{{url('download-etiketten')}}" class="btn bg-blue-600 text-white py-2 px-4 rounded-md hover:bg-blue-700"
|
||||
download="zip" href="{{ asset('public/buecherverleih.zip') }}">
|
||||
<p class="text-white">
|
||||
Download .zip
|
||||
</p>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -122,23 +114,20 @@
|
||||
</p>
|
||||
<img src="{{ asset('/img/flyerBuecherverleih-min.jpg') }}" alt="Flyer" class="mb-4 object-cover h-64 rounded-md shadow-md">
|
||||
<div class="flex space-x-2">
|
||||
<x-button
|
||||
class="btn bg-blue-600 text-white py-2 px-4 rounded-md hover:bg-blue-700"
|
||||
download="Flyer" href="{{ asset('/img/flyerBuecherverleih-min.jpg') }}">
|
||||
<p class="text-white">
|
||||
Download .jpg
|
||||
</p>
|
||||
</x-button>
|
||||
<x-button
|
||||
class="btn bg-blue-600 text-white py-2 px-4 rounded-md hover:bg-blue-700"
|
||||
download href="{{ asset('/img/source_file_Flyer.ai') }}">
|
||||
<p class="text-white">
|
||||
Download .ai
|
||||
</p>
|
||||
</x-button>
|
||||
|
||||
|
||||
|
||||
<a download="true" href="{{url('download-flyer')}}" class="btn bg-blue-600 text-white py-2 px-4 rounded-md hover:bg-blue-700"
|
||||
download="zip" href="{{ asset('public/buecherverleih.zip') }}">
|
||||
<p class="text-white">
|
||||
Download .zip
|
||||
</p>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- Lesezeichen -->
|
||||
<div class="flex flex-col items-center">
|
||||
<h2 class="text-2xl mb-2 text-orange-500">
|
||||
@@ -184,13 +173,13 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<x-button
|
||||
class="btn bg-blue-600 text-white py-2 px-4 rounded-md hover:bg-blue-700"
|
||||
download="B4S" href="{{ asset('/img/B4S-min.jpg') }}">
|
||||
<p class="text-white">
|
||||
Download .zip
|
||||
</p>
|
||||
</x-button>
|
||||
|
||||
<a download="true" href="{{url('download')}}" class="btn bg-blue-600 text-white py-2 px-4 rounded-md hover:bg-blue-700"
|
||||
download="zip" href="{{ asset('public/buecherverleih.zip') }}">
|
||||
<p class="text-white">
|
||||
Download .zip
|
||||
</p>
|
||||
</a>
|
||||
|
||||
<p class="text-lg mb-8 text-white">
|
||||
Um deinen
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
use App\Http\Livewire\News\InternArticleView;
|
||||
use Illuminate\Http\Request;
|
||||
use Laravel\Socialite\Facades\Socialite;
|
||||
use Illuminate\Support\Facades\Response;
|
||||
|
||||
Route::middleware([])
|
||||
->get('/bsc', \App\Http\Livewire\Specials\BalticSeaCircle::class)
|
||||
@@ -384,3 +385,51 @@ Route::middleware([
|
||||
});
|
||||
|
||||
Route::feeds();
|
||||
|
||||
Route::get('/download', function () {
|
||||
|
||||
// Get the file path from the public folder
|
||||
$filePath = public_path("buecherverleih.zip");
|
||||
|
||||
$filename = "buecherverleih.zip";
|
||||
|
||||
// Check if the file exists
|
||||
if (!file_exists($filePath)) {
|
||||
abort(404);
|
||||
}
|
||||
|
||||
// Generate a response with the file for download
|
||||
return Response::download($filePath, $filename);
|
||||
});
|
||||
|
||||
Route::get('/download-flyer', function () {
|
||||
|
||||
// Get the file path from the public folder
|
||||
$filePath = public_path("flyer.zip");
|
||||
|
||||
$filename = "flyer.zip";
|
||||
|
||||
// Check if the file exists
|
||||
if (!file_exists($filePath)) {
|
||||
abort(404);
|
||||
}
|
||||
|
||||
// Generate a response with the file for download
|
||||
return Response::download($filePath, $filename);
|
||||
});
|
||||
|
||||
Route::get('/download-etiketten', function () {
|
||||
|
||||
// Get the file path from the public folder
|
||||
$filePath = public_path("etiketten.zip");
|
||||
|
||||
$filename = "etiketten.zip";
|
||||
|
||||
// Check if the file exists
|
||||
if (!file_exists($filePath)) {
|
||||
abort(404);
|
||||
}
|
||||
|
||||
// Generate a response with the file for download
|
||||
return Response::download($filePath, $filename);
|
||||
});
|
||||
Reference in New Issue
Block a user