Okay, let's craft a modern 90s aesthetic personal portfolio front-end using React, Styled Components, and Redux. This will be a conceptual outline with code snippets to illustrate the key elements. A fully functional portfolio would be extensive, but this provides a solid foundation.
Conceptual Overview
- Framework: React (Popular, component-based, good ecosystem)
- CSS-in-JS: Styled Components (Easy to learn, good for dynamic styling)
- State Management: Redux (Predictable state container, useful for larger portfolios)
- 90s Aesthetic:
- Bright, contrasting colors (think neon, primary colors)
- Pixelated images/elements
- Retro fonts (pixel fonts, blocky fonts)
- Simple, geometric shapes
- Animated GIFs (subtle, not overwhelming)
- "Under Construction" style elements (optional)
- Scrolling text (optional, use sparingly)
- Low-resolution look (intentional)
- Portfolio Sections:
- Home/About
- Projects
- Skills
- Contact
Project Setup (using Create React App)
npx create-react-app 90s-portfolio
cd 90s-portfolio
npm install styled-components redux react-redux @reduxjs/toolkit
1. Redux Setup (src/store.js)
import { configureStore } from '@reduxjs/toolkit';
const initialState = {
theme: 'light', // or 'dark'
currentPage: 'home',
};
const themeReducer = (state = initialState, action) => {
switch (action.type) {
case 'SET_THEME':
return { ...state, theme: action.payload };
case 'SET_PAGE':
return { ...state, currentPage: action.payload };
default:
return state;
}
};
const store = configureStore({
reducer: {
theme: themeReducer,
},
});
export default store;
2. Actions (src/actions/themeActions.js)
export const setTheme = (theme) => ({
type: 'SET_THEME',
payload: theme,
});
export const setPage = (page) => ({
type: 'SET_PAGE',
payload: page,
});
3. Styled Components (src/styles/globalStyles.js)
import { createGlobalStyle } from 'styled-components';
const GlobalStyle = createGlobalStyle`
body {
font-family: 'Press Start 2P', cursive; /* Pixel font */
background-color: #000;
color: #fff;
margin: 0;
padding: 0;
overflow-x: hidden; /* Prevent horizontal scroll */
}
a {
color: #ff00ff; /* Neon pink */
text-decoration: none;
}
/* Add more global styles here */
`;
export default GlobalStyle;
4. Components (src/components/Header.js)
import React from 'react';
import styled from 'styled-components';
import { useSelector, useDispatch } from 'react-redux';
import { setPage } from '../actions/themeActions';
const HeaderContainer = styled.header`
background-color: #ff0000; /* Neon red */
padding: 1rem;
text-align: center;
border-bottom: 2px solid #000;
`;
const NavLink = styled.a`
color: #fff;
margin: 0 1rem;
cursor: pointer;
&:hover {
color: #ff0;
}
`;
const Header = () => {
const currentPage = useSelector((state) => state.theme.currentPage);
const dispatch = useDispatch();
return (
<HeaderContainer>
<h1>My 90s Portfolio</h1>
<NavLink onClick={() => dispatch(setPage('home'))}>Home</NavLink>
<NavLink onClick={() => dispatch(setPage('projects'))}>Projects</NavLink>
<NavLink onClick={() => dispatch(setPage('skills'))}>Skills</NavLink>
<NavLink onClick={() => dispatch(setPage('contact'))}>Contact</NavLink>
</HeaderContainer>
);
};
export default Header;
5. Components (src/components/Home.js)
import React from 'react';
import styled from 'styled-components';
const HomeContainer = styled.div`
padding: 2rem;
text-align: center;
background-color: #000;
color: #fff;
img {
width: 200px;
height: auto;
border: 2px solid #ff0;
}
`;
const Home = () => {
return (
<HomeContainer>
<h2>Welcome to my 90s-inspired portfolio!</h2>
<img src="path/to/pixelated/selfie.gif" alt="Pixelated Selfie" />
<p>I'm a developer with a love for retro aesthetics.</p>
</HomeContainer>
);
};
export default Home;
6. App.js (src/App.js)
import React from 'react';
import { Provider } from 'react-redux';
import store from './store';
import GlobalStyle from './styles/globalStyles';
import Header from './components/Header';
import Home from './components/Home';
import Projects from './components/Projects'; // Placeholder
import Skills from './components/Skills'; // Placeholder
import Contact from './components/Contact'; // Placeholder
function App() {
const currentPage = store.getState().theme.currentPage;
let content;
switch (currentPage) {
case 'home':
content = <Home />;
break;
case 'projects':
content = <Projects />;
break;
case 'skills':
content = <Skills />;
break;
case 'contact':
content = <Contact />;
break;
default:
content = <Home />;
}
return (
<Provider store={store}>
<GlobalStyle />
<Header />
{content}
</Provider>
);
}
export default App;
Key Considerations and Enhancements:
- Pixelated Images: Use image editing tools to intentionally reduce the resolution of your images. GIFs are perfect for this.
- Retro Fonts: Google Fonts has pixel fonts like "Press Start 2P". Import them into your Styled Components.
- Animations: Subtle animations (e.g., flickering text, moving pixelated elements) can enhance the 90s feel. Use CSS animations or libraries like
react-spring.
- "Under Construction" Elements: Add a rotating "Under Construction" GIF or a pixelated construction cone image.
- Scrolling Text: Use a CSS marquee element (but use it sparingly, as it can be distracting).
- Color Palette: Experiment with bright, contrasting colors. Neon colors, primary colors, and black are good starting points.
- Responsiveness: Ensure your portfolio looks good on different screen sizes. Styled Components make responsive design easier.
- Accessibility: Don't sacrifice accessibility for aesthetics. Ensure your portfolio is usable by people with disabilities.
- Project Components: Implement the
Projects, Skills, and Contact components with similar styling.
- Theme Toggle: Add a button to toggle between light and dark themes.
To run the app:
npm start
This will open your portfolio in your browser.
Important Notes:
- This is a starting point. You'll need to flesh out the components and add your own content.
- The 90s aesthetic is subjective. Experiment with different elements to find a look that you like.
- Don't overdo it. A subtle 90s aesthetic is often more effective than a garish one.
- Consider using a CSS reset library (e.g., Normalize.css) to ensure consistent styling across different browsers.
This detailed outline and code snippets should give you a strong foundation for building a modern 90s aesthetic personal portfolio front-end using React, Styled Components, and Redux. Good luck! Let me know if you have any other questions.