Update currency and gold rates API responses, enhance views, and improve branding

- Updated API responses for currency and gold rates to include the latest data and improved metadata, ensuring accurate and informative responses.
- Added a new view for displaying currency rates, enhancing the user interface with dynamic data presentation.
- Updated the welcome view to integrate the new currency display and improved layout for better user experience.
- Changed the logo in the Scribe configuration to a new light SVG for better visual consistency.
- Enhanced styling in the welcome view and currency display for a modern look and feel.

These changes collectively improve the functionality, usability, and branding of the Truncgil Finance application.
This commit is contained in:
Ümit Tunç
2025-01-21 18:05:33 +03:00
parent c478be2f3f
commit e2684ef05a
7 changed files with 232 additions and 36 deletions
+27 -5
View File
@@ -1,26 +1,48 @@
<!-- See https://github.com/stoplightio/elements/blob/main/docs/getting-started/elements/elements-options.md for config -->
<!doctype html>
<html lang="en">
<html lang="en" class="dark">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Truncgil Finance</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">
<script src="https://unpkg.com/@stoplight/elements@9.0.0/web-components.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/@stoplight/elements@9.0.0/styles.min.css">
<style>
body {
height: 100vh;
}
elements-api {
--elements-border-radius: 6px;
}
.sl-inline img {
width: 400px;
margin: 0 auto;
display: block;
}
.sl-prose p {
font-size: var(--fs-paragraph);
margin-bottom: 1em;
margin-top: 1em;
}
.sl-text-base {
font-size: 16px;
}
</style>
</head>
<body>
asdadas
<elements-api
apiDescriptionUrl="{{ route("scribe.openapi") }}"
router="hash"
layout="responsive"
appearance="auto"
hideTryIt=""
logo="img/icons/icon-128x128.png"
logo="img/logo-light.svg"
/>
<script>
@@ -28,7 +50,7 @@ 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
// 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>