Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the UI #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
@import url('https://fonts.googleapis.com/css?family=Public+Sans&display=swap');
@import url('https://fonts.googleapis.com/css?family=Anton&display=swap');
@import url('https://fonts.googleapis.com/css?family=Heebo&display=swap');
@import url('https://fonts.googleapis.com/css?family=Righteous&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Josefin+Slab&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Paytone+One&display=swap');
body {
margin: 0 auto;
background-color: #999999
/*whitesmoke*/
;
background-color: #DECDC3;
text-align: center;
}

Expand All @@ -16,7 +13,7 @@ p {
}

header {
background-color: #5A83F5;
background-color: #2D4059;
color: white;
height: 150px;
width: 100%;
Expand All @@ -25,13 +22,13 @@ header {
}

header h1 {
font-family: 'Righteous', cursive;
font-family: 'Paytone One', sans-serif;
font-size: 45px;
}

header h3 {
font-family: 'Heebo', sans-serif;
font-size: 18px;
font-family: 'Josefin Slab', serif;
font-size: 20px;
margin: 5px;
}

Expand All @@ -53,7 +50,8 @@ header h3 {

#news-selector {
font-size: 20px;
width: 225px
width: 225px;
border:white solid;
}

.story-section {
Expand Down Expand Up @@ -83,7 +81,7 @@ header h3 {
flex-direction: column;
/* justify-content: space-around; */
/* align-items: center; */
border-radius: 1px;
border-radius: 20px 20px 30px 30px;
transition: .75s;
}

Expand All @@ -92,10 +90,12 @@ header h3 {
}

.story-image {
width: 300px;
width: 295px;
/* Original 300*/
height: 200px;
/*Original 200*/
border-radius: 20px 20px 0 0;
border: white solid;
}

a {
Expand All @@ -109,7 +109,7 @@ a {
}

.space {
background-color: #5A83F5;
background-color: #2D4059;
width: 300px;
height: 200px;
display: flex;
Expand Down Expand Up @@ -142,7 +142,7 @@ a {
left: 0;
bottom: 0;
width: 100%;
background-color:#5A83F5;
background-color:#2D4059 ;
padding: 10px;
font-family: 'Open Sans', sans-serif;
color: white;
Expand Down
2 changes: 1 addition & 1 deletion js/app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const apiKey = 'XXXXXXXXXXXX'; // Get API key from NewsAPI.org
const apiKey = '73b9651e38044bd1862834edc2f9567d'; // Get API key from NewsAPI.org
const defaultSource = 'the-hindu'; // default source of news
const sourceSelector = document.querySelector('#news-selector');
const newsArticles = document.querySelector('#news-list');
Expand Down