Skip to content

Commit

Permalink
logo as images instead of ascii text (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
Winston-Hsiao committed Sep 18, 2024
1 parent 8ec0f11 commit c725085
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 37 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const Footer = () => {
}

return (
<footer className="bg-gray-12 text-gray-1 py-10 mx-4 sm:mx-6 md:mx-12 lg:mx-20 rounded-lg mb-8">
<footer className="bg-gray-12 text-gray-1 py-10 mx-4 sm:mx-6 md:mx-12 lg:mx-20 rounded-lg mb-6">
<div className="flex flex-col gap-4 mx-8 sm:mx-12">
{/* Logo and Social Links */}
<div className="flex flex-col sm:flex-row items-start justify-between sm:items-center mb-8">
Expand Down
50 changes: 14 additions & 36 deletions frontend/src/components/home/HeroSection.tsx
Original file line number Diff line number Diff line change
@@ -1,52 +1,30 @@
import React from "react";
import { FaCirclePlay } from "react-icons/fa6";

import KScaleASCII from "@/images/KScaleASCII.png";
import KScaleASCIIMobile from "@/images/KScaleASCIIMobile.png";

import Meteors from "../ui/Meteors";
import { Button } from "../ui/button";

const HeroSection: React.FC = () => {
const kScaleLabsLogo = [
" ",
" ██╗ ██╗ ███████╗ ██████╗ █████╗ ██╗ ███████╗ ██╗ █████╗ ██████╗ ███████╗ ",
" ██║ ██╔╝ ██╔════╝██╔════╝██╔══██╗██║ ██╔════╝ ██║ ██╔══██╗██╔══██╗██╔════╝ ",
" █████╔╝ █████╗███████╗██║ ███████║██║ █████╗ ██║ ███████║██████╔╝███████╗ ",
" ██╔═██╗ ╚════╝╚════██║██║ ██╔══██║██║ ██╔══╝ ██║ ██╔══██║██╔══██╗╚════██║ ",
" ██║ ██╗ ███████║╚██████╗██║ ██║███████╗███████╗ ███████╗██║ ██║██████╔╝███████║ ",
" ╚═╝ ╚═╝ ╚══════╝ ╚═════╝╚═╝ ╚═╝╚══════╝╚══════╝ ╚══════╝╚═╝ ╚═╝╚═════╝ ╚══════╝ ",
" ",
];

const kScaleLabsLogoMobile = [
" ",
" ██╗ ██╗ ███████╗ ██████╗ █████╗ ██╗ ███████╗ ",
" ██║ ██╔╝ ██╔════╝██╔════╝██╔══██╗██║ ██╔════╝ ",
" █████╔╝ █████╗███████╗██║ ███████║██║ █████╗ ",
" ██╔═██╗ ╚════╝╚════██║██║ ██╔══██║██║ ██╔══╝ ",
" ██║ ██╗ ███████║╚██████╗██║ ██║███████╗███████╗ ",
" ╚═╝ ╚═╝ ╚══════╝ ╚═════╝╚═╝ ╚═╝╚══════╝╚══════╝ ",
" ",
" ██╗ █████╗ ██████╗ ███████╗ ",
" ██║ ██╔══██╗██╔══██╗██╔════╝ ",
" ██║ ███████║██████╔╝███████╗ ",
" ██║ ██╔══██║██╔══██╗╚════██║ ",
" ███████╗██║ ██║██████╔╝███████║ ",
" ╚══════╝╚═╝ ╚═╝╚═════╝ ╚══════╝ ",
" ",
];

return (
<div className="relative flex flex-col w-full overflow-hidden items-center justify-center text-gray-1 bg-gray-12 py-16 sm:py-28 px-4 rounded-lg">
<div className="hidden md:block select-none">
<pre className="text-[0.8rem] leading-[0.8rem]">
{kScaleLabsLogo.join("\n")}
</pre>
<img
src={KScaleASCII}
alt="K Scale Labs Logo"
className="w-[720px] h-[80px]"
/>
</div>
<div className="md:hidden select-none text-center">
<pre className="text-[0.5rem] leading-[0.5rem]">
{kScaleLabsLogoMobile.join("\n")}
</pre>
<img
src={KScaleASCIIMobile}
alt="K Scale Labs Logo Mobile"
className="w-[300px] h-[120px]"
/>
</div>
<p className="text-lg sm:text-xl md:text-2xl text-center md:max-w-2xl mt-4 sm:mt-6">
<p className="text-lg sm:text-xl md:text-2xl text-center md:max-w-2xl mt-6 sm:mt-10">
Program robots with K-Lang, our language purpose-built for humanoid
robots.
</p>
Expand Down
Binary file added frontend/src/images/KScaleASCII.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 frontend/src/images/KScaleASCIIMobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c725085

Please sign in to comment.