Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelaya775 committed Jan 29, 2022
1 parent fe7f731 commit c0e8a3d
Show file tree
Hide file tree
Showing 24 changed files with 287 additions and 70 deletions.
5 changes: 2 additions & 3 deletions components/Card.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import React from 'react'
import Image from 'next/image'
import img from '../images/hero.jpg'

export default function Item({ text }) {
return (
Expand All @@ -13,7 +11,8 @@ export default function Item({ text }) {
</p>

<div className='my-10'>
<Image src={img} alt='placeholder' />
{/* <img src={img} alt='placeholder' /> */}
{/* <Image src={img} alt='placeholder' /> */}
</div>

<button className='btn w-full btn-primary text-[#f0f0f0] hover:bg-cyan-600 gradient-hover shadow-md drop-shadow-md ease-out duration-500'>
Expand Down
45 changes: 45 additions & 0 deletions components/Hero.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import React from 'react'
import { useSelector } from 'react-redux'
import Navbar from '../components/Navbar'
import PostImage from './PostImage'
import Image from 'next/Image'
import pic from '../public/images/inspo.jpg'

export default function Hero() {
return (
<div>
<div className={`relative bg-slate-100`}>
<Navbar />
<div className='mx-auto py-48 px-20 max-w-md grid grid-cols-1 gap-24 lg:grid-cols-2 md:max-w-screen-lg lg:max-w-screen-xl 2xl:max-w-screen-2xl'>
<div className='container flex flex-col justify-center max-w-screen-xl h-full'>
<h1 className='text-6xl text-zinc-00 inline-block font-robo font-bold'>
Hi, I&apos;m Jorge
</h1>

<h1 className='mt-6 mb-12 text-zinc-500 text-xl leading-8 font-normal font-robo'>
I am a university student studying computer science and
mathematics. I love learning and improving my skills in
programming and development. While I have a well-established set
of skills, from databases to frontend web development, I am always
excited to tackle new challenges and provide the highest level of
work that I can.
</h1>

<button
type='button'
className='btn w-fit btn-primary text-[#f0f0f0] hover:bg-cyan-600 gradient-hover shadow-md drop-shadow-md ease-out duration-500'
>
Contact Me
</button>
</div>

{/* TODO: if window width >= md -> render image */}
<div className='image py-10 scale-0 md:scale-100 h-full w-full'>
<Image src={pic} />
</div>
{/* <PostImage source='inspo.jpg' /> */}
</div>
</div>
</div>
)
}
113 changes: 113 additions & 0 deletions components/ImageList.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
import * as React from 'react'
import ImageList from '@mui/material/ImageList'
import ImageListItem from '@mui/material/ImageListItem'
import ImageListItemBar from '@mui/material/ImageListItemBar'
import ListSubheader from '@mui/material/ListSubheader'
import IconButton from '@mui/material/IconButton'
import InfoIcon from '@mui/icons-material/Info'

export default function TitlebarImageList() {
return (
<ImageList>
<ImageListItem key='Subheader' cols={2}>
<ListSubheader component='div'>December</ListSubheader>
</ImageListItem>
{itemData.map((item) => (
<ImageListItem key={item.img}>
<img
src={`${item.img}?w=248&fit=crop&auto=format`}
srcSet={`${item.img}?w=248&fit=crop&auto=format&dpr=2 2x`}
alt={item.title}
loading='lazy'
/>
<ImageListItemBar
title={item.title}
subtitle={item.author}
actionIcon={
<IconButton
sx={{ color: 'rgba(255, 255, 255, 0.54)' }}
aria-label={`info about ${item.title}`}
>
<InfoIcon />
</IconButton>
}
/>
</ImageListItem>
))}
</ImageList>
)
}

const itemData = [
{
img: 'https://images.unsplash.com/photo-1551963831-b3b1ca40c98e',
title: 'Breakfast',
author: '@bkristastucchio',
rows: 2,
cols: 2,
featured: true,
},
{
img: 'https://images.unsplash.com/photo-1551782450-a2132b4ba21d',
title: 'Burger',
author: '@rollelflex_graphy726',
},
{
img: 'https://images.unsplash.com/photo-1522770179533-24471fcdba45',
title: 'Camera',
author: '@helloimnik',
},
{
img: 'https://images.unsplash.com/photo-1444418776041-9c7e33cc5a9c',
title: 'Coffee',
author: '@nolanissac',
cols: 2,
},
{
img: 'https://images.unsplash.com/photo-1533827432537-70133748f5c8',
title: 'Hats',
author: '@hjrc33',
cols: 2,
},
{
img: 'https://images.unsplash.com/photo-1558642452-9d2a7deb7f62',
title: 'Honey',
author: '@arwinneil',
rows: 2,
cols: 2,
featured: true,
},
{
img: 'https://images.unsplash.com/photo-1516802273409-68526ee1bdd6',
title: 'Basketball',
author: '@tjdragotta',
},
{
img: 'https://images.unsplash.com/photo-1518756131217-31eb79b20e8f',
title: 'Fern',
author: '@katie_wasserman',
},
{
img: 'https://images.unsplash.com/photo-1597645587822-e99fa5d45d25',
title: 'Mushrooms',
author: '@silverdalex',
rows: 2,
cols: 2,
},
{
img: 'https://images.unsplash.com/photo-1567306301408-9b74779a11af',
title: 'Tomato basil',
author: '@shelleypauls',
},
{
img: 'https://images.unsplash.com/photo-1471357674240-e1a485acb3e1',
title: 'Sea star',
author: '@peterlaster',
},
{
img: 'https://images.unsplash.com/photo-1589118949245-7d38baf380d6',
title: 'Bike',
author: '@southside_customs',
cols: 2,
},
]
22 changes: 11 additions & 11 deletions components/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ import { MdOutlineClose } from 'react-icons/md'

export default function Navbar() {
const [sidebar, setSidebar] = useState(false)
const theme = useSelector((theme) => state.theme.value)
const colorScheme = useSelector((state) => state.theme.value)
const dispatch = useDispatch()
const burgerRef = useRef()

useEffect(() => {
if (darkMode) {
window.document.documentElement.classList.add('dark')
localStorage.setItem('vidyaDarkMode', 'true')
} else {
window.document.documentElement.classList.remove('dark')
localStorage.setItem('vidyaDarkMode', 'false')
}
}, [darkMode])
// useEffect(() => {
// if (darkMode) {
// window.document.documentElement.classList.add('dark')
// localStorage.setItem('vidyaDarkMode', 'true')
// } else {
// window.document.documentElement.classList.remove('dark')
// localStorage.setItem('vidyaDarkMode', 'false')
// }
// }, [darkMode])

const onClick = () => {
setDarkMode(!darkMode)
useDispatch()
}

useEffect(() => {
Expand Down
32 changes: 32 additions & 0 deletions components/PostImage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import Image from 'next/Image'
import styled from 'styled-components'

const ImageWrap = styled.span`
margin: 32px auto;
box-sizing: content-box;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
& > span {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
border-radius: 5px;
}
`

const PostImage = ({ alt, source, width, height }) => {
return (
<ImageWrap>
<Image
alt={alt}
src={`images/${source}`}
width={width}
height={height}
quality={70}
/>
</ImageWrap>
)
}

export default PostImage
27 changes: 27 additions & 0 deletions components/Project.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import React from 'react'
// import photo from '../public/images/hero.jpeg'

export default function Project({ align }) {
return (
<div className='container mx-auto mb-48 w-full'>
<div className='container grid grid-cols-1 md:grid-cols-4'>
{/* box 1 */}
<div className='border-2 w-200 h-96 absolute md:static'>
{/* <img src={photo} className='bg-cover' /> */}
</div>
{/* end box 1 */}
{/* box 2 */}
<div className='border-2 w-200 h-96 flex flex-col justify-center absolute md:static'>
<h1 className='font-black font-lato text-zinc-600'>Project Name</h1>
<div className='container rounded-md h-fit w-full bg-zinc-800 flex flex-col justify-center items-center'>
<h3 className='font-sans text-[#d6d7da] p-6'>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Tenetur
laboriosam ratione dolores aut? Reiciendis, consectetur?
</h3>
</div>
</div>
{/* end box 2 */}
</div>
</div>
)
}
2 changes: 1 addition & 1 deletion components/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function Sidebar({ isActive }) {
{items.map((item, key) => (
<h1
key={key}
className='p-2 hover:cursor-pointer hover:text-emerald-600'
className='p-2 hover:cursor-pointer hover:font-semibold'
>
{item}
</h1>
Expand Down
26 changes: 24 additions & 2 deletions features/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,35 @@ const initialStateValue = {
text: '#f0f0f0',
}

const pallete = {
light: {
primary: '#00f',
secondary: '#DB7093',
complementary: '#f00',
text: '#f0f0f0',
},
dark: {
primary: '#00f',
secondary: '#DB7093',
complementary: '#f00',
text: '#f0f0f0',
},
}

const themeSlice = createSlice({
name: 'theme',
initialState: { value: initialStateValue },
reducers: {
changeTheme: (state, action) => {
const colors = state.value
switch(colors)
const theme = action.payload

switch (theme) {
case 'light':
break
case 'dark':
break
}

state.value = { ...action.payload }
},
},
Expand Down
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
module.exports = {
reactStrictMode: true,
eslint: { ignoreDuringBuilds: true },
}
Loading

0 comments on commit c0e8a3d

Please sign in to comment.