Skip to content
This repository was archived by the owner on Dec 17, 2021. It is now read-only.
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
4 changes: 2 additions & 2 deletions packages/react-app/components/layout/HomeActions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ export const HomeActions = ({ contract, mySelf }) => {
<Flex flexDirection="column" justifyContent="center" alignItems="center" w="full">
<Heading>Welcome to recruiter.party!</Heading>
<HStack>
<Button m="5" size="lg" colorScheme="purple" onClick={() => router.push("/profile/edit-profile")}>
<Button m="5" size="md" colorScheme="purple" onClick={() => router.push("/profile/edit-profile")}>
JOIN AS A BUILDER
</Button>
<Button m="5" size="lg" colorScheme="green" onClick={() => router.push("/profile/approval")}>
<Button m="5" size="md" colorScheme="green" onClick={() => router.push("/profile/approval")}>
APPROVE REQUESTS
</Button>
</HStack>
Expand Down
27 changes: 22 additions & 5 deletions packages/react-app/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
Code,
HStack,
InputGroup,
InputLeftElement,
InputLeftAddon,
Input,
Box,
Heading,
SimpleGrid,
Expand All @@ -17,6 +18,7 @@ import {
AlertDialogHeader,
AlertDialogContent,
AlertDialogOverlay,
Container,
} from "@chakra-ui/react";
import { Web3Context } from "../helpers/Web3Context";
import { CeramicClient } from "@ceramicnetwork/http-client";
Expand All @@ -28,7 +30,6 @@ import { fromString, toString } from "uint8arrays";
import { DataModel } from "@glazed/datamodel";
import { DIDDataStore } from "@glazed/did-datastore";
import { EthereumAuthProvider, SelfID, WebClient } from "@self.id/web";
import { Table, Modal, Form, Input, Divider, InputNumber, Select, Typography, Tag, Space, PageHeader } from "antd";
import { randomBytes } from "@stablelib/random";
import { ethers } from "ethers";

Expand Down Expand Up @@ -198,9 +199,25 @@ function Home() {
</AlertDialogContent>
</AlertDialogOverlay>
</AlertDialog>
<HomeActions contract={dRecruitContract} mySelf={context.self} />
<Input type="search" placeholder="Search" onChange={e => setSearchTerm(e.target.value)} />
{isSearching && <div>Searching ...</div>}
<Container className="mainInput">
<HomeActions contract={dRecruitContract} mySelf={context.self} />

</Container>
<Container>
<div style={{ borderTop: "2px groove", padding: "20px", marginTop: "30px"}}>
<Heading size="md">Search for a Candidate:</Heading>
<InputGroup>

<Input
type="search"
placeholder="Search..."
borderColor="purple.500"
onChange={e => setSearchTerm(e.target.value)}
/>
</InputGroup>
{isSearching && <div>Searching ...</div>}
</div>
</Container>
<Heading>Found developers:</Heading>
<SimpleGrid columns={4} spacing={10}>
{isMatch &&
Expand Down
9 changes: 9 additions & 0 deletions packages/react-app/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,12 @@ code {
.blockies {
border-radius: 50%;
}

.mainInput {
border: 2px solid rgba(89, 50, 196, 0.6);
box-sizing: border-box;
box-shadow: 0px 8px 64px rgba(111, 63, 245, 0.08);
border-radius: 8px;
padding: 30px;
justify-content: center;
}