<header>
	<div class="title">
		<h1>#100Days100Projects</h1>
		<p>~ the official website ~</p>
	</div>
</header>
<section class="container">
	<h2>Rules</h2>
	<ul class="rules">
		<li>create a project per day</li>
		<li>share your progress on Social Media (<a href="https://twitter.com/florinpop1705" target="_blank">Twitter</a>, <a href="https://facebook.com/florinpop17" target="_blank">Facebook</a>, <a href="https://linkedin.com/in/florinpop17" target="_blank">Linkedin</a>, <a href="https://instagram.com/florinpop17" target="_blank">Instagram</a> etc) using the <strong>#100Days100Projects</strong> hashtag</li>
		<li>a project could be: an app, a component, a website, a game, a library, etc</li>
		<li>you can pick what programming language and framework you like</li>
		<li>the project has to be done by <strong>11:59 PM</strong></li>
	</ul>
</section>

<section class="container">
	<h2>Projects</h2>
	<!-- A simple React app fetching the projects -->
	<div id="app"></div>
</section>

<section class="container">
	<h2>Contribute</h2>
	<p>There is also a <a href="https://github.com/florinpop17/100Days100Projects" target="_blank">Github repository</a> where you can propose any project you'd like me to create! Let's see how creative you can be! 😄</p>
</section>

<footer>
	<div class="container">
		<p>Created with <i class="fas fa-heart"></i> by <a href="https://florin-pop.com">Florin Pop</a></p>
	</div>
</footer>





<!-- SOCIAL PANEL HTML -->
<div class="social-panel-container">
	<div class="social-panel">
		<p>Created with <i class="fa fa-heart"></i> by
			<a target="_blank" href="https://florin-pop.com">Florin Pop</a></p>
		<button class="close-btn"><i class="fas fa-times"></i></button>
		<h4>Get in touch on</h4>
		<ul>
			<li>
				<a href="https://www.patreon.com/florinpop17" target="_blank">
					<i class="fab fa-discord"></i>
				</a>
			</li>
			<li>
				<a href="https://twitter.com/florinpop1705" target="_blank">
					<i class="fab fa-twitter"></i>
				</a>
			</li>
			<li>
				<a href="https://linkedin.com/in/florinpop17" target="_blank">
					<i class="fab fa-linkedin"></i>
				</a>
			</li>
			<li>
				<a href="https://facebook.com/florinpop17" target="_blank">
					<i class="fab fa-facebook"></i>
				</a>
			</li>
			<li>
				<a href="https://instagram.com/florinpop17" target="_blank">
					<i class="fab fa-instagram"></i>
				</a>
			</li>
		</ul>
	</div>
</div>
<button class="floating-btn">
	Get in Touch
</button>
@import url('https://fonts.googleapis.com/css?family=Muli:400,800&display=swap');

* {
	box-sizing: border-box;
}

body {
	font-family: 'Muli';
	margin: 0;
}

a {
	color: #8c53ff;
}

.container {
	margin: 0 auto;
	padding: 0 20px;
	width: 1000px;
	max-width: 100%;
}

header {
	background-image: url('https://images.unsplash.com/photo-1496181133206-80ce9b88a853?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2551&q=80');
	background-size: cover;
	background-position: center center;
	padding: 150px 0;
	position: relative;
	text-align: center;
}

