- Added a new favicon and manifest file for the Truncgil Finance application to enhance branding and user experience.

- 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.
This commit is contained in:
Ümit Tunç
2025-01-21 18:05:24 +03:00
parent 84b9182937
commit c478be2f3f
18 changed files with 126 additions and 49 deletions
+24 -10
View File
@@ -1,23 +1,37 @@
<!-- See https://github.com/stoplightio/elements/blob/main/docs/getting-started/elements/elements-options.md for config -->
<!doctype html>
<html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Truncgil Finance</title>
<meta charset="utf-8"/>
<meta
name="viewport"
content="width=device-width, initial-scale=1"/>
<!-- 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 {
margin: 0;
height: 100vh;
}
</style>
</head>
<body>
<elements-api
apiDescriptionUrl="{{ route("scribe.openapi") }}"
router="hash"
layout="responsive"
hideTryIt=""
logo="img/icons/icon-128x128.png"
/>
<script
id="api-reference"
data-url="{{ route("scribe.openapi") }}">
<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="Açıklama">'; // Resim URL'sini ve alternatif metni buraya ekleyin
}
}, 1000); // 1 saniye gecikme
</script>
<script src="https://cdn.jsdelivr.net/npm/@scalar/api-reference"></script>
</body>
</html>
+11 -2
View File
@@ -15,7 +15,6 @@
</style>
</head>
<body>
<elements-api
@foreach($htmlAttributes as $attribute => $value)
{{-- Attributes specified first override later ones --}}
@@ -23,12 +22,22 @@
@endforeach
apiDescriptionUrl="{!! $metadata['openapi_spec_url'] !!}"
router="hash"
layout="sidebar"
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>
File diff suppressed because one or more lines are too long