sachithcheruvaturfynd commited on
Commit
d83f3e1
1 Parent(s): 771c079

Upload html_information2.py

Browse files
Files changed (1) hide show
  1. html_information2.py +73 -0
html_information2.py ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ html2 = """
2
+ <style>
3
+ body{
4
+ font-family: sans-serif;
5
+ }
6
+ h1{
7
+ font-weight: 100;
8
+ }
9
+ .container{
10
+ width: 100%;
11
+ display:block;
12
+ overflow:hidden;
13
+ }
14
+ .carousel{
15
+ display:block;
16
+ width: 100%;
17
+ height: 420px;
18
+ background: white;
19
+ overflow-x: scroll;
20
+ padding: 10px;
21
+ margin: 0;
22
+ white-space: nowrap;
23
+ border-top: 2px solid rgba(0, 0, 0, 0);
24
+ border-bottom: 2px solid rgba(0, 0, 0, 0);
25
+ }
26
+ .item {
27
+ display: inline-block;
28
+ overflow: hidden;
29
+ width: 250px;
30
+ margin: 0 10px;
31
+ height: calc(100%);
32
+ background: rgba(0, 0, 0, 0.05) no-repeat center center;
33
+ background-size: cover;
34
+ position: relative;
35
+ border-radius: 20px;
36
+ box-shadow: 0 0 10px #dfdfdf;
37
+ }
38
+ .item p {
39
+ padding: 10px; /* Reduced padding for less gap */
40
+ word-wrap: break-word; /* Ensures text breaks at word boundaries */
41
+ white-space: normal; /* Allows the text to wrap naturally */
42
+ overflow: hidden;
43
+ display: -webkit-box;
44
+ -webkit-line-clamp: 6;
45
+ -webkit-box-orient: vertical;
46
+ margin: 0;
47
+ text-align: center;
48
+ }
49
+ #image-container{
50
+ width: 100%;
51
+ height: 60%;
52
+ text-align:center;
53
+ font-size: 9em;
54
+ color: white;
55
+ overflow: hidden;
56
+ border-radius: 20px; /* Rounding the image corners */
57
+ }
58
+ #image-container img{
59
+ width: 90%;
60
+ height: 90%;
61
+ object-fit: contain;
62
+ border-radius: 20px; /* Ensures images are also rounded */
63
+ margin-bottom: 10px; /* Reduce margin for less space between image and text */
64
+ }
65
+
66
+ </style>
67
+ </head>
68
+ <body>
69
+ <div class="container">
70
+ <div class="carousel">
71
+
72
+
73
+ """