Skip to content

Commit

Permalink
adding favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
robbobfrh84 committed Sep 8, 2023
1 parent 8d949d8 commit e78db82
Show file tree
Hide file tree
Showing 14 changed files with 41 additions and 26 deletions.
Binary file added assets/favicon_io/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicon_io/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicon_io/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicon_io/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicon_io/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicon_io/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions assets/favicon_io/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
15 changes: 0 additions & 15 deletions assets/icon_dark.svg

This file was deleted.

25 changes: 19 additions & 6 deletions assets/icon_light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/light-grain2.png
Binary file not shown.
Binary file removed assets/light-grain3.png
Binary file not shown.
4 changes: 2 additions & 2 deletions css/vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
--hoverFade: 0.25s;

/* Colors */
--light: #FAF9F9;
--dark: #1C1814;
--light: #FAF9F9; /* rgb(250,249,249) */
--dark: #1C1814; /* rgb(28,24,20) */
--themeA: var(--light);
--themeB: var(--dark);
--light-bg: url('../assets/light-grain.png'); /* https://bg.siteorigin.com/?color=%23FAF9F9&pattern=beige_paper&blend=3&intensity=13&noise=0&invert=0&2x=0 */
Expand Down
7 changes: 5 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<!DOCTYPE html><html lang='en'>
<title>Color A.I.</title>
<link rel='icon' href='assets/icon_light.svg'>
<link rel='icon' href='assets/favicon_io/favicon-32x32.png'>
<head>
<meta charset='UTF-8'><meta http-equiv='X-UA-Compatible' content='ie=edge'>
<!-- <meta name="viewport" content="width=768, maximum-scale=1.0" /> -->
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicon_io/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicon_io/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicon_io/favicon-16x16.png">
<link rel="manifest" href="assets/favicon_io/site.webmanifest">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link rel='stylesheet' href='css/vars.css'>
<link rel='stylesheet' href='css/base_levels.css'>
Expand Down
15 changes: 14 additions & 1 deletion js/colorsResults.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,22 @@ function buildHTML(c){
colorElm.style.backgroundColor = c.rgb || ''
if (!c.rgb && c.name === "transparent") {
const resultColorTransparent = getComputedStyle(document.documentElement).getPropertyValue('--resultColorTransparent')
colorElm.style.backgroundImage =resultColorTransparent
colorElm.style.backgroundImage = resultColorTransparent
}

//
//
colorElm.addEventListener('click',()=>{
console.log('c:',c)
window["historical_"+_historyCnt].style.height = '1.5rem'
window["historical_"+_historyCnt].style.color = 'var(--themeB)'
window['historical_'+_historyCnt].style.paddingBottom = '1rem'

window["historical_"+_historyCnt].innerHTML = c.name + "--" + c.hex
})
//
//

containerElm.appendChild(colorElm)
window["colorsResult_"+_historyCnt].appendChild(containerElm)
}
Expand Down

0 comments on commit e78db82

Please sign in to comment.