File size: 1,920 Bytes
4429dd7
 
a4baf52
870fd6a
4429dd7
 
a53d949
d948079
c7c5d0b
a4baf52
4429dd7
d302e1d
870fd6a
4429dd7
870fd6a
 
d302e1d
612a70d
870fd6a
 
 
 
0417ce9
 
5bde171
8fa2a81
0417ce9
 
 
f3a8a51
 
 
 
 
 
 
 
 
 
 
 
4429dd7
870fd6a
 
a4baf52
4429dd7
575ece4
db13c8b
a4baf52
4429dd7
a4baf52
f10c3ba
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# app.py

import gradio as gr

# Import style + tabs
from tab.style import custom_css
from tab.tab1to3_unified import get_tab1to3_unified
from tab.tab5_randomness_visualizer import get_tab5_randomness
from tab.tab6_noise_simulation import get_tab6_noise_simulation

# Build UI
with gr.Blocks(css=custom_css) as demo:

    # 🔐 Welcome Header & Note
    gr.Markdown(
        """
        <div style="background-color:#2a2a2a; padding: 15px; border-radius: 10px; border: 1px solid #444; text-align: center; font-size: 14px; color: #ddd;">
        ⚠️ <strong>Disclaimer:</strong> For demonstration & research use only. Not intended for production deployments.
        </div>
        """,
        elem_classes="centered-text"
    )
    gr.Markdown(
        """
        <div style="text-align: center">
            <h1 style="font-size: 20px; font-weight: bold; color:#a3c14a;">🛡️ QuantumCrypt: Quantum-Powered Cybersecurity Suite</h1>
        </div>
        """
    )
    gr.Markdown("""
        <div style="display: flex; justify-content: center;">
            <div style="text-align: center; display: inline-block;">
                <h3 style="font-size: 20px; line-height: 1.8; margin-top: 10px; color: #f0f0f0;">
                    Secure your communication with the next generation of cryptography.<br>
                    Generate quantum-safe keys, protect your messages with advanced encryption,<br>
                    and decode them seamlessly — all in one intuitive space.<br><br>
                    <em style="font-size: 18px; color: #ffa500;">Where quantum principles meet real-world security.</em>
                </h3>
            </div>
        </div>
        """)
    # 🧩 Tabs
    get_tab1to3_unified()
    get_tab5_randomness()

    # Footer
    gr.Markdown("Made by Ravi⚡️", elem_classes="centered-text")


# 🚀 Launch the app
if __name__ == "__main__":
    demo.launch(share=True)