Skip to content

Commit

Permalink
chore: update privado branding
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsaporiti committed Aug 1, 2024
1 parent b3e9cd6 commit 81259c3
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion api/api.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.1.0
info:
title: Polygon ID
title: Privado ID
description: |
Documentation for the Backend Verifier API
version: "1"
Expand Down
Binary file removed api/polygon.png
Binary file not shown.
Binary file added api/privadoid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 12 additions & 8 deletions api/spec.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,33 @@
<!doctype html>
<html>
<head>
<title>Polygon ID - Verifier Backend</title>
<title>Privado ID - Verifier API</title>
<meta charset="utf-8">
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
<script type="module" src="https://unpkg.com/rapidoc/dist/rapidoc-min.js"></script>
</head>
<body>
<rapi-doc
id = "the-doc"
id = "the-doc"
spec-url="/static/docs/api/api.yaml"
theme = "light"
regular-font = "Nunito"
primary-color = "#7F56D9"
primary-color = "#93f598"
allow-spec-url-load = false
allow-spec-file-load = false
show-header = false
render-style = "read"
show-method-in-nav-bar = "as-colored-text"
navigation-item-text = path
render-style = "focused"
layout = "row"
allow-authentication = true
sort-endpoints-by="summary"
>
<!-- <img slot="nav-logo" src="{logo}" style="width:50px; height:50px"/>-->
<img
slot="nav-logo"
src="https://docs.privado.id/img/privado_logo.svg"
width="100px"
height="100px"
/>
</rapi-doc>

<script>
window.addEventListener('DOMContentLoaded', () => {
const rapidocEl = document.getElementById('the-doc');
Expand Down
2 changes: 1 addition & 1 deletion internal/api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ func documentation(w http.ResponseWriter, _ *http.Request) {
}

func favicon(w http.ResponseWriter, _ *http.Request) {
writeFile("api/polygon.png", "image/png", w)
writeFile("api/privadoid.png", "image/png", w)
}

func swagger(w http.ResponseWriter, _ *http.Request) {
Expand Down

0 comments on commit 81259c3

Please sign in to comment.