Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding contact page and add recipe #77

Merged
merged 2 commits into from
Apr 5, 2023
Merged
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
Binary file added public/assets/pastries.jpg
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 public/assets/veggie.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/app/components/AddRecipe/AddRecipePage.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
* {
box-sizing: border-box;
padding: 0px;
margin: 0px;
font-family: 'Ubuntu';
}

.main {
background-color: white;
color: black;
}
27 changes: 27 additions & 0 deletions src/app/components/AddRecipe/AddRecipePage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
'use client';
import 'primereact/resources/primereact.min.css';
import 'primeicons/primeicons.css';
import 'primeflex/primeflex.css';
import './AddRecipePage.css';


import { Header } from '../Header';
import { NavBar } from '../NavBar';
import { RecipeBox } from './RecipeBox';
import { RecipeForm } from './RecipeForm';
import { Footer } from '../Footer';




export default function AddRecipePage() {
return (
<>
<Header />
<NavBar />
<RecipeBox />
<RecipeForm />
<Footer />
</>
);
}
68 changes: 68 additions & 0 deletions src/app/components/AddRecipe/RecipeBox.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
.box {
display: row;
justify-content: space-around;
grid-column: column;
box-sizing: border-box;
vertical-align: baseline;
padding: 80px;
margin: 0 20 30px;
border: none;
}

.breadcrumb{
padding: 20px 16px;
list-style: none;
background-color: none;
}

.breadcrumb-item{
display: inline;
font-size: 22px;
font-weight: 500;
}

.breadcrumb li+li:before{
padding: 8px;
color: black;
content: ">";
font-weight: bold;
}

.breadcrumb-item a{
color: #2e4053;
text-decoration: none;
}

.breadcrumb-item a:hover{
color: rgb(209, 31, 31);
}

.imgcontact {
display: flex;
width:98%;
height: 260px;
gap: 30%;
top: 200px;
margin: 20px;
border-radius: 4px;
}


@media only screen and (max-width: 600px) {
.box {
display: block;
}
.imgcontact {
display: block;
height: 200px;
width: 330px;
margin: 0 10%;
}
.breadcrumb {
display: block;
margin: auto;
}
}



25 changes: 25 additions & 0 deletions src/app/components/AddRecipe/RecipeBox.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
'use client';
import 'primereact/resources/primereact.min.css';
import 'primeicons/primeicons.css';
import 'primeflex/primeflex.css';
import Image from "next/image";
import veggie from "/public/assets/veggie.jpg";
import "./RecipeBox.css";


export const RecipeBox = () => {
return (
<div className="box">
<ol className="breadcrumb">
<li className="breadcrumb-item"> <a href="../page.js"> 🏠Home </a></li>
<li className="breadcrumb-item"> <a href="#"> Add Recipe </a></li>
</ol>
<Image
className="imgcontact"
src={veggie}
alt="vegetables"
/>
</div>

);
};
110 changes: 110 additions & 0 deletions src/app/components/AddRecipe/RecipeForm.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
.row {
display: flex;
}

.column {
flex: auto;
padding: 30px;
}

.box {
display: row;
justify-content: space-around;
grid-column: column;
box-sizing: border-box;
vertical-align: baseline;
padding: 20px;
margin: 0 0 30px;
border: none;
}

.column {
text-align: left;
max-width: 100%;
height: 805px;
line-height: 160%;
font-size: 18px;
font-weight: 100;
margin: 5%;
background-color: #d9d9d95a;
border-radius: 14px;
}

.box h1 {
margin: 2%;
font-weight: 600;
font-size: 33px;
align-items: center;
text-align: center;
}

.column h2 {
display: flex;
margin: 20px;
font-size: 28px;
align-items: center;
text-align: center;
}

* {
box-sizing: border-box;
}


.container {
padding: 16px;
background-color: none;
}

input[type=text], input[type=name] {
width: 100%;
padding: 15px;
margin: 5px 0 22px 0;
display: inline-block;
border: none;
background: #D9D9D9;
border-radius: 4px;
}

input[type=text]:focus, input[type=name]:focus {
background-color: #edd794;
outline: none;
}

.submitbtn {
background-color: #24503D;
color: white;
padding: 16px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 100%;
opacity: 0.9;
border-radius: 4px;
font-size: 20px;
}

.submitbtn:hover {
opacity: 1;
background-color: #e7b10a;
}


.passwdbtn {
background-color: #e7b10a;
color: white;
padding: 16px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 100%;
opacity: 0.9;
border-radius: 4px;
font-size: 20px;
}

.passwdbtn:hover {
opacity: 1;
background-color: #24503dbe;
}

69 changes: 69 additions & 0 deletions src/app/components/AddRecipe/RecipeForm.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
'use client';
import 'primereact/resources/primereact.min.css';
import 'primeicons/primeicons.css';
import 'primeflex/primeflex.css';
import "./RecipeForm.css";

export const RecipeForm = () => {
return (
<section className="box">
<div>
<h1>Register here and add your favorite recipe...</h1>
</div>

<div className="row">
<div className="column">
<form>
<div>
<h2>Register with email</h2>
</div>
<div className="container">

<label for="name"><b>Name</b></label>
<input type="name" placeholder="Enter your name" name="name" id="name" required></input>
<label for="username"><b>Username</b></label>
<input type="name" placeholder="Enter your username" name="name" id="name" required></input>
<label for="email"><b>Email address</b></label>
<input type="text" placeholder="Enter your email address" name="email" id="email" required></input>
<label for="psw"><b>Enter password</b></label>
<input type="text" placeholder="Type your password" name="password" id="password" required></input>
<label for="psw"><b>Confirm password</b></label>
<input type="text" placeholder="Repeat your password" name="password" id="password" required></input>

<button type="submit" className="submitbtn">REGISTER</button>

<div className="field-checkbox">
<input type="checkbox" id="register"></input>
<label for="agreement">Yes, I agree to store my data in this website</label></div>
</div>
</form>
</div>
<div className="column">
<form>
<div>
<h2>Log in </h2>
</div>
<div className="container">
<label for="name"><b>Email or username</b></label>
<input type="name" placeholder="Enter your email or username" name="name" id="name" required></input>
<label for="psw"><b>Password</b></label>
<input type="text" placeholder="Enter your password" name="email" id="email" required></input>


<button type="submit" className="submitbtn">REGISTER</button>

<div className="field-checkbox">
<input type="checkbox" id="register"></input>
<label for="login">Remember me</label></div>

<br />


<button type="passwd" className="passwdbtn">Forgot your password</button>
</div>
</form>
</div>
</div>
</section>
);
};
69 changes: 69 additions & 0 deletions src/app/components/ContactPage/ContactBox.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
.box {
display: row;
justify-content: space-around;
grid-column: column;
box-sizing: border-box;
vertical-align: baseline;
padding: 80px;
margin: 0 20 30px;
border: none;
font-family: sans-serif;
}

.breadcrumb{
padding: 20px 16px;
list-style: none;
background-color: none;
}

.breadcrumb-item{
display: inline;
font-size: 22px;
font-weight: 500;
}

.breadcrumb li+li:before{
padding: 8px;
color: black;
content: ">";
font-weight: bold;
}

.breadcrumb-item a{
color: #2e4053;
text-decoration: none;
}

.breadcrumb-item a:hover{
color: rgb(209, 31, 31);
}

.imgcontact {
display: flex;
width:98%;
height: 260px;
gap: 30%;
top: 200px;
margin: 20px;
border-radius: 4px;
}


@media only screen and (max-width: 600px) {
.box {
display: block;
}
.imgcontact {
display: block;
height: 200px;
width: 330px;
margin: 0 10%;
}
.breadcrumb {
display: block;
margin: auto;
}
}



Loading