Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,479 changes: 2,374 additions & 105 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/assets/footer.svg
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/assets/header.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 7 additions & 5 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@ import Navbar from "../components/Navbar";
import Showcase from "./Showcase";
function Header() {
return (
<div className="@container bg-hero-pattern flex flex-col h-[130vh]">
<div className="@container bg-hero-pattern flex flex-col h-[230vh]">

<Navbar />

<div className="min-h-0 basis-2/5">
<Showcase />
</div>
<div className="p-10 min-h-0">
<div className="p-10 pr-40 pl-40 min-h-0">
<h1 className="whitespace-nowrap">We are Sprout.</h1>
<h2 className=" text-right">
Welcome to our universe. A growing ecosystem of collaborationg people,
ideas and initiatives
<h2 className="text-right">
Welcome to our universe. A growing ecosystem
</h2>
<h2 className="text-right">
of collaborating people, ideas and initiatives
</h2>
</div>
</div>
Expand Down
16 changes: 13 additions & 3 deletions src/components/Intro/AsciiEffect.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,20 +225,30 @@ class AsciiEffect {

let strThisChar = aCharList[ iCharIdx ];

if ( strThisChar === undefined || strThisChar == ' ' )
if ( strThisChar === undefined || strThisChar === ' ' )
strThisChar = '&nbsp;';

if ( bColor ) {

if(iRed < 29 && x !== 0) {
// iRed < 25 means that the object is soo dark that it can be replaced by a
// lightweight character. It will not be visible but the width and height will correct.
//
strChars += 'A';
} else {
strChars += '<div style=\''
+ 'display:inline-block;'
+ 'width:17px;'
+ 'height:17px;'
+ 'width:16px;'
+ 'height:16px;'
+ 'color:rgb(' + Math.max(29, iRed) + ',' + Math.max(29, iGreen) + ',' + Math.max(29, iBlue) + ');'
+ ( bBlock ? 'background-color:rgb(' + iRed + ',' + iGreen + ',' + iBlue + ');' : '' )
+ ( bAlpha ? 'opacity:' + ( iAlpha / 255 ) + ';' : '' )
+ '\'>' + strThisChar + '</div>';

}



} else {

strChars += strThisChar;
Expand Down
6 changes: 3 additions & 3 deletions src/components/Intro/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const Stuff = (props: ThreeElements['mesh']) => {
A
<meshStandardMaterial color={"grey"}/>
{
<AsciiRenderer fgColor="white" bgColor="#0000"/>
<AsciiRenderer fgColor="#0000" bgColor="#0000"/>
}
</Text3D>
</>
Expand All @@ -76,7 +76,7 @@ function AsciiRenderer({
renderIndex = 1,
bgColor = 'black',
fgColor = 'white',
characters = ' AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', // Don't ask...
characters = 'A',
invert = false,
color = true,
resolution = 0.12,
Expand Down Expand Up @@ -130,7 +130,7 @@ function AsciiRenderer({

//
function Intro() {
return <Canvas style={{width: '100%', height: '100%'}} camera={{position: [0, 0, 4.8]}}>
return <Canvas style={{width: '800px', height: '700px'}} camera={{position: [0, 0, 4.8]}}>
<Stuff/>
</Canvas>
}
Expand Down
25 changes: 13 additions & 12 deletions src/components/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
import { ReactNode } from "react";
import {ReactNode} from "react";
import Footer from "../components/Footer";
import Header from "../components/Header";

interface Props {
children: ReactNode;
children: ReactNode;
}

function Layout({ children }: Props) {
return (
<div className="flex flex-col w-full gap-12">
<Header />
<main className="basis-full flex pr-10 pl-10 flex-col gap-12 sm:gap-48 main">
{children}
</main>
<Footer />
</div>
);
function Layout({children}: Props) {
return (
<main className="flex flex-col gap-12 sm:gap-48 main">
<Header/>
<div className="basis-full pr-20 pl-20 flex flex-col sm:gap-48">
{children}
</div>
<Footer/>
</main>
);
}

export default Layout;
3 changes: 3 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
a:hover {
color: #747bff;
}
.main {
background-color: white;
}
button {
background-color: #f9f9f9;
}
Expand Down