Skip to content

Commit

Permalink
TechStacks on homepage.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Sep 20, 2023
1 parent 0d46fb4 commit 69b24aa
Show file tree
Hide file tree
Showing 18 changed files with 134 additions and 550 deletions.
548 changes: 6 additions & 542 deletions docs/package-lock.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^5.0.1",
"tailwindcss": "^3.3.3",
"typescript": "^5.2.2",
"vercel": "^32.2.5"
}
Expand Down
Binary file added docs/src/assets/arduino-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/src/assets/bootstrap-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions docs/src/assets/bootswatch-logo.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 added docs/src/assets/easyeda-logo.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 docs/src/assets/jest-logo.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 docs/src/assets/nodejs-logo.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 docs/src/assets/npm-logo.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 docs/src/assets/parcel-logo.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 docs/src/assets/platformio-labs-logo.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 docs/src/assets/react-logo.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 docs/src/assets/typescript-logo.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 docs/src/assets/vercel-logo.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 docs/src/assets/vscode-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions docs/src/scripts/components/stackicon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from "react";

export default class StackIcon extends React.Component<{
logo: string,
url: string
}, {}> {
render() {
return (
<a href={this.props.url} target="_blank">
<img className="tech-stack" src={this.props.logo} />
</a>
);
}
}
90 changes: 83 additions & 7 deletions docs/src/scripts/pages/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,23 @@ import {
RectangleGroupIcon
} from "@heroicons/react/24/outline";

import ArduinoLogo from "../../assets/arduino-logo.png";
import BootstrapLogo from "../../assets/bootstrap-logo.svg";
import BootswatchLogo from "../../assets/bootswatch-logo.svg";
import Brillo8Top from "../../../../assets/brillo-8_v0.1_top.svg";
import EasyEDALogo from "../../assets/easyeda-logo.png";
import Glass_Prism0006 from "../../assets/Glass_Prism0006.png";
import Glass_Prism0007 from "../../assets/Glass_Prism0007.png";
import Glass_Prism0097 from "../../assets/Glass_Prism0097.png";
import NodeJSLogo from "../../assets/nodejs-logo.png";
import NPMLogo from "../../assets/npm-logo.png";
import ParcelLogo from "../../assets/parcel-logo.png";
import PlatformIOLogo from "../../assets/platformio-labs-logo.png";
import ReactLogo from "../../assets/react-logo.png";
import TypeScriptLogo from "../../assets/typescript-logo.png";
import VercelLogo from "../../assets/vercel-logo.png";
import VSCodeLogo from "../../assets/vscode-logo.png";
import StackIcon from "../components/stackicon";

