Skip to content

Commit

Permalink
logo
Browse files Browse the repository at this point in the history
  • Loading branch information
zainhoda committed Mar 21, 2023
1 parent 3d194d3 commit 7363ccb
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 27 deletions.
14 changes: 7 additions & 7 deletions docs/component_reference.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
<nav class="gradient-background top-0 left-0 z-20 w-full bg-white px-2 py-2.5 dark:border-gray-600 sm:px-4">
<div class="container mx-auto flex flex-wrap items-center justify-between">
<a href="/" class="flex items-center">
<img src="https://cdn.pycob.com/pycob_hex.png" class="mr-3 h-6 sm:h-9" style="filter: brightness(0) invert(1);" alt="Logo" />
<img src="https://cdn.pycob.com/pyvibe.png" class="mr-3 h-6 sm:h-9" alt="Logo" />
<span class="self-center whitespace-nowrap md:text-4xl font-semibold text-white">PyVibe</span>
</a>
<div class="flex md:order-2">
Expand Down Expand Up @@ -531,12 +531,12 @@
</div>
<div class="w-full border-t-0 bg-gray-700 pb-5 rounded-b-lg whitespace-nowrap overflow-x-scroll p-2">
<code class="text-gray-500">&gt;&gt;&gt;</code>
<code class="text-white" style="white-space: break-spaces">container.add_plainlink(text = 'Heres a link', url = 'https://www.pycob.com')</code>
<code class="text-white" style="white-space: break-spaces">container.add_plainlink(text = 'Heres a link', url = 'https://www.pyvibe.com')</code>
</div>
</div>
<div class="block p-6 mb-6 bg-white border border-gray-200 rounded-lg shadow-md hover:bg-gray-100 dark:bg-gray-800 dark:border-gray-700 dark:hover:bg-gray-700 overflow-x-auto max-w-fit mx-auto ">
<div class="flex flex-col h-full ">
<a class="" href="https://www.pycob.com">Heres a link</a>
<a class="" href="https://www.pyvibe.com">Heres a link</a>
</div>
</div>
<hr class="my-5 border-gray-300 w-full">
Expand Down Expand Up @@ -832,12 +832,12 @@
</div>
<div class="w-full border-t-0 bg-gray-700 pb-5 rounded-b-lg whitespace-nowrap overflow-x-scroll p-2">
<code class="text-gray-500">&gt;&gt;&gt;</code>
<code class="text-white" style="white-space: break-spaces">container.add_image(url = 'https://cdn.pycob.com/pycob_with_text_256.png', alt = 'Pycob logo')</code>
<code class="text-white" style="white-space: break-spaces">container.add_image(url = 'https://cdn.pycob.com/pyvibe.png', alt = 'PyVibe logo', classes = 'w-12')</code>
</div>
</div>
<div class="block p-6 mb-6 bg-white border border-gray-200 rounded-lg shadow-md hover:bg-gray-100 dark:bg-gray-800 dark:border-gray-700 dark:hover:bg-gray-700 overflow-x-auto max-w-fit mx-auto ">
<div class="flex flex-col h-full ">
<img class="max-w-fit h-auto rounded-lg " src="https://cdn.pycob.com/pycob_with_text_256.png" alt="Pycob logo">
<img class="max-w-fit h-auto rounded-lg w-12 " src="https://cdn.pycob.com/pyvibe.png" alt="PyVibe logo">
</div>
</div>
<hr class="my-5 border-gray-300 w-full">
Expand Down Expand Up @@ -3241,7 +3241,7 @@
Footer
</td>
<td class="px-6 py-4 whitespace-nowrap">
Footer()
Footer(title='Made with PyVibe', logo='https://cdn.pycob.com/pyvibe.png')
</td>
<td class="px-6 py-4 whitespace-nowrap">
Footer for the page
Expand Down Expand Up @@ -3474,7 +3474,7 @@
Optional String
</td>
<td class="px-6 py-4 whitespace-nowrap">
https://cdn.pycob.com/pycob_hex.png
https://cdn.pycob.com/pyvibe.png
</td>
<td class="px-6 py-4 whitespace-nowrap">
URL for the logo of the navbar
Expand Down
2 changes: 1 addition & 1 deletion docs/flask.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
<nav class="gradient-background top-0 left-0 z-20 w-full bg-white px-2 py-2.5 dark:border-gray-600 sm:px-4">
<div class="container mx-auto flex flex-wrap items-center justify-between">
<a href="/" class="flex items-center">
<img src="https://cdn.pycob.com/pycob_hex.png" class="mr-3 h-6 sm:h-9" style="filter: brightness(0) invert(1);" alt="Logo" />
<img src="https://cdn.pycob.com/pyvibe.png" class="mr-3 h-6 sm:h-9" alt="Logo" />
<span class="self-center whitespace-nowrap md:text-4xl font-semibold text-white">PyVibe</span>
</a>
<div class="flex md:order-2">
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
<nav class="gradient-background top-0 left-0 z-20 w-full bg-white px-2 py-2.5 dark:border-gray-600 sm:px-4">
<div class="container mx-auto flex flex-wrap items-center justify-between">
<a href="/" class="flex items-center">
<img src="https://cdn.pycob.com/pycob_hex.png" class="mr-3 h-6 sm:h-9" style="filter: brightness(0) invert(1);" alt="Logo" />
<img src="https://cdn.pycob.com/pyvibe.png" class="mr-3 h-6 sm:h-9" alt="Logo" />
<span class="self-center whitespace-nowrap md:text-4xl font-semibold text-white">PyVibe</span>
</a>
<div class="flex md:order-2">
Expand Down Expand Up @@ -217,7 +217,7 @@
<div id="marketing-banner" tabindex="-1" class="dark fixed z-50 flex flex-col md:flex-row justify-between w-[calc(100%-2rem)] p-4 -translate-x-1/2 border rounded-lg shadow-sm lg:max-w-7xl left-1/2 bottom-6 bg-gray-700 border-gray-600">
<div class="flex flex-col items-start mb-3 mr-4 md:items-center md:flex-row md:mb-0">
<a href="https://pypi.org/project/pyvibe/" class="flex items-center mb-2 border-gray-200 md:pr-4 md:mr-4 md:border-r md:mb-0 dark:border-gray-600">
<img src="https://cdn.pycob.com/pycob_hex.svg" class="h-6 mr-2" alt="Pycob Logo">
<img src="https://cdn.pycob.com/pyvibe.svg" class="h-6 mr-2" alt="Pycob Logo">
<span class="self-center text-lg font-semibold whitespace-nowrap dark:text-white">PyVibe</span>
</a>
<p class="flex items-center text-sm font-normal text-gray-500 dark:text-gray-400">Easily create styled web pages with Python</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
<nav class="gradient-background top-0 left-0 z-20 w-full bg-white px-2 py-2.5 dark:border-gray-600 sm:px-4">
<div class="container mx-auto flex flex-wrap items-center justify-between">
<a href="/" class="flex items-center">
<img src="https://cdn.pycob.com/pycob_hex.png" class="mr-3 h-6 sm:h-9" style="filter: brightness(0) invert(1);" alt="Logo" />
<img src="https://cdn.pycob.com/pyvibe.png" class="mr-3 h-6 sm:h-9" alt="Logo" />
<span class="self-center whitespace-nowrap md:text-4xl font-semibold text-white">PyVibe</span>
</a>
<div class="flex md:order-2">
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
<nav class="gradient-background top-0 left-0 z-20 w-full bg-white px-2 py-2.5 dark:border-gray-600 sm:px-4">
<div class="container mx-auto flex flex-wrap items-center justify-between">
<a href="/" class="flex items-center">
<img src="https://cdn.pycob.com/pycob_hex.png" class="mr-3 h-6 sm:h-9" style="filter: brightness(0) invert(1);" alt="Logo" />
<img src="https://cdn.pycob.com/pyvibe.png" class="mr-3 h-6 sm:h-9" alt="Logo" />
<span class="self-center whitespace-nowrap md:text-4xl font-semibold text-white">PyVibe</span>
</a>
<div class="flex md:order-2">
Expand Down
2 changes: 1 addition & 1 deletion generator/docs/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<div id="marketing-banner" tabindex="-1" class="dark fixed z-50 flex flex-col md:flex-row justify-between w-[calc(100%-2rem)] p-4 -translate-x-1/2 border rounded-lg shadow-sm lg:max-w-7xl left-1/2 bottom-6 bg-gray-700 border-gray-600">
<div class="flex flex-col items-start mb-3 mr-4 md:items-center md:flex-row md:mb-0">
<a href="https://pypi.org/project/pyvibe/" class="flex items-center mb-2 border-gray-200 md:pr-4 md:mr-4 md:border-r md:mb-0 dark:border-gray-600">
<img src="https://cdn.pycob.com/pycob_hex.svg" class="h-6 mr-2" alt="Pycob Logo">
<img src="https://cdn.pycob.com/pyvibe.svg" class="h-6 mr-2" alt="Pycob Logo">
<span class="self-center text-lg font-semibold whitespace-nowrap dark:text-white">PyVibe</span>
</a>
<p class="flex items-center text-sm font-normal text-gray-500 dark:text-gray-400">Easily create styled web pages with Python</p>
Expand Down
13 changes: 7 additions & 6 deletions generator/generate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ struct PageElement: Element {
Argument(name: "image", type: .optionalString, description: "The SEO image of the page", defaultValue: ""),
Argument(name: "additional_head", type: .optionalString, description: "Additional HTML to be added to the head of the page", defaultValue: ""),
Argument(name: "navbar", type: .navbar, description: "Navbar for the page", defaultValue: "Navbar(title='PyVibe App')"),
Argument(name: "footer", type: .footer, description: "Footer for the page", defaultValue: "Footer()"),
Argument(name: "footer", type: .footer, description: "Footer for the page", defaultValue: "Footer(title='Made with PyVibe', logo='https://cdn.pycob.com/pyvibe.png')"),
Argument(name: "components", type: .elements, description: "The components to be rendered on the page"),
]
let postInitPythonFunc: String? = nil
Expand Down Expand Up @@ -735,7 +735,7 @@ struct PlainLinkElement: Element {
let exampleCode: [ExampleCode] = [
ExampleCode(setup: nil, arguments: [
ExampleArgument(argumentName: "text", argumentValue: .string("Here's a link")),
ExampleArgument(argumentName: "url", argumentValue: .string("https://www.pycob.com"))
ExampleArgument(argumentName: "url", argumentValue: .string("https://www.pyvibe.com"))
])
]

Expand Down Expand Up @@ -868,8 +868,9 @@ struct ImageElement: Element {
let postInitPythonFunc: String? = nil
let exampleCode: [ExampleCode] = [
ExampleCode(setup: nil, arguments: [
ExampleArgument(argumentName: "url", argumentValue: .string("https://cdn.pycob.com/pycob_with_text_256.png")),
ExampleArgument(argumentName: "alt", argumentValue: .string("Pycob logo"))
ExampleArgument(argumentName: "url", argumentValue: .string("https://cdn.pycob.com/pyvibe.png")),
ExampleArgument(argumentName: "alt", argumentValue: .string("PyVibe logo")),
ExampleArgument(argumentName: "classes", argumentValue: .string("w-12"))
])
]

Expand Down Expand Up @@ -1238,7 +1239,7 @@ struct NavbarElement: Element {
"""
let arguments: [Argument] = [
Argument(name: "title", type: .string, description: "Title of the navbar"),
Argument(name: "logo", type: .optionalString, description: "URL for the logo of the navbar", defaultValue: "https://cdn.pycob.com/pycob_hex.png"),
Argument(name: "logo", type: .optionalString, description: "URL for the logo of the navbar", defaultValue: "https://cdn.pycob.com/pyvibe.png"),
Argument(name: "button_label", type: .optionalString, description: "Label for the button", defaultValue: "Sign In"),
Argument(name: "button_url", type: .optionalString, description: "URL for the button", defaultValue: "/auth/login"),
Argument(name: "button_svg", type: .optionalString, description: "SVG for the button", defaultValue: ""),
Expand Down Expand Up @@ -1270,7 +1271,7 @@ struct NavbarElement: Element {
<nav class="gradient-background top-0 left-0 z-20 w-full bg-white px-2 py-2.5 dark:border-gray-600 sm:px-4">
<div class="container mx-auto flex flex-wrap items-center justify-between">
<a href="/" class="flex items-center">
<img src="\(logo)" class="mr-3 h-6 sm:h-9" style="filter: brightness(0) invert(1);" alt="Logo" />
<img src="\(logo)" class="mr-3 h-6 sm:h-9" alt="Logo" />
<span class="self-center whitespace-nowrap md:text-4xl font-semibold text-white">\(title)</span>
</a>
<div class="flex md:order-2">
Expand Down
14 changes: 9 additions & 5 deletions spec/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"description" : "Navbar for the page"
},
{
"defaultValue" : "Footer()",
"defaultValue" : "Footer(title='Made with PyVibe', logo='https:\/\/cdn.pycob.com\/pyvibe.png')",
"name" : "footer",
"type" : "Footer",
"description" : "Footer for the page"
Expand Down Expand Up @@ -197,7 +197,7 @@
},
{
"argumentName" : "url",
"argumentValue" : "https:\/\/www.pycob.com"
"argumentValue" : "https:\/\/www.pyvibe.com"
}
]
}
Expand Down Expand Up @@ -318,11 +318,15 @@
"arguments" : [
{
"argumentName" : "url",
"argumentValue" : "https:\/\/cdn.pycob.com\/pycob_with_text_256.png"
"argumentValue" : "https:\/\/cdn.pycob.com\/pyvibe.png"
},
{
"argumentName" : "alt",
"argumentValue" : "Pycob logo"
"argumentValue" : "PyVibe logo"
},
{
"argumentName" : "classes",
"argumentValue" : "w-12"
}
]
}
Expand Down Expand Up @@ -1365,7 +1369,7 @@
"description" : "Title of the navbar"
},
{
"defaultValue" : "https:\/\/cdn.pycob.com\/pycob_hex.png",
"defaultValue" : "https:\/\/cdn.pycob.com\/pyvibe.png",
"name" : "logo",
"type" : "Optional String",
"description" : "URL for the logo of the navbar"
Expand Down
6 changes: 3 additions & 3 deletions src/pyvibe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1653,7 +1653,7 @@ class Navbar(Component):
Instead, use the `Page.add_navbar` method of the parent component.
"""
def __init__(self, title: str, logo: str = 'https://cdn.pycob.com/pycob_hex.png', button_label: str = 'Sign In', button_url: str = '/auth/login', button_svg: str = '', components: list = None):
def __init__(self, title: str, logo: str = 'https://cdn.pycob.com/pyvibe.png', button_label: str = 'Sign In', button_url: str = '/auth/login', button_svg: str = '', components: list = None):
self.title = title
self.logo = logo
self.button_label = button_label
Expand Down Expand Up @@ -1687,7 +1687,7 @@ def to_html(self):
<nav class="gradient-background top-0 left-0 z-20 w-full bg-white px-2 py-2.5 dark:border-gray-600 sm:px-4">
<div class="container mx-auto flex flex-wrap items-center justify-between">
<a href="/" class="flex items-center">
<img src="''' + self.logo + '''" class="mr-3 h-6 sm:h-9" style="filter: brightness(0) invert(1);" alt="Logo" />
<img src="''' + self.logo + '''" class="mr-3 h-6 sm:h-9" alt="Logo" />
<span class="self-center whitespace-nowrap md:text-4xl font-semibold text-white">''' + self.title + '''</span>
</a>
<div class="flex md:order-2">
Expand Down Expand Up @@ -1791,7 +1791,7 @@ class Page(Component):
Instead, use the `Page.add_page` method of the parent component.
"""
def __init__(self, title: str = '', description: str = '', image: str = '', additional_head: str = '', navbar: Navbar = Navbar(title='PyVibe App'), footer: Footer = Footer(), components: list = None):
def __init__(self, title: str = '', description: str = '', image: str = '', additional_head: str = '', navbar: Navbar = Navbar(title='PyVibe App'), footer: Footer = Footer(title='Made with PyVibe', logo='https://cdn.pycob.com/pyvibe.png'), components: list = None):
self.title = title
self.description = description
self.image = image
Expand Down

0 comments on commit 7363ccb

Please sign in to comment.