Skip to content

Commit

Permalink
add favicon & brand logo
Browse files Browse the repository at this point in the history
  • Loading branch information
mm-vasyl committed Sep 11, 2024
1 parent 5229683 commit 8d50f64
Show file tree
Hide file tree
Showing 12 changed files with 40 additions and 10 deletions.
Binary file added src/preview/dist/Favicon_black_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 src/preview/dist/Monks-Logo_Small_White.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/preview/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<!-- <link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> -->
<link rel="icon" href="Favicon_black_32X32.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<!-- <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> -->
Expand Down
4 changes: 2 additions & 2 deletions src/preview/dist/js/index_bundle.js

Large diffs are not rendered by default.

Binary file added src/preview/public/Favicon_black_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 src/preview/public/Monks-Logo_Small_White.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/preview/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<!-- <link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> -->
<link rel="icon" href="Favicon_black_32X32.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<!-- <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> -->
Expand Down
18 changes: 14 additions & 4 deletions src/preview/src/components/Previews.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,17 +192,27 @@ export default function Previews({ data }) {
<>
<AppBar position="sticky">
<Toolbar className={styles.toolbar}>
<Box sx={{ display: 'flex', gap: '10px' }}>
<Box sx={{ display: 'flex', alignItems: 'center' }}>
{
data.isGoogleSpreadsheetBanner
? <Tooltip title="Reload dynamic data">
<Button onClick={handleReloadDynamicData} color="inherit">
? <Tooltip title="Reload dynamic data" sx={{marginRight: "10px"}}>
<Button className="dynamic-reload" onClick={handleReloadDynamicData} color="inherit">
<CachedIcon />
</Button>
</Tooltip>
: <></>
}
<Tooltip title={(new Date(data.timestamp)).toLocaleString()}>
<Box className="logos" display="flex" gap="0px" alignItems="center">
<img src="Monks-Logo_Small_White.png" />
{
(pageAds.length > 0 && pageAds[0].client) &&
<Box display="flex" gap="10px" alignItems="center" sx={{marginRight: "10px"}}>
<span>&times;</span>
<img src={pageAds[0].client} />
</Box>
}
</Box>
<Tooltip title={(new Date(data.timestamp)).toLocaleString()} sx={{marginLeft: "10px"}}>
<Typography align="left" variant="h5" component="div">
Preview
</Typography>
Expand Down
15 changes: 15 additions & 0 deletions src/preview/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,18 @@ code {
}
}
}

.logos img {
height: 30px;
}

.logos span {
height: 36px;
line-height: 36px;
}

.dynamic-reload {
height: 36px !important;
min-width: auto !important;
aspect-ratio: 1 / 1 !important;
}
3 changes: 3 additions & 0 deletions src/webpack/buildPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ module.exports = async function buildPreview(result, qualities, outputDir) {
},
info: (result && result[bundleName])
? result[bundleName].settings.data.settings.info
: undefined,
client: (result && result[bundleName])
? result[bundleName].settings.data.settings.client
: undefined
}
})
Expand Down
3 changes: 2 additions & 1 deletion src/webpack/devServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ ${chalk.grey.bold('-------------------------------------------------------')}
url,
},
},
info: e.data.settings.info
info: e.data.settings.info,
client: e.data.settings.client,
}
})
})
Expand Down
3 changes: 2 additions & 1 deletion src/webpack/devServerParallel.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ ${chalk.grey.bold('-------------------------------------------------------')}
url,
},
},
info: e.data.settings.info
info: e.data.settings.info,
client: e.data.settings.client,
}
})
})
Expand Down

0 comments on commit 8d50f64

Please sign in to comment.