Skip to content

Instantly share code, notes, and snippets.

View djibba22's full-sized avatar
🏠
Working from home

John W Dinsmore djibba22

🏠
Working from home
View GitHub Profile
<Router>
<Navbar/>
<Container maxWidth="lg">
<Switch>
<Route path="/about">
<About />
</Route>
<Route path="/signup">
<SignUp />
</Route>
import React from 'react';
import {Avatar, Button , CssBaseline , TextField, FormControlLabel, Checkbox, Link, Grid, Box } from '@material-ui/core';
import LockOutlinedIcon from '@material-ui/icons/LockOutlined';
import Typography from '@material-ui/core/Typography';
import { makeStyles } from '@material-ui/core/styles';
import Container from '@material-ui/core/Container';
function Copyright() {
return (
<Typography variant="body2" color="textSecondary" align="center">
@djibba22
djibba22 / app.js
Created June 25, 2020 02:55
basic app.js component for tutorial
import React, { useState, useEffect } from ‘react’;
/* Add the hooks to the component before the return method */
const [response, setResponse] = useState(“Before the call”);
useEffect(() => {
fetch(“http://localhost:8888")
.then(res => res.text())
.then(res => {
setResponse(res)
});
});
@djibba22
djibba22 / index.js
Created June 25, 2020 02:19
This is a simple route for a tutorial (Full Stack React)
var express = require('express');
var router = express.Router();
router.get('/', function(req, res, next) {
res.send(`You be Full Stackin Bruh`);
});
module.exports = router;
@djibba22
djibba22 / example.html
Created June 23, 2016 14:01
this is an example of the feature
<!DOCTYPE html>
<html lang='en'>
<head>
<title>Contact Dan</title>
<!-- This critical line points your HTML to the CSS file. Notice the "relative" pathway -->
<link rel="stylesheet" type="text/css" href="../css/style.css">
</head>
<body>
<div id="container">
<!-- Navigation menu for top of every page -->
**Instructions:**
* Put all of this code where you normally code in, inside a folder
named week1
-day2 -html -css
* Make a folder called `css` using terminal/Git Bash
* Inside the `css` folder make a file called `style.css` using
terminal/Git Bash
* Reference the `style.css` in your `student
-bio.html` file. You do
this by placing `<link rel="stylesheet" type="text/css"