c478be2f3f
- Updated the Scribe configuration to use a new theme and included a logo for better visual identity. - Enhanced the welcome view by linking to the new manifest and updating the background image source for improved accessibility. - Refactored API documentation to include updated response formats and example values, ensuring clarity and usability. - Improved the layout and structure of the Scribe documentation pages for a more responsive design. These changes collectively enhance the branding, accessibility, and usability of the Truncgil Finance application.
44 lines
1.5 KiB
PHP
44 lines
1.5 KiB
PHP
<!-- See https://github.com/stoplightio/elements/blob/main/docs/getting-started/elements/elements-options.md for config -->
|
|
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<title>{!! $metadata['title'] !!}</title>
|
|
<!-- Embed elements Elements via Web Component -->
|
|
<script src="https://unpkg.com/@stoplight/elements/web-components.min.js"></script>
|
|
<link rel="stylesheet" href="https://unpkg.com/@stoplight/elements/styles.min.css">
|
|
<style>
|
|
body {
|
|
height: 100vh;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<elements-api
|
|
@foreach($htmlAttributes as $attribute => $value)
|
|
{{-- Attributes specified first override later ones --}}
|
|
{!! $attribute !!}="{!! $value !!}"
|
|
@endforeach
|
|
apiDescriptionUrl="{!! $metadata['openapi_spec_url'] !!}"
|
|
router="hash"
|
|
layout="responsive"
|
|
hideTryIt="{!! ($tryItOut['enabled'] ?? true) ? '' : 'true'!!}"
|
|
@if(!empty($metadata['logo']))
|
|
logo="{!! $metadata['logo'] !!}"
|
|
@endif
|
|
/>
|
|
|
|
<script>
|
|
setTimeout(function() {
|
|
const linkElement = document.querySelector('a.sl-flex.sl-items-center.sl-px-4.sl-py-3.sl-border-t');
|
|
if (linkElement) {
|
|
linkElement.href = "https://truncgil.com"; // Yeni URL'yi buraya ekleyin
|
|
linkElement.innerHTML = '<img src="https://truncgil.com.tr/yatay.svg" alt="Truncgil Teknoloji">'; // Resim URL'sini ve alternatif metni buraya ekleyin
|
|
}
|
|
}, 1000); // 1 saniye gecikme
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|