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 53 54 55 56 57 58 59 60 | <! - - templates / index.html - - > { % extends "base.html" % } { % block head % } {{ super () }} <link href = "/static/styles/index.css" rel = "stylesheet" > { % endblock % } { % block main % } <div id = "front-panel" > <div class = 'wrapper1' > <div style = "position:relative;padding-top:57.25%;" > frameborder = "0" allowfullscreen style = "position:absolute;top:0;left:0;width:100%;height:100%;" >< / iframe> < / div> < / div> <div class = 'wrapper' > <div style = "position:relative;padding-top:56.25%;" > frameborder = "0" allowfullscreen style = "position:absolute;top:0;left:0;width:100%;height:100%;" >< / iframe> < / div> < / div> <div class = 'wrapper' > <div style = "position:relative;padding-top:56.25%;" > frameborder = "0" allowfullscreen style = "position:absolute;top:0;left:0;width:100%;height:100%;" >< / iframe> < / div> < / div> <div class = 'wrapper' > <div style = "position:relative;padding-top:56.25%;" > frameborder = "0" allowfullscreen style = "position:absolute;top:0;left:0;width:100%;height:100%;" >< / iframe> < / div> < / div> <div class = 'wrapper' > <div style = "position:relative;padding-top:56.25%;" > frameborder = "0" allowfullscreen style = "position:absolute;top:0;left:0;width:100%;height:100%;" >< / iframe> < / div> < / div> < / div> <div id = 'front-nav' > <img class = "left" src = "/static/images/left.png" / > <img class = "home" src = "/static/images/home.png" / > <img class = "right" src = "/static/images/right.png" / > < / div> <div id = "books" > < / div> { % endblock % } |
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 | / * static / styles / insex.css * / #front-panel{ background:lightgrey; margin - top: 1px ; display: grid; grid - template - columns: auto auto auto auto; grid - gap: 10px 10px ; padding: 10px ; } #front-panel .wrapper1 { grid - column: 1 / span 2 ; grid - row: 1 / span 2 ; } #front-nav{ text - align: center; background: lightgrey; margin - top: 1px ; padding: 5px 0 0 ; } #front-nav img{ height: 25px ; } #front-nav img:hover{ opacity: . 7 ; cursor: pointer; } @media only screen and ( max - width: 600px ){ #front-panel{ grid - template - columns: 100 % ; } } #books{ display: grid; grid - template - columns: auto auto auto auto; grid - gap: 15px ; margin - top: 20px ; } #books img{ width: 100 % ; border: 1px solid grey; } @media only screen and ( max - width: 600px ){ #books{ grid - template - columns: 100 % ; padding: 10px ; } } |
GitHub: "https://github.com/Sokhavuth/E-Learning
Heroku: https://khmerweb-elearning.herokuapp.com/