Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
11 kB
2
Indexable
<html>
    <head>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="preconnect" href="https://fonts.googleapis.com">
        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
        <link href="https://fonts.googleapis.com/css2?family=Ubuntu&display=swap" rel="stylesheet">
        <link rel="icon" href="/static/logo2.png" type="image/icon type">
        <script src="https://kit.fontawesome.com/aa223bae66.js" crossorigin="anonymous"></script>
        <title>
            BeginToCode
        </title>
    </head>
    <body bgcolor="#FFF" link="#F0A500" vlink="#F0A500" alink="#F0A500" onload="saveLogin()">
    <div id="navbar">
        <div id="toplinks">
        <a href=""><img src="/static/l.png" id="logo"></a>
        </div>
        <div id="navdiv">
        <nav id="navigation">
            <a href="{{url_for('login')}}" id="signon">Login</a>
        </nav>
    </div>
    </div>
    </div>
    <div id="head">
    <center>
        <p id="heading">
            print("Hello World!")
        </p><br>
    </center>
    </div>
    <div id="explore">
        <button type="button" class="button-solid" id="scrollback"><i class="fas fa-arrow-left fa-lg" id="backicon"></i></button>
        <button type="button" class="button-solid" id="scrollnext"><i class="fas fa-arrow-right fa-lg" id="backicon"></i></button>
        <div class="card">
            <div class="card__details">
            <center>
            <img src="/static/pylogo.png" id="pylogo">    
                <h4 align="center">Python Tutorials</h4>
            </center>
            </div>
        </div>
        <div class="card">
            <div class="card__details">
            <center>
            <img src="/static/tutlogo.png" id="tutlogo">
                <h4>Coding Playground</h4>
            </center>
        </div>
    </div>
        <div class="card">
            <div class="card__details">
            <center>
            <img src="/static/bloglogo.png" id="bloglogo">
                <h4>Blogs</h4>
            </center>
        </div>
    </div>
            <div class="card">
            <div class="card__details">
            <center>
            <img src="/static/pylogo.png" id="pylogo">
                <h4>Python Tutorials</h4>
            </center>
        </div>
    </div>
        <div class="card">
          <div class="card__details">
            <center>
            <img src="/static/tutlogo.png" id="tutlogo">
                <h4>Coding Playground</h4>
            </center>
        </div>
        </div>
        <div class="card">
            <div class="card__details">
            <center>
            <img src="/static/bloglogo.png" id="bloglogo">
                <h4>Blogs</h4>
            </center>
        </div>
    </div>
        <div class="card">
          <div class="card__details">
            <center>
            <img src="/static/pylogo.png" id="pylogo">
                <h4>Python Tutorials</h4>
            </center>
        </div>
    </div>
        <div class="card">
            <div class="card__details">
            <center>
            <img src="/static/tutlogo.png" id="tutlogo">
                <h4>Coding Playground</h4>
            </center>
        </div>
    </div>
        <div class="card">
            <div class="card__details">
            <center>
            <img src="/static/bloglogo.png" id="bloglogo">
                <h4>Blogs</h4>
            </center>
        </div>
        </div>    
        <div class="card">
            <div class="card__details">
            <center>
            <img src="/static/pylogo.png" id="pylogo">
                <h4>Python Tutorials</h4>
            </center>
        </div>
        </div>    
    </div>
    <div id="bottombar">
        <div id="contactbot"><B>Contact Devs.</B></div>
        <div id="disbot"><a href="https://discord.gg/pQyUxAzWxz"><i class='fab fa-discord'></i></a></div>
    </div>
    </body>
    <script>
        function saveLogin(){
            if("{{save_login}}"=="True"){
                localStorage.setItem("btc_usr","{{username}}");
                document.getElementById("navigation").innerHTML="";
                usrname=localStorage.getItem("btc_usr")
                localStorage.setItem("login","true");
                anchor=document.createElement("a");
                anchor.setAttribute("href","/profile/"+usrname);
                anchor.innerHTML=usrname;
                document.getElementById("navigation").appendChild(anchor);
            }
            if(localStorage.getItem("login")=="true")
            {
                document.getElementById("navigation").innerHTML="";
                usrname=localStorage.getItem("btc_usr")
                anchor=document.createElement("a");
                anchor.setAttribute("href","/profile/"+usrname);
                anchor.innerHTML=usrname;
                document.getElementById("navigation").appendChild(anchor);
            }
        }
        const button = document.getElementById('scrollnext');
        button.onclick = function () {
          document.getElementById('explore').scrollLeft += 450;
        };
        const buttoon = document.getElementById('scrollback');
        buttoon.onclick = function () {
          document.getElementById('explore').scrollLeft -= 450;
        };

    </script>
    <style>
        #explore
        {
            position: absolute;
            left: 5%;
            right: 5%;
            top: 38%;
            height: 50%;
            width: 90%;
            overflow-x: scroll;
            display: flex;
            flex-direction: row;
            gap: 6.5%;
        }
        .card
        {
            height: 90%;
            min-width: 150px;
            width: 15%;
            max-width: 300px;
            background-color: #082032;
            color: #F0A500;
            transition: 0.3s;
            border-radius: 10px;
            min-height: 200px;
            max-height: 400px;
            margin-top: 2vh;
        }
        ::-webkit-scrollbar {
            width: 0;  /* Remove scrollbar space */
            background: transparent;  /* Optional: just make scrollbar invisible */
        }
        /* Optional: show position indicator in red */
        ::-webkit-scrollbar-thumb {
            background: #F0A500;
        }
        #heading{
            color: #F0A500;
            white-space: nowrap;
            overflow: hidden;
            width: 15em;
            font-size: 5vw;
            animation: linearwipe 2s steps(60, end); 
        }
        .fa-sign-in-alt{
            color: #F0A500;
        }
        #logo{
            height: 100%;
            width: auto;
        }
        #logotitle{
            height: 75%;
            width: auto;
        }
        a{
            text-decoration: none;
            align-items: center;
        }
        #navigation{
            display: flex;
            flex-direction: row;
            gap:20%;
            width: 100px;
            height: 100%;
        }
        input{
            border-radius: 5px;
            border-style: none;
            padding: 5px;
            background-color: #082032;
            color:  #F0A500;
        }
        @keyframes linearwipe{ 
        from { width: 0; } 
        }
        #navdiv{
            position: absolute;
            right: 0%;
            width: 20%;
            height: 100%;
            z-index:9999999;
            display: inline-block;
        }
        body{
        font-family: 'Ubuntu', sans-serif;
        }
        #head{
            position: absolute;
            left: 0px;
            top: 9%;
            padding-top: 1%;
            height: 23%;
            width: 100%;
            background-color: #082032;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        #navbar{
            position: fixed;
            padding-top: 1%;
            padding-bottom: 1%;
            background-color: #082032;
            top: 0%;
            height: 9%;
            display: flex;
            flex-direction: row;
            align-content: center;
            left: 0%;
            width: 100%;
            align-items: center;
            z-index:9999999;
        }
        #bottombar{
            position: fixed;
            background-color: #082032;
            bottom: 0%;
            height: 9%;
            color:  #F0A500;
            align-content: center;
            left: 0%;
            width: 100%; 
        }
        #contactbot{
            position: relative;
            width: 100%;
            top: 20%;
            height: 30%;
            text-align: center;
        }
        #disbot{
            position: relative;
            width: 100%;
            height: 30%;
            bottom: -20%;
            text-align: center;
        }
        #pylogo{
            width: 100%;
            margin-top: 10%;
        }
        #tutlogo{
            width: 90%;
            margin-top: 15%;
        }
        #bloglogo{
            width: 90%;
            margin-top: 15%;
            border-radius: 10px 10px 10px 10px;
        }
        #scrollback{
            position: fixed;
            left: 1%;
            margin-top: 12.5vh;
            background: #082032;            
            color: #F0A500;
            height: 75px;
            width: 75px;  
            border-radius: 50%;
            padding-left: 0px;
            padding-right: 0px; 
            border: none;                          
        }
        #scrollnext{
            position: fixed;
            right: 1%;
            margin-top: 12.5vh;
            background: #082032;            
            color: #F0A500;
            height: 75px;
            width: 75px;  
            border-radius: 50%;
            padding-left: 0px;
            padding-right: 0px;
            border: none;              
        }
        #scrollback:hover{
            background-color: #F0A500;
            color: #082032;
            cursor: pointer;
        }
        #scrollnext:hover{
            background-color: #F0A500;
            color: #082032;
            cursor: pointer;
        }        
        .card:hover{
            background-color: #ff9912;
            color: #082032;
            cursor: pointer;
        }
        .card__details{
            margin-top: 3.4vh;
        }
        #logo{
            min-width: 50px;
            max-width: 300px;
            height: auto;
            width: 100%;
        }
    </style>
</html>