Skip to content

Commit

Permalink
Docs: update readme and app logo (#587)
Browse files Browse the repository at this point in the history
Co-authored-by: Jonghakseo <jonghak.seo@creatrip.com>
  • Loading branch information
Jonghakseo and Jonghakseo authored Jul 19, 2024
1 parent ec5c1be commit 364eb36
Show file tree
Hide file tree
Showing 30 changed files with 1,275 additions and 233 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<div align="center">
<img src="chrome-extension/public/icon-128.png" alt="logo"/>
<h1> Chrome Extension Boilerplate with<br/>React + Vite + TypeScript</h1>

![](https://github.com/user-attachments/assets/9f98908b-128b-4fd8-9a1e-17a17a3169fb)

![](https://img.shields.io/badge/React-61DAFB?style=flat-square&logo=react&logoColor=black)
![](https://img.shields.io/badge/Typescript-3178C6?style=flat-square&logo=typescript&logoColor=white)
![](https://badges.aleen42.com/src/vitejs.svg)

![GitHub action badge](https://github.com/Jonghakseo/chrome-extension-boilerplate-react-vite/actions/workflows/build-zip.yml/badge.svg)
<img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https://github.com/Jonghakseo/chrome-extension-boilerplate-react-viteFactions&count_bg=%23#222222&title_bg=%23#454545&title=😀&edge_flat=true" alt="hits"/>

Expand All @@ -13,13 +14,13 @@
</div>

> [!TIP]
> [!NOTE]
> This project is listed in the [Awesome Vite](https://github.com/vitejs/awesome-vite)
> [!IMPORTANT]
> [!TIP]
> Share storage state between every page
>
> https://github.com/Jonghakseo/chrome-extension-boilerplate-react-vite/assets/53500778/1992e46c-032a-4743-bbd2-c421757517d7
> https://github.com/user-attachments/assets/3b8e189f-6443-490e-a455-4f9570267f8c
## Table of Contents

Expand Down
Binary file modified chrome-extension/public/icon-128.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 modified chrome-extension/public/icon-34.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 0 additions & 7 deletions pages/devtools-panel/public/logo.svg

This file was deleted.

124 changes: 124 additions & 0 deletions pages/devtools-panel/public/logo_horizontal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
117 changes: 117 additions & 0 deletions pages/devtools-panel/public/logo_horizontal_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 6 additions & 20 deletions pages/devtools-panel/src/Panel.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,11 @@
display: flex;
align-items: center;
justify-content: center;
padding: 2rem;
}

.App-logo {
height: 30vmin;
pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
height: 40vmin;
}

.App-header {
Expand All @@ -25,18 +19,10 @@
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}

.App-link {
color: #61dafb;
}

@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
code {
background: rgba(148, 163, 184, 0.5);
border-radius: 0.25rem;
padding: 0.2rem 0.5rem;
}
22 changes: 6 additions & 16 deletions pages/devtools-panel/src/Panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,16 @@ import { ComponentPropsWithoutRef } from 'react';

const Panel = () => {
const theme = useStorageSuspense(exampleThemeStorage);
const isLight = theme === 'light';
const logo = isLight ? 'devtools-panel/logo_horizontal.svg' : 'devtools-panel/logo_horizontal_dark.svg';

return (
<div
className="App"
style={{
backgroundColor: theme === 'light' ? '#eee' : '#222',
}}>
<header className="App-header" style={{ color: theme === 'light' ? '#222' : '#eee' }}>
<img src={chrome.runtime.getURL('devtools-panel/logo.svg')} className="App-logo" alt="logo" />
<div className={`App ${isLight ? 'bg-slate-50' : 'bg-gray-800'}`}>
<header className={`App-header ${isLight ? 'text-gray-900' : 'text-gray-100'}`}>
<img src={chrome.runtime.getURL(logo)} className="App-logo" alt="logo" />
<p>
Edit <code>pages/devtools-panel/src/Panel.tsx</code> and save to reload.
Edit <code>pages/devtools-panel/src/Panel.tsx</code>
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
style={{ color: theme === 'light' ? '#0281dc' : undefined, marginBottom: '10px' }}>
Learn React!
</a>
<ToggleButton>Toggle theme</ToggleButton>
</header>
</div>
Expand Down
7 changes: 0 additions & 7 deletions pages/devtools-panel/src/logo.svg

This file was deleted.

7 changes: 0 additions & 7 deletions pages/new-tab/public/logo.svg

This file was deleted.

Loading

0 comments on commit 364eb36

Please sign in to comment.