mirror of
https://github.com/Open-Dev-Society/OpenStock.git
synced 2026-05-07 22:15:49 +08:00
feat: embed Peerlist badge in README, Login, Sign-up, and Dashboard
This commit is contained in:
@@ -2,6 +2,13 @@
|
||||
Checkout new amazing projects also, <a href="github.com/open-dev-society/openreadme" target="_blank">OpenReadme </a> is live
|
||||
</div>
|
||||
<a href="https://hellogithub.com/repository/Open-Dev-Society/OpenStock" target="_blank"><img src="https://abroad.hellogithub.com/v1/widgets/recommend.svg?rid=5c4337a9e2dd4a8ba8aba87a88f04b8b&claim_uid=07HezcXv9puSGKQ&theme=neutral" alt="Featured|HelloGitHub" style="width: 250px; height: 54px;" width="250" height="54" /></a>
|
||||
<a href="https://peerlist.io/ravixalgorithm/project/openstock" target="_blank" rel="noreferrer">
|
||||
<img
|
||||
src="https://peerlist.io/api/v1/projects/embed/PRJH8OED7MBL9MGB9HRMKAKLM66KNN?showUpvote=true&theme=light"
|
||||
alt="OpenStock"
|
||||
style="width: auto; height: 54px;"
|
||||
/>
|
||||
</a>
|
||||
<div align="center">
|
||||
<br />
|
||||
<a href="#" target="_blank">
|
||||
|
||||
@@ -4,10 +4,10 @@ import { useForm } from 'react-hook-form';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import InputField from '@/components/forms/InputField';
|
||||
import FooterLink from '@/components/forms/FooterLink';
|
||||
import {signInWithEmail, signUpWithEmail} from "@/lib/actions/auth.actions";
|
||||
import {toast} from "sonner";
|
||||
import {signInEmail} from "better-auth/api";
|
||||
import {useRouter} from "next/navigation";
|
||||
import { signInWithEmail, signUpWithEmail } from "@/lib/actions/auth.actions";
|
||||
import { toast } from "sonner";
|
||||
import { signInEmail } from "better-auth/api";
|
||||
import { useRouter } from "next/navigation";
|
||||
import OpenDevSocietyBranding from "@/components/OpenDevSocietyBranding";
|
||||
import React from "react";
|
||||
|
||||
@@ -55,11 +55,11 @@ const SignIn = () => {
|
||||
register={register}
|
||||
error={errors.email}
|
||||
validation={{
|
||||
required: 'Email is required',
|
||||
pattern: {
|
||||
value: /^[\w-.]+@([\w-]+\.)+[\w-]{2,}$/,
|
||||
message: 'Please enter a valid email address'
|
||||
}
|
||||
required: 'Email is required',
|
||||
pattern: {
|
||||
value: /^[\w-.]+@([\w-]+\.)+[\w-]{2,}$/,
|
||||
message: 'Please enter a valid email address'
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
||||
@@ -78,7 +78,16 @@ const SignIn = () => {
|
||||
</Button>
|
||||
|
||||
<FooterLink text="Don't have an account?" linkText="Create an account" href="/sign-up" />
|
||||
<OpenDevSocietyBranding outerClassName="mt-10 flex justify-center"/>
|
||||
<OpenDevSocietyBranding outerClassName="mt-10 flex justify-center" />
|
||||
<div className="mt-5 flex justify-center">
|
||||
<a href="https://peerlist.io/ravixalgorithm/project/openstock" target="_blank" rel="noreferrer">
|
||||
<img
|
||||
src="https://peerlist.io/api/v1/projects/embed/PRJH8OED7MBL9MGB9HRMKAKLM66KNN?showUpvote=true&theme=light"
|
||||
alt="OpenStock"
|
||||
style={{ width: 'auto', height: '72px' }}
|
||||
/>
|
||||
</a>
|
||||
</div>
|
||||
</form>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
'use client';
|
||||
|
||||
import {useForm} from "react-hook-form";
|
||||
import {Button} from "@/components/ui/button";
|
||||
import { useForm } from "react-hook-form";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import InputField from "@/components/forms/InputField";
|
||||
import SelectField from "@/components/forms/SelectField";
|
||||
import {INVESTMENT_GOALS, PREFERRED_INDUSTRIES, RISK_TOLERANCE_OPTIONS} from "@/lib/constants";
|
||||
import {CountrySelectField} from "@/components/forms/CountrySelectField";
|
||||
import { INVESTMENT_GOALS, PREFERRED_INDUSTRIES, RISK_TOLERANCE_OPTIONS } from "@/lib/constants";
|
||||
import { CountrySelectField } from "@/components/forms/CountrySelectField";
|
||||
import FooterLink from "@/components/forms/FooterLink";
|
||||
import {signUpWithEmail} from "@/lib/actions/auth.actions";
|
||||
import {useRouter} from "next/navigation";
|
||||
import {toast} from "sonner";
|
||||
import { signUpWithEmail } from "@/lib/actions/auth.actions";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { toast } from "sonner";
|
||||
import OpenDevSocietyBranding from "@/components/OpenDevSocietyBranding";
|
||||
import React from "react";
|
||||
|
||||
@@ -31,7 +31,7 @@ const SignUp = () => {
|
||||
preferredIndustry: 'Technology'
|
||||
},
|
||||
mode: 'onBlur'
|
||||
}, );
|
||||
},);
|
||||
|
||||
const onSubmit = async (data: SignUpFormData) => {
|
||||
try {
|
||||
@@ -72,11 +72,11 @@ const SignUp = () => {
|
||||
register={register}
|
||||
error={errors.email}
|
||||
validation={{
|
||||
required: 'Email is required',
|
||||
pattern: {
|
||||
value: /^[\w-.]+@([\w-]+\.)+[\w-]{2,}$/,
|
||||
message: 'Please enter a valid email address'
|
||||
}
|
||||
required: 'Email is required',
|
||||
pattern: {
|
||||
value: /^[\w-.]+@([\w-]+\.)+[\w-]{2,}$/,
|
||||
message: 'Please enter a valid email address'
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
||||
@@ -134,7 +134,16 @@ const SignUp = () => {
|
||||
|
||||
<FooterLink text="Already have an account?" linkText="Sign in" href="/sign-in" />
|
||||
|
||||
<OpenDevSocietyBranding outerClassName="mt-10 flex justify-center"/>
|
||||
<OpenDevSocietyBranding outerClassName="mt-10 flex justify-center" />
|
||||
<div className="mt-5 flex justify-center">
|
||||
<a href="https://peerlist.io/ravixalgorithm/project/openstock" target="_blank" rel="noreferrer">
|
||||
<img
|
||||
src="https://peerlist.io/api/v1/projects/embed/PRJH8OED7MBL9MGB9HRMKAKLM66KNN?showUpvote=true&theme=light"
|
||||
alt="OpenStock"
|
||||
style={{ width: 'auto', height: '72px' }}
|
||||
/>
|
||||
</a>
|
||||
</div>
|
||||
</form>
|
||||
</>
|
||||
)
|
||||
|
||||
@@ -5,7 +5,6 @@ import {
|
||||
MARKET_OVERVIEW_WIDGET_CONFIG,
|
||||
TOP_STORIES_WIDGET_CONFIG
|
||||
} from "@/lib/constants";
|
||||
import {sendDailyNewsSummary} from "@/lib/inngest/functions";
|
||||
|
||||
const Home = () => {
|
||||
const scriptUrl = `https://s3.tradingview.com/external-embedding/embed-widget-`;
|
||||
@@ -48,6 +47,16 @@ const Home = () => {
|
||||
</div>
|
||||
|
||||
</section>
|
||||
<div className="w-full flex flex-col items-center justify-center mt-8 gap-4">
|
||||
<h2 className="text-xl font-semibold text-gray-200">Upvote us on Peerlist 🚀</h2>
|
||||
<a href="https://peerlist.io/ravixalgorithm/project/openstock" target="_blank" rel="noreferrer">
|
||||
<img
|
||||
src="https://peerlist.io/api/v1/projects/embed/PRJH8OED7MBL9MGB9HRMKAKLM66KNN?showUpvote=true&theme=light"
|
||||
alt="OpenStock"
|
||||
style={{ width: "auto", height: "72px" }}
|
||||
/>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user