diff --git a/bcst/themes/afternoon/css/main.css b/bcst/themes/afternoon/css/main.css new file mode 100644 index 0000000..abf9beb --- /dev/null +++ b/bcst/themes/afternoon/css/main.css @@ -0,0 +1,97 @@ +@font-face { + font-family: 'product'; + font-style: normal; + font-weight: 400; + src: local("Open Sans"), local("OpenSans"), url(https://fonts.gstatic.com/s/productsans/v5/HYvgU2fE2nRJvZ5JFAumwegdm0LZdjqr5-oayXSOefg.woff2) format("woff2"); } + +* { + font-family: product; } + +body { + margin: 0; + padding: 0; + height: 100%; + display: flex; + align-content: center; + justify-content: center; + align-items: flex-start; + flex-wrap: wrap; } + +html { + /* Google "digital art wallpaper" for wallpapers*/ + background: url(https://stormandsky.com/gif/14.gif) no-repeat center center fixed; + background-size: cover; + /* cover whole screen*/ + height: 100%; } + +h1 { + color: white; + width: 100%; + text-align: center; } + +#greeting { + font-size: 90px; + margin: 0; } + +#date { + font-size: 30px; } + +.container { + margin: 20px; + display: inline-block; } + .container ol { + list-style-type: none; } + .container ol .containerTitle { + font-size: 26px; + margin: 0; } + .container ol .link { + text-decoration: none; + color: white; } + .container ol .item { + padding-top: 5px; + padding-left: 5px; } + .container ol .line { + height: 3px; + width: 180px; } + +.s1Title { + background: linear-gradient(to right, #fc4a1a, #f7b733); + background-clip: text; + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + display: inline; } + +.s1Line { + background-image: linear-gradient(to right, #fc4a1a, #f7b733); } + +.s2Title { + background: linear-gradient(to right, #0072ff, #00c6ff); + background-clip: text; + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + display: inline; } + +.s2Line { + background-image: linear-gradient(to right, #0072ff, #00c6ff); } + +.s3Title { + background: linear-gradient(to right, #11998e, #38ef7d); + background-clip: text; + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + display: inline; } + +.s3Line { + background-image: linear-gradient(to right, #11998e, #38ef7d); } + +.s4Title { + background: linear-gradient(to right, #DD2476, #FF512F); + background-clip: text; + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + display: inline; } + +.s4Line { + background-image: linear-gradient(to right, #DD2476, #FF512F); } + +/*# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5jc3MiLCJzb3VyY2VzIjpbIm1haW4uc2NzcyIsIl92YXJpYWJsZXMuc2NzcyIsIl9wYWdlLnNjc3MiLCJfc2VjdGlvbnMuc2NzcyJdLCJzb3VyY2VzQ29udGVudCI6WyJAaW1wb3J0ICd2YXJpYWJsZXMnLCAncGFnZScsICdzZWN0aW9ucyciLCIvLyBjb250YWlucyB2YXJpYWJsZXMgJiBtaXhpbnNcblxuQG1peGluIGdyYWRUeHQgKCRjb2wxLCRjb2wyKSB7IFxuICAgIGJhY2tncm91bmQ6IGxpbmVhci1ncmFkaWVudCh0byByaWdodCwkY29sMSwkY29sMik7XG4gICAgYmFja2dyb3VuZC1jbGlwOiB0ZXh0O1xuICAgIC13ZWJraXQtYmFja2dyb3VuZC1jbGlwOiB0ZXh0O1xuICAgIC13ZWJraXQtdGV4dC1maWxsLWNvbG9yOiB0cmFuc3BhcmVudDtcbiAgICBkaXNwbGF5OiBpbmxpbmU7XG4gIH0iLCIvLyBAaW1wb3J0IFwiX3ZhcmlhYmxlcy5zY3NzXCI7XG5cbkBmb250LWZhY2Uge1xuICAgIGZvbnQtZmFtaWx5OiAncHJvZHVjdCc7XG4gICAgZm9udC1zdHlsZTogbm9ybWFsO1xuICAgIGZvbnQtd2VpZ2h0OiA0MDA7XG4gICAgc3JjOiBsb2NhbCgnT3BlbiBTYW5zJyksIGxvY2FsKCdPcGVuU2FucycpLCB1cmwoaHR0cHM6Ly9mb250cy5nc3RhdGljLmNvbS9zL3Byb2R1Y3RzYW5zL3Y1L0hZdmdVMmZFMm5SSnZaNUpGQXVtd2VnZG0wTFpkanFyNS1vYXlYU09lZmcud29mZjIpIGZvcm1hdCgnd29mZjInKTtcbn1cblxuKntmb250LWZhbWlseTogcHJvZHVjdDt9XG5cbmJ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Y29udGFpbmVye1xuICAgIG1hcmdpbjogMjBweDtcbiAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG5cbiAgICBvbHsgXG4gICAgICAgIGxpc3Qtc3R5bGUtdHlwZTogbm9uZTtcblxuICAgICAgICAuY29udGFpbmVyVGl0bGV7XG4gICAgICAgICAgICBmb250LXNpemU6IDI2cHg7XG4gICAgICAgICAgICBtYXJnaW46IDA7XG4gICAgICAgICAgICAvLyBAaW5jbHVkZSBncmFkVHh0KHJlZCwgb3JhbmdlKTtcbiAgICAgICAgfVxuXG4gICAgICAgIC5saW5re1xuICAgICAgICAgICAgdGV4dC1kZWNvcmF0aW9uOiBub25lO1xuICAgICAgICAgICAgY29sb3I6IHdoaXRlO1xuICAgICAgICB9XG5cbiAgICAgICAgLml0ZW0ge1xuICAgICAgICAgICAgcGFkZGluZy10b3A6IDVweDtcbiAgICAgICAgICAgIHBhZGRpbmctbGVmdDogNXB4O1xuICAgICAgICB9XG5cbiAgICAgICAgLmxpbmV7XG4gICAgICAgICAgICBoZWlnaHQ6IDNweDtcbiAgICAgICAgICAgIHdpZHRoOiAxODBweDtcbiAgICAgICAgICAgIC8vIGJhY2tncm91bmQtaW1hZ2U6IGxpbmVhci1ncmFkaWVudCh0byByaWdodCwgcmVkICwgb3JhbmdlKTtcbiAgICAgICAgfVxuICAgIH1cbn1cblxuXG4iLCIvLyBzZWN0aW9uIGNvbG9yc1xuXG4vL3NvY2lhbCBtZWRpYVxuLnMxVGl0bGUgeyBAaW5jbHVkZSBncmFkVHh0KCNmYzRhMWEsICNmN2I3MzMpOyB9XG4uczFMaW5lIHsgYmFja2dyb3VuZC1pbWFnZTogbGluZWFyLWdyYWRpZW50KHRvIHJpZ2h0LCAjZmM0YTFhICwgI2Y3YjczMyk7IH1cblxuLy9tZXNzYWdpbmdcbi5zMlRpdGxlIHsgQGluY2x1ZGUgZ3JhZFR4dCgjMDA3MmZmLCAjMDBjNmZmKTsgfVxuLnMyTGluZSB7IGJhY2t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index.html new file mode 100644 index 0000000..e1c2cdf --- /dev/null +++ b/bcst/themes/afternoon/index.html @@ -0,0 +1,60 @@ + + + + + + + + + + + + {{title}} + + + +

+

+ +
+
    +
  1. {{ tab1["title"] }}

  2. +
    + {% for link_name, url in tab1["bookmarks"].items() %} +
  3. {{link_name}}
  4. + {% endfor %} +
+
+ +
+
    +
  1. {{ tab2["title"] }}

  2. +
    + {% for link_name, url in tab2["bookmarks"].items() %} +
  3. {{link_name}}
  4. + {% endfor %} +
+
+ +
+
    +
  1. {{ tab3["title"] }}

  2. +
    + {% for link_name, url in tab3["bookmarks"].items() %} +
  3. {{link_name}}
  4. + {% endfor %} +
+
+ +
+
    +
  1. {{ tab4["title"] }}

  2. +
    + {% for link_name, url in tab4["bookmarks"].items() %} +
  3. {{link_name}}
  4. + {% endfor %} +
+
+ + + diff --git a/bcst/themes/afternoon/js/main.ts b/bcst/themes/afternoon/js/main.ts new file mode 100644 index 0000000..dc454b9 --- /dev/null +++ b/bcst/themes/afternoon/js/main.ts @@ -0,0 +1,20 @@ +function getOrdinalNum(n: any) { + return n + (n > 0 ? ['th', 'st', 'nd', 'rd'][(n > 3 && n < 21) || n % 10 > 3 ? 0 : n % 10] : ''); +} + +var today = new Date(); +var time = today.getHours() //time HH:MM +var date = getOrdinalNum(today.getDate()) //date x + ordinal number (th) + +const monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; + +document.querySelector('#date').innerHTML = monthNames[today.getMonth()] + ' ' + date + +var hour = today.getHours() +if (hour >= 08 && hour <= 11) { + document.querySelector('#greeting').innerHTML = 'Good Morning.' +} else if (hour >= 12 && hour <= 17){ + document.querySelector('#greeting').innerHTML = 'Good Afternoon.' +} else { + document.querySelector('#greeting').innerHTML = 'Good Evening.' +} \ No newline at end of file diff --git a/bcst/themes/afternoon/res/favicon.png b/bcst/themes/afternoon/res/favicon.png new file mode 100644 index 0000000..4457bb2 Binary files /dev/null and b/bcst/themes/afternoon/res/favicon.png differ diff --git a/bcst/themes/afternoon/res/images/wallpaper.gif b/bcst/themes/afternoon/res/images/wallpaper.gif new file mode 100644 index 0000000..3cc1753 Binary files /dev/null and b/bcst/themes/afternoon/res/images/wallpaper.gif differ diff --git a/bcst/themes/afternoon/res/placeholder.png b/bcst/themes/afternoon/res/placeholder.png new file mode 100644 index 0000000..1e7800e Binary files /dev/null and b/bcst/themes/afternoon/res/placeholder.png differ diff --git a/bcst/themes/afternoon/resources.json b/bcst/themes/afternoon/resources.json new file mode 100644 index 0000000..e730329 --- /dev/null +++ b/bcst/themes/afternoon/resources.json @@ -0,0 +1,40 @@ +{ + "title": "New Tab", + "tab1":{ + "title": "Social Media.", + "bookmarks":{ + "Facebook": "https://facebook.com/", + "Twitter" : "https://twitter.com/", + "Reddit" :"https://reddit.com/" + } + }, + "tab2":{ + "title": "Messaging.", + "bookmarks":{ + "Messenger":"https://messenger.com/", + "WhatsApp": "https://web.whatsapp.com/", + "Gmail":"https://gmail.com/" + } + }, + "tab3":{ + "title": "Developer.", + "bookmarks":{ + "Github":"https://github.com/", + "FCC News":"https://freecodecamp.org/news", + "Medium":"https://medium.com/", + "Stack Overflow": "https://stackoverflow.com/", + "Spotify Web":"https://open.spotify.com/" + } + }, + "tab4":{ + "title": "Routine.", + "bookmarks":{ + "The Verge":"https://theverge.com/", + "Android Police":"https://androidpolice.com/", + "Screenrant": "https://screenrant.com/", + "YouTube":"https://youtube.com/feed/subscriptions", + "DIM":"https://app.destinyitemmanager.com/" + } + } +} + diff --git a/gallery/README.md b/gallery/README.md index 382c1ed..bd12b65 100644 --- a/gallery/README.md +++ b/gallery/README.md @@ -30,3 +30,9 @@ *Description*: - Author: m_hrstv - Url: https://www.reddit.com/r/startpages/comments/etzaih/my_first_attempt_at_creating_a_starpage_from/ + +### afternoon +![Afternoon](afternoon.jpg) +*Description*: +- Author: anton25360 +- Url: https://github.com/anton25360/Startpage-live diff --git a/gallery/afternoon.jpg b/gallery/afternoon.jpg new file mode 100644 index 0000000..8dfe401 Binary files /dev/null and b/gallery/afternoon.jpg differ diff --git a/setup.py b/setup.py index b7961eb..2638372 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with open("README.md", "r") as readme: setuptools.setup( name="bcst", - version="0.0.7", + version="0.0.9", scripts=["bcst/bcst"], author="Loic Guegan", author_email="manzerbredes@mailbox.org",