export default class Home extends React.Component {
onPageout(): void {
Expand Down Expand Up @@ -95,53 +108,83 @@ export default class Home extends React.Component {
<div className="row">
<div className="col-lg-4">
<div className="card card-body border-light bg-transparent rounded-0">
<RectangleGroupIcon className="icon-48 justify-self-center align-self-center" />
<RectangleGroupIcon className="icon-48 justify-self-center align-self-center desktop-only" />

<center>
<br/>
<div className="mobile-only">
<br/>
<RectangleGroupIcon className="icon-mob-48" />
</div>

<br/>
<h3>Compact PCB Design</h3>
<br/>
<p>Brillo-8 is housed on a 80cm x 50mm PCB, making it highly portable and easy to carry in your pocket.</p>

<br/>
</center>

<a href="#" className="btn btn-outline-info rounded-0 learn-more">
See PCB Files
<ArrowRightIcon className="icon-24 pl-2" />
</a>
</div>
</div>

<div className="col-lg-4">
<div className="card card-body border-light bg-transparent rounded-0">
<CursorArrowRaysIcon className="icon-48 justify-self-center align-self-center" />
<CursorArrowRaysIcon className="icon-48 justify-self-center align-self-center desktop-only" />

<center>
<br/>
<div className="mobile-only">
<br/>
<CursorArrowRaysIcon className="icon-mob-48" />
</div>

<br/>
<h3>User-Friendly Interface</h3>
<br/>
<p>Intuitive switches and button for pushing instructions, flashing firmware, and resetting the device.</p>

<br/>
</center>

<a href="#" className="btn btn-outline-info rounded-0 learn-more">
Hardware Interface
<ArrowRightIcon className="icon-24 pl-2" />
</a>
</div>
</div>

<div className="col-lg-4">
<div className="card card-body border-light bg-transparent rounded-0">
<CodeBracketSquareIcon className="icon-48 justify-self-center align-self-center" />
<CodeBracketSquareIcon className="icon-48 justify-self-center align-self-center desktop-only" />

<center>
<br/>
<div className="mobile-only">
<br/>
<CodeBracketSquareIcon className="icon-mob-48" />
</div>

<br/>
<h3>Open-Source Firmware</h3>
<br/>
<p>Update and upgrade the Brillo-8's embedded system to modify or enhance and suit your needs.</p>

<br/>
</center>

<a href="https://github.com/nthnn/Brillo-8" className="btn btn-outline-info rounded-0 learn-more">
GitHub Repository
<ArrowRightIcon className="icon-24 pl-2" />
</a>
</div>
</div>
</div>
</div>

<div className="desktop-only">
<br/><br/><br/><br/>
<br/><br/><br/>
</div>
<br/><br/>

Expand Down Expand Up @@ -195,6 +238,39 @@ export default class Home extends React.Component {
<div className="desktop-only"><br/><br/></div>
<br/>
</div>

<div className="container">
<div className="desktop-only">
<br/><br/><br/>
</div>
<br/><br/>

<center>
<h1>Techstack</h1>
<p>Special thanks to all the technologies, frameworks, softwares, languages, and libraries below.<br/>Brillo-8 would be impossible without you.</p>
<br/><br className="desktop-only" />

<StackIcon logo={VSCodeLogo} url="https://code.visualstudio.com/" />
<StackIcon logo={ArduinoLogo} url="https://www.arduino.cc/" />
<StackIcon logo={PlatformIOLogo} url="https://platformio.org/" />
<StackIcon logo={EasyEDALogo} url="https://easyeda.com/" />
<StackIcon logo={VercelLogo} url="https://vercel.com/" />
<StackIcon logo={NodeJSLogo} url="https://nodejs.org/" />
<br/>

<StackIcon logo={NPMLogo} url="https://www.npmjs.com/" />
<StackIcon logo={TypeScriptLogo} url="https://www.typescriptlang.org/" />
<StackIcon logo={BootstrapLogo} url="https://getbootstrap.com/" />
<StackIcon logo={BootswatchLogo} url="https://bootswatch.com/" />
<StackIcon logo={ReactLogo} url="https://react.dev/" />
<StackIcon logo={ParcelLogo} url="https://github.com/parcel-bundler/parcel" />
</center>

<div className="desktop-only">
<br/><br/><br/><br/>
</div>
<br/>
</div>
</>
);
}
Expand Down
21 changes: 21 additions & 0 deletions docs/src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
display: block;
}

.mobile-only {
display: none;
}

.icon-32, .icon-24 {
margin-top: -4px;
padding-right: 4px;
Expand All @@ -37,6 +41,11 @@
height: 24px;
}

.icon-mob-48 {
width: 48px;
height: 48px;
}

.icon-48 {
margin-top: -48px;
margin-bottom: 10px;
Expand Down Expand Up @@ -76,11 +85,23 @@
width: 25%;
}

.tech-stack {
width: 80px;
height: 80px;
object-fit: contain;
filter: grayscale(100%);
margin: 8px;
}

@media only screen and (max-width: 600px) {
.desktop-only, .glass-01, .glass-02 {
display: none;
}

.mobile-only {
display: block;
}

.brillo-8 {
width: 100%;
margin-top: 0px;
Expand Down

0 comments on commit 69b24aa

Please sign in to comment.