Skip to content

Commit

Permalink
Wrap Up with Low-Hanging Styling Fruit
Browse files Browse the repository at this point in the history
  • Loading branch information
15Dkatz committed Oct 19, 2022
1 parent 2d4d453 commit 21e873f
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions portfolio/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
2 changes: 2 additions & 0 deletions portfolio/src/App.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { Component } from 'react';
import Projects from './Projects';
import SocialProfiles from './SocialProfiles';
import profile from './assets/profile.png';

class App extends Component {
state = { displayBio: false };
Expand All @@ -12,6 +13,7 @@ class App extends Component {
render() {
return (
<div>
<img src={profile} alt='profile' className='profile' />
<h1>Hello!</h1>
<p>My name is David. I'm a software engineer.</p>
<p>I'm always looking forward to work on meaningful projects.</p>
Expand Down
27 changes: 27 additions & 0 deletions portfolio/src/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@font-face {
font-family: RobotoCondensed;
src: url(assets/roboto-condensed.light.ttf);
font-weight: 800;
}

@font-face {
font-family: EconomicaBold;
src: url(assets/economica-bold.ttf);
}

body {
text-align: center;
font-size: 20px;
padding: 2.5%;
font-family: 'RobotoCondensed';
}

h1, h2, h3, h4, h5 {
font-family: 'EconomicaBold';
}

.profile {
width: 200px;
height: 200px;
border-radius: 100px;
}
1 change: 1 addition & 0 deletions portfolio/src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import './index.css';

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<App />);

0 comments on commit 21e873f

Please sign in to comment.