diff --git a/content/why.html b/content/why.html deleted file mode 100644 index 1062698..0000000 --- a/content/why.html +++ /dev/null @@ -1,6 +0,0 @@ -
-

Why Universal Design?

-

- Universal Design is a philosophy of design whose goals are to make something that works for the largest number of people. By incorporating inclusive design methods and implementing standards designed to help impaired users, a web designer can easily create accessible websites with only a few new tools. -

-
\ No newline at end of file diff --git a/src/App.scss b/src/App.scss index debfe43..a7488aa 100644 --- a/src/App.scss +++ b/src/App.scss @@ -5,8 +5,7 @@ // Google Fonts -@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@100;400&family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&display=swap'); - +@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&display=swap'); // VARS///////////////////////////////////////////////////////// // Text @@ -41,11 +40,13 @@ header { } nav { + width: 100%; ul { text-align: center; display: flex; flex-flow: row wrap; - justify-content: center; + // flex-grow: 1; + justify-content: space-evenly; li { list-style-type: none; @@ -56,7 +57,7 @@ nav { border: none; padding: 2em; height: 100%; - width: 10em; + width: 100%; } button:hover { background-color: white; @@ -68,15 +69,19 @@ nav { section { font-family: 'Barlow', sans-serif; + margin-left: 20%; + margin-right: 20%; + margin: 1em; h2 { - font-size: 16pt; + font-size: 25pt; + font-weight: bolder; + margin-left: 25%; } p { font-size: 14pt; } - margin: 1em; } // IMPORTS//////////////////////////////////////////////// diff --git a/src/App.tsx b/src/App.tsx index 0d36925..04bd3a3 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -6,97 +6,73 @@ // Imports import React from 'react'; import './App.scss'; +import * as content from './content/content.jsx'; // Header JSX -class Header extends React.Component{ - render(){ +function Header(){ return (

The Importance of Universal Design

- )} -} +)} + +class Content extends React.Component<{}, { content: string }> { + constructor(props:any){ + super(props); + this.state = { + content: 'why', + } + } -// Navigation Menu -class Navbar extends React.Component{ - renderLink(text:string) { + renderLink(text:string, contentKey:string) { return ( -
  • +
  • ) } + renderContent(key:string) { + switch (key) { + case 'why': + return (); + + case 'tenets': + return (); + + case 'practices': + return (); + + default: + return (); + } + } + render() { return ( + <> + {this.renderContent(this.state.content)} + ); } + } -class Content extends React.Component { - // constructor(props){ - // super(props); - // this.state = { - // content: 'why', - // } - // } - handleClick() { - console.log('hi'); - } - render() { - return ( - - ); - } - -} - -// Content Section: Why Universal Design -function Why() { - return( -
    -

    Why Universal Design?

    -

    - Universal Design is a philosophy of design whose goals are to make something that works for the largest number of people. By incorporating inclusive design methods and implementing standards designed to help impaired users, a web designer can easily create accessible websites with only a few new tools. -

    -
    - - ) -} -// Content Section: Tenets of Universal Design -function Tenets() { - return ( -
    -

    Tenets of Universal Design

    -

    -
    - ) -} -// Content Section: Practices of Universal Design -function Practices() { - return ( -
    -

    Practices of Universal Design

    -

    -
    - ) -} function App() { return ( <>
    - - + ); } diff --git a/src/content/content.jsx b/src/content/content.jsx new file mode 100644 index 0000000..74ed5bf --- /dev/null +++ b/src/content/content.jsx @@ -0,0 +1,46 @@ +// Andrew Barlow +// Universal Design Spring 2021 Final + +// WEBSITE CONTENT//////////////////////////////////////////////////////// + +// Content Section: Why Universal Design +export function Why() { + return( +
    +

    Why Universal Design?

    +

    + Universal Design is a philosophy of design whose goals are to make something that works for the largest number of people. By incorporating inclusive design methods and implementing standards designed to help impaired users, a web designer can easily create accessible websites with only a few new tools. +

    +
    + + ); +} + +// Content Section: Tenets of Universal Design +export function Tenets() { + return ( +
    +

    Tenets of Universal Design

    +

    + Universal Design posits that the idea of "accessible design" falls short of the goalpost. Accessibility should not be an afterthought or specialty role of a developer, but should be a goal from the starting point of a website's design. It's main point being that accessible design is good design. +

    +
    + ) +} + +// Content Section: Practices of Universal Design +export function Practices() { + return ( +
    +

    Practices of Universal Design

    +

    Semantic HTML

    +

    + One of the most important ways to make a website universal is also the most straightforward. The HTML5 standard includes accessibility features baked into the default. By following the rules of semantic web design, a designer is already ahead of the curve. By properly tagging content, accessibility tools like screenreaders can display content in a friendly way to impaired users. +

    +

    Images

    + + <img src="img/cute-dog.jpg" alt="A very cute puppy"> + +
    + ) +} \ No newline at end of file diff --git a/src/content/img/cute-dog.jpg b/src/content/img/cute-dog.jpg new file mode 100644 index 0000000..4d3e20d Binary files /dev/null and b/src/content/img/cute-dog.jpg differ