a
    L9›f9  ã                   @   s8   d dl Z d dlZd dlmZ g d¢ZG dd„ deƒZdS )é    N)ÚHydraHeadApp)é   r   r   é   é   c                   @   s   e Zd Zddd„Zdd„ ZdS )ÚHomeAppúHydralit Explorerc                 K   s   | j  |¡ || _d S )N)Ú__dict__ÚupdateÚtitle)Úselfr
   Úkwargs© r   úE/Users/putuwistika/Documents/TRILAK/hydralit-example/apps/home_app.pyÚ__init__
   s    zHomeApp.__init__c              
   C   s  zªt jddd t jddd t  g d¢¡\}}}}}| d¡rL|  d¡ t  t¡\}}}}}|jtj 	dd	d
¡dd | 
d¡ t jddd t  t¡\}}}}}	|jtj 	dd	d¡dd | d¡ t  t¡\}}}}}	|jtj 	dd	d¡dd | d¡ t  t¡\}}}}}	|jtj 	dd	d¡dd | d¡ t  t¡\}}}}}	|jtj 	dd	d¡dd | d¡ t  t¡\}}}}}	|jtj 	dd	d¡dd | d¡ W nZ ty }
 z@t jtj 	dd	d¡dd t  d¡ t  d |
¡¡ W Y d }
~
n
d }
~
0 0 d S )NzT<h1 style='text-align:center;padding: 0px 0px;color:black;font-size:200%;'>Home</h1>T)Úunsafe_allow_htmlzù<h2 style='text-align: center;'>This example was written using the <a href = https://github.com/TangleSpace/hydralit>Hydralit</a> library. Sourecode for this example is located <a href = https://github.com/TangleSpace/hydralit-example>here</a>.</h2>)r   r   r   r   r   zThis will open a new tab and goz,https://hotstepper.readthedocs.io/index.htmlÚ.Ú	resourceszdata.pngéP   )Úwidthz“This explorer has multiple applications, each application could be run individually, however where is the fun in that? Below is a sample home page.z<br><br>zclassroom.pngé2   zéThis application is all credit to [streamlit cheat sheet](https://github.com/daniellewisDL/streamlit-cheat-sheet), this is an example of how quickly an existing application can be wrapped in a HydraHeadAPP class and used in Hydralit.zdenoise.pngzÉThis application is a quick look at some analysis of vessel queue data with discrete denoising using Sequency methods as provided by the [Hotstepper](https://github.com/TangleSpace/hotstepper) package.zsatellite.pngzÏThis application is all credit to [Solar-MACH](https://github.com/jgieseler/Solar-MACH), this is an example of how quickly an existing application can be wrapped in a HydraHeadAPP class and used in Hydralit.zbelgium.pngzÞThis application is all credit to [spacy-streamlit-demo](https://github.com/ines/spacy-streamlit-demo), this is an example of how quickly an existing application can be wrapped in a HydraHeadAPP class and used in Hydralit.ztaxi.pngzåThis application is all credit to [demo-uber-nyc-pickups](https://github.com/streamlit/demo-uber-nyc-pickups), this is an example of how quickly an existing application can be wrapped in a HydraHeadAPP class and used in Hydralit.zfailure.pngéd   zhAn error has occurred, someone will be punished for your inconvenience, we humbly request you try again.zError details: {})ÚstÚmarkdownÚcolumnsÚbuttonÚdo_redirectÚMENU_LAYOUTÚimageÚosÚpathÚjoinÚ	subheaderÚinfoÚ	ExceptionÚerrorÚformat)r   Zcol_header_logo_left_farZcol_header_logo_leftZcol_header_textZcol_header_logo_rightZcol_header_logo_right_farÚ_Zcol_logoZcol_textZcol_btnÚer   r   r   Úrun   s:    







zHomeApp.runN)r   )Ú__name__Ú
__module__Ú__qualname__r   r(   r   r   r   r   r      s   
r   )r   Ú	streamlitr   Úhydralitr   r   r   r   r   r   r   Ú<module>   s   