Skip to content

Commit

Permalink
routes, night page, header2
Browse files Browse the repository at this point in the history
  • Loading branch information
notsoocool committed Feb 13, 2022
1 parent 551066e commit 8e278e7
Show file tree
Hide file tree
Showing 9 changed files with 192 additions and 14 deletions.
3 changes: 3 additions & 0 deletions public/image/Arrow2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
99 changes: 99 additions & 0 deletions src/components/Stairy.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
import React from "react";

const Stairy =() => {

return (
<div className=" overflow-x-hidden flex flex-col font-Inter pb-[10%] bg-white dark:bg-black transition-colors duration-500 ">

<main className=" bg-hero bg-no-repeat bg-cover w-full h-screen flex place-items-center justify-evenly text-center">
<a className=" text-[2rem] xl:text-[3rem] 2xl:text-[5rem] w-[75%] uppercase ">
The Starry Night is an oil on canvas painting by Dutch Post Impressionist painter van Gogh. Painted in June 1889.
</a>
</main>
<div className="flex justify-center pt-[10%]">
<img src="https://cdn.discordapp.com/attachments/941091409509896283/942493880060899338/Image_1.svg" alt="" className="w-[80%]" />
</div>
<div className="flex gap-x-[5%] px-[15%] pt-[10%] ">
<div className="flex uppercase flex-col text-gray-300 dark:text-gray-500 duration-500 ease-in-out">
<span>year</span>
<span>medium</span>
<span>location</span>
<span>size</span>
</div>
<div className="flex gap-x-[10%]" >
<div className="flex uppercase flex-col dark:text-white duration-500 ease-in-out">
<span>1888</span>
<span>oil on canvas</span>
<span>ayale university gallery</span>
<span>28.5 IN x 36.3 in</span>
</div>
<p className=" w-[40%] text-[0.82rem] dark:text-white duration-500 ease-in-out">
The Night Café (French: Le Café de nuit) is an oil painting created by Dutch artist Vincent van Gogh in September 1888 in Arles. Its title is inscribed lower right beneath the signature. The painting is owned by Yale University and is currently held at the Yale University Art Gallery in New Haven, Connecticut.
</p>
</div>
</div>
<div className="flex justify-center pt-[10%]">
<img src="https://cdn.discordapp.com/attachments/941091409509896283/942510400967172197/Image_2.svg" alt="" className=" pr-[5%] xl:h-[520px] 2xl:h-[800px]"/>
<img src="https://cdn.discordapp.com/attachments/941091409509896283/942510249313726544/Image_3.svg" alt="" className=" xl:h-[520px] 2xl:h-[800px]"/>
</div>
<div className="w-full h-screen bg-[#2EBCC7] flex mt-[10%]">
<div className="w-[50%] bg-no-repeat bg-cover bg-half z-20"></div>
<div className="flex w-[50%] place-items-center justify-evenly">
<p className="flex h-[80%] w-[80%] uppercase dark:text-white duration-500 ease-in-out place-items-center xl:text-3xl 2xl:text-5xl tracking-wide text-justify">
it depicts the view from the east-facing window of his asylum room at Saint Rémy de Provence, just before sunrise, with the addition of an imaginary village. It has been in the permanent collection of the Museum of Modern Art in New York City since 1941, acquired through the Lizzie Plummer Bliss Bequest.
</p>
</div>
</div>
<div className="flex flex-col uppercase place-items-center pt-[10%]">
<div className="w-[80%]">
<p className=" dark:text-white duration-500 ease-in-out xl:text-[4rem] 2xl:text-[5rem]">
Although The Starry Night was painted during the day in Van Gogh's ground-floor studio, it would be inaccurate to state that the picture was painted from memory.
</p>
</div>
<div className="w-[80%] pt-8">
<p className=" dark:text-white duration-500 ease-in-out xl:text-[2rem] 2xl:text-[2.7rem]">
The view has been identified as the one from his bedroom window, facing east, a view which Van Gogh painted variations of no fewer than twenty-one times, including The Starry Night.
</p>
</div>
</div>
<div className="flex w-full pt-[10%] justify-center">
<div className="">
<img src="https://cdn.discordapp.com/attachments/941091409509896283/942529415894687794/Image_4.svg" alt="" className="2xl:h-[500px]"/>
</div>
<div className="pt-[10%] pl-[2%]">
<img src="https://cdn.discordapp.com/attachments/941091409509896283/942528420808646696/Image_4.svg" alt="" className="2xl:h-[450px]"/>
</div>
<div className="pt-[5%] pl-[8%]">
<img src="https://cdn.discordapp.com/attachments/941091409509896283/942529958394343474/Image_4.svg" alt="" className="2xl:h-[250px]"/>
</div>
</div>
<div className="flex w-full pt-[10%] justify-evenly pb-[7%]">
<div className="flex flex-col w-[15rem] h-[15rem] justify-center items-center rounded-full bg-black dark:bg-white duration-500 ease-in-out">
<div>
<svg viewBox="0 0 16 8" fill="none" xmlns="http://www.w3.org/2000/svg" className="w-11 h-11">
<path fillRule="evenodd" clipRule="evenodd" d="M3.61461 0.159096L0.622553 3.61591C0.438946 3.82804 0.438946 4.17196 0.622553 4.38409L3.61461 7.8409C3.79822 8.05303 4.0959 8.05303 4.27951 7.8409C4.46312 7.62878 4.46312 7.28485 4.27951 7.07272L2.09006 4.54319H16V3.45681H2.09006L4.27951 0.927276C4.46312 0.715149 4.46312 0.371223 4.27951 0.159096C4.0959 -0.0530318 3.79822 -0.0530318 3.61461 0.159096Z" className=' fill-white dark:fill-black duration-500 ease-in-out'/>
</svg>
</div>
<span className="uppercase text-[1.5rem] text-center text-white dark:text-black duration-500 ease-in-out">
Paul Gauguin's Armchair
</span>
</div>
<div className="flex flex-col w-[15rem] h-[15rem] justify-center items-center rounded-full bg-black dark:bg-white duration-500 ease-in-out">
<div>
<svg viewBox="0 0 16 8" fill="none" xmlns="http://www.w3.org/2000/svg" className="w-11 h-11 rotate-180">
<path fillRule="evenodd" clipRule="evenodd" d="M3.61461 0.159096L0.622553 3.61591C0.438946 3.82804 0.438946 4.17196 0.622553 4.38409L3.61461 7.8409C3.79822 8.05303 4.0959 8.05303 4.27951 7.8409C4.46312 7.62878 4.46312 7.28485 4.27951 7.07272L2.09006 4.54319H16V3.45681H2.09006L4.27951 0.927276C4.46312 0.715149 4.46312 0.371223 4.27951 0.159096C4.0959 -0.0530318 3.79822 -0.0530318 3.61461 0.159096Z" className=' fill-white dark:fill-black duration-500 ease-in-out'/>
</svg>
</div>
<span className="uppercase text-[1.5rem] text-center text-white dark:text-black duration-500 ease-in-out">
The Night Café
</span>
</div>
</div>
</div>



);
};

export default Stairy;
17 changes: 13 additions & 4 deletions src/pages/components/Landing/Landing.tsx → src/pages/Landing.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React from "react";
import Link from 'next/link';

export default function Landing() {
const Landing = () => {


return (

<div className=" overflow-y-hidden bg-white dark:bg-black mt-[25%] xl:mt-[10%] transition-colors duration-500 ">
<div className=" overflow-x-hidden bg-white dark:bg-black mt-[25%] xl:mt-[10%] transition-colors duration-500 ">

<main className="flex flex-col content-center">
<p className=" font-Inter w-[90%] xl:w-[60%] uppercase self-start text-[2rem] xl:text-[5rem] pl-[10%] dark:text-white transition duration-500 ease-in-out">
Expand All @@ -14,9 +15,14 @@ export default function Landing() {
</p>
<div className=" pt-[10%] pl-[10%] xl:pl-0 pr-[10%] xl:pr-[5%] flex flex-col xl:flex-row justify-center">
<div className="pr-[10%]">
<img src="https://cdn.discordapp.com/attachments/941091409509896283/942357990319751238/1.svg" />
<a className="font-Inter dark:text-white duration-500 ease-in-out">1 &nbsp;&nbsp;&nbsp;&nbsp; THE STARRY NIGHT</a>
<Link href="/Night">
<img src="https://cdn.discordapp.com/attachments/941091409509896283/942357990319751238/1.svg" className="cursor-pointer"/>
</Link>
<Link href="/Night">
<a className="font-Inter dark:text-white duration-500 ease-in-out">1 &nbsp;&nbsp;&nbsp;&nbsp; THE STARRY NIGHT</a>
</Link>
</div>

<div className=" pt-[10%] xl:pt-[3%]">
<img src="https://cdn.discordapp.com/attachments/941091409509896283/942357990890168320/2.svg" />
<a className="font-Inter dark:text-white duration-500 ease-in-out">2 &nbsp;&nbsp;&nbsp;&nbsp; THE NIGHT CAFE</a>
Expand Down Expand Up @@ -92,3 +98,6 @@ export default function Landing() {
</div>
);
}


export default Landing;
19 changes: 19 additions & 0 deletions src/pages/Night.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from "react";
import Stairy from "../components/Stairy";

import Footer from "../props/Footer";
import Header2 from "../props/Header2";

const Night =() => {

return (
<div className="dark:bg-black scroll-smooth transition-colors duration-500">
<Header2/>
<Stairy/>
<Footer/>
</div>

);
};

export default Night;
13 changes: 6 additions & 7 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Head from "next/head";
import React from "react";
import Landing from "./components/Landing/Landing";
import Footer from "./props/Footer";
import Header from "./props/Header";
import Landing from "./Landing";
import Footer from "../props/Footer";
import Header from "../props/Header";

export default function Home() {
/* //Hook to grab window size
Expand Down Expand Up @@ -65,10 +65,9 @@ export default function Home() {
<title>Portfolio Vincent</title>
<link rel="icon" href="/favicon.ico" />
</Head>
<Header/>

<Landing />
<Footer/>
<Header/>
<Landing/>
<Footer/>
</div>
);
}
File renamed without changes.
6 changes: 3 additions & 3 deletions src/pages/props/Header.tsx → src/props/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React,{ useContext } from 'react';

import { ColorMode, ThemeContext } from '../../modules/ThemeProvider';
import { ColorMode, ThemeContext } from '../modules/ThemeProvider';


const Header = () => {
Expand Down Expand Up @@ -30,9 +30,9 @@ const Header = () => {
<button onClick={() => {
setColorMode(colorMode === ColorMode.dark ? ColorMode.light : ColorMode.dark)
}}>{colorMode === ColorMode.dark ? '' : ''}
<svg width="32" height="26" viewBox="0 0 32 26" fill="white" className='w-10'>
<svg width="32" height="26" viewBox="0 0 32 26" className=' fill-transparent dark:fill-white w-10'>
<circle cx="16" cy="13" r="9.5" className=' stroke-black dark:stroke-white duration-500 ease-in-out'/>
<path fillRule="evenodd" clipRule="evenodd" d="M16 3V23C21.5228 23 26 18.5228 26 13C26 7.47715 21.5228 3 16 3Z" fill="black"/>
<path fillRule="evenodd" clipRule="evenodd" d="M16 3V23C21.5228 23 26 18.5228 26 13C26 7.47715 21.5228 3 16 3Z" className=" fill-black dark:fill-black"/>
</svg>
</button>
<svg width="32" height="26" viewBox="0 0 32 26" fill="none" xmlns="http://www.w3.org/2000/svg">
Expand Down
45 changes: 45 additions & 0 deletions src/props/Header2.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import React,{ useContext } from 'react';

import { ColorMode, ThemeContext } from '../modules/ThemeProvider';

import Link from 'next/link';

const Header2 = () => {
const { colorMode, setColorMode } = useContext(ThemeContext);
console.log(colorMode)
return(
<div className=" bg-transparent w-full fixed overflow-hidden font-Inter py-8 duration-500 ease-in-out z-50 ">
<div className='flex justify-between'>
<div className=' pl-11 flex flex-row'>

<div className='pr-2 pt-2 cursor-pointer'>
<Link href="/">
<svg width="16" height="8" viewBox="0 0 16 8" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fillRule="evenodd" clipRule="evenodd" d="M3.61461 0.159096L0.622553 3.61591C0.438946 3.82804 0.438946 4.17196 0.622553 4.38409L3.61461 7.8409C3.79822 8.05303 4.0959 8.05303 4.27951 7.8409C4.46312 7.62878 4.46312 7.28485 4.27951 7.07272L2.09006 4.54319H16V3.45681H2.09006L4.27951 0.927276C4.46312 0.715149 4.46312 0.371223 4.27951 0.159096C4.0959 -0.0530318 3.79822 -0.0530318 3.61461 0.159096Z" className=' fill-black dark:fill-white duration-500 ease-in-out'/>
</svg>
</Link>
</div>

<Link href="/"><span className=' dark:text-white duration-500 ease-in-out cursor-pointer'>HOME</span></Link>
</div>
<nav className="flex pr-10 space-x-[10%]">
<button onClick={() => {
setColorMode(colorMode === ColorMode.dark ? ColorMode.light : ColorMode.dark)
}}>{colorMode === ColorMode.dark ? '' : ''}
<svg width="32" height="26" viewBox="0 0 32 26" className='fill-transparent dark:fill-white w-10'>
<circle cx="16" cy="13" r="9.5" className=' stroke-black dark:stroke-white duration-500 ease-in-out'/>
<path fillRule="evenodd" clipRule="evenodd" d="M16 3V23C21.5228 23 26 18.5228 26 13C26 7.47715 21.5228 3 16 3Z" className='fill-black dark:fill-black'/>
</svg>
</button>
<svg width="32" height="26" viewBox="0 0 32 26" fill="none" xmlns="http://www.w3.org/2000/svg">
<line x1="6" y1="6.5" x2="26" y2="6.5" className='stroke-black dark:stroke-white duration-500 ease-in-out'/>
<line x1="6" y1="12.5" x2="26" y2="12.5" className='stroke-black dark:stroke-white duration-500 ease-in-out'/>
<line x1="6" y1="18.5" x2="26" y2="18.5" className='stroke-black dark:stroke-white duration-500 ease-in-out'/>
</svg>
</nav>
</div>
</div>
);
}

export default Header2;
4 changes: 4 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ module.exports = {
fontFamily: {
Inter: ['Inter', 'sans-serif'],
},
backgroundImage: {
'hero': "url('https://cdn.discordapp.com/attachments/941091409509896283/942439755495407646/Hero_image.svg')",
'half': "url('https://cdn.discordapp.com/attachments/941091409509896283/942514134262612048/Image_4.svg')",
}
},
},
variants: {
Expand Down

0 comments on commit 8e278e7

Please sign in to comment.