header:after {
	background-color: rgba(0, 0, 0, 0.7);
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

header .title {
	color: #fff;
	position: relative;
	z-index: 1;
}

header .title h1 {
	margin: 0;
}

header .title p {
	margin: 10px 0;
}

.rules li {
	margin: 5px 0;
}

.projects-container {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	flex-wrap: wrap;
	max-width: 100%;
}

.project {
	border-radius: 5px;
	box-shadow: 0 3px 5px rgba(100, 100, 100, 0.1);
	overflow: hidden;
	margin: 1.5%;
	width: 30%;
}

.project img {
	max-width: 100%;
}

.project-info {
	padding: 10px 15px;
}

.project-info p {
	margin: 0 0 10px;
}

.project-info .btn-container {
	display: flex;
	justify-content: center;
}

.project-info a {
	background-color: #8c53ff;
	border-radius: 5px;
	box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
	color: #fff;
	padding: 10px 20px;
	margin: 20px 0 0;
	text-align: center;
	text-decoration: none;
	transition: all 0.2s ease-in-out;
}

.project-info a:hover {
	box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
	transform: scale(0.98);
}

footer {
	background: #8c53ff;
	color: #fff;
	padding: 10px;
	margin-top: 10px;
	text-align: center;
}

footer a {
	color: #fff;
}

footer p {
	margin: 0;
}

footer .fa-heart {
	color: red;
}

@media screen and (max-width: 1000px) {
	.project {
		width: 47%;
	}
}

@media screen and (max-width: 500px) {
	.project {
		width: 100%;
		margin: 10px 0;
	}
}

/* SOCIAL PANEL CSS */
.social-panel-container {
	position: fixed;
	right: 0;
	bottom: 80px;
	transform: translateX(100%);
	transition: transform 0.4s ease-in-out;
}

.social-panel-container.visible {
	transform: translateX(-10px);
}

.social-panel {	
	background-color: #fff;
	border-radius: 16px;
	box-shadow: 0 16px 31px -17px rgba(0,31,97,0.6);
	border: 5px solid #001F61;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	font-family: 'Muli';
	position: relative;
	height: 169px;	
	width: 370px;
	max-width: calc(100% - 10px);
}

.social-panel button.close-btn {
	border: 0;
	color: #97A5CE;
	cursor: pointer;
	font-size: 20px;
	position: absolute;
	top: 5px;
	right: 5px;
}

.social-panel button.close-btn:focus {
	outline: none;
}

.social-panel p {
	background-color: #001F61;
	border-radius: 0 0 10px 10px;
	color: #fff;
	font-size: 14px;
	line-height: 18px;
	padding: 2px 17px 6px;
	position: absolute;
	top: 0;
	left: 50%;
	margin: 0;
	transform: translateX(-50%);
	text-align: center;
	width: 235px;
}

.social-panel p i {
	margin: 0 5px;
}

.social-panel p a {
	color: #FF7500;
	text-decoration: none;
}

.social-panel h4 {
	margin: 20px 0;
	color: #97A5CE;	
	font-family: 'Muli';	
	font-size: 14px;	
	line-height: 18px;
	text-transform: uppercase;
}

.social-panel ul {
	display: flex;
	list-style-type: none;
	padding: 0;
	margin: 0;
}

.social-panel ul li {
	margin: 0 10px;
}

.social-panel ul li a {
	border: 1px solid #DCE1F2;
	border-radius: 50%;
	color: #001F61;
	font-size: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 50px;
	width: 50px;
	text-decoration: none;
}

.social-panel ul li a:hover {
	border-color: #FF6A00;
	box-shadow: 0 9px 12px -9px #FF6A00;
}

.floating-btn {
	border-radius: 26.5px;
	background-color: #001F61;
	border: 1px solid #001F61;
	box-shadow: 0 16px 22px -17px #03153B;
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	line-height: 20px;
	padding: 12px 20px;
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 999;
}

.floating-btn:hover {
	background-color: #ffffff;
	color: #001F61;
}

.floating-btn:focus {
	outline: none;
}

@media screen and (max-width: 480px) {

	.social-panel-container.visible {
		transform: translateX(0px);
	}
	
	.floating-btn {
		right: 10px;
	}
}
const App = () => {
	const [projects, setProjects] = React.useState([]);
	
	React.useEffect(() => {
		fetch('https://substantial-diascia.glitch.me/projects')
			.then(res => res.json())
			.then(res => {
			console.log(res)
			setProjects(res)
		})
	}, []);
	
	return (
		<div className="projects-container">{
				projects.length > 0 ? 
					projects.map(project => (
					<div className="project">
						<img src={project.img_url} alt={project.name} />
						<div className="project-info">
							<p>{project.description}</p>
							<small>
								<strong>Tags:</strong> {project.tags.map(tag => (<span>{tag} </span>))}
							</small>
							<div className="btn-container">
								<a href="#">See project</a>
							</div>
						</div>
					</div>
				)) 
				: 'Loading projects'
			}
		</div>
	);
}


ReactDOM.render(<App />, document.getElementById('app'));


// SOCIAL PANEL JS
const floating_btn = document.querySelector('.floating-btn');
const close_btn = document.querySelector('.close-btn');
const social_panel_container = document.querySelector('.social-panel-container');

floating_btn.addEventListener('click', () => {
	social_panel_container.classList.toggle('visible')
});

close_btn.addEventListener('click', () => {
	social_panel_container.classList.remove('visible')
});
View Compiled
Run Pen

External CSS

  1. https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.2/css/all.min.css

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/react/16.10.2/umd/react.production.min.js
  2. https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.10.2/umd/react-dom.production.min.js