diff --git a/FrontendMentor/article-preview-component-master/css/reset.css b/FrontendMentor/article-preview-component-master/css/reset.css new file mode 100644 index 0000000..af94440 --- /dev/null +++ b/FrontendMentor/article-preview-component-master/css/reset.css @@ -0,0 +1,48 @@ +/* http://meyerweb.com/eric/tools/css/reset/ + v2.0 | 20110126 + License: none (public domain) +*/ + +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td, +article, aside, canvas, details, embed, +figure, figcaption, footer, header, hgroup, +menu, nav, output, ruby, section, summary, +time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; +} +/* HTML5 display-role reset for older browsers */ +article, aside, details, figcaption, figure, +footer, header, hgroup, menu, nav, section { + display: block; +} +body { + line-height: 1; +} +ol, ul { + list-style: none; +} +blockquote, q { + quotes: none; +} +blockquote:before, blockquote:after, +q:before, q:after { + content: ''; + content: none; +} +table { + border-collapse: collapse; + border-spacing: 0; +} \ No newline at end of file diff --git a/FrontendMentor/article-preview-component-master/css/style.css b/FrontendMentor/article-preview-component-master/css/style.css new file mode 100644 index 0000000..6d959e7 --- /dev/null +++ b/FrontendMentor/article-preview-component-master/css/style.css @@ -0,0 +1,118 @@ +/* + * Challenge resolutions: + * 375x667 & 1440x800 + */ + +:root { + /* font stuff */ + font-size: 20px; + /* colors */ + --veryDarkGrayishBlue: hsl(217, 19%, 35%); + --desaturatedDarkBlue: hsl(214, 17%, 51%); + --grayishBlue: hsl(212, 23%, 69%); + --lightGrayishBlue: hsl(210, 46%, 95%); + /* corner radius */ + --cornerRadius: 10px; + +} + +/* Base styling */ + +body { + background-color: var(--lightGrayishBlue); + display: flex; + flex-direction: column; + font-size: 13px; + justify-content: center; + height: 100vh; +} + +.container { +} +.articlePreview { + display: flex; + flex-direction: column; + + border-radius: var(--cornerRadius); + background-color: white; + width: 85%; + margin: 0 auto; +} +.previewImage { + width: 100%; + object-fit: fill; + border-radius: var(--cornerRadius) var(--cornerRadius) 0 0; +} +.previewBody { + margin-top: 1.5rem; + padding: 1rem 1rem; +} +.articleSummary { +} +.articleTitle { + color: var(--veryDarkGrayishBlue); + font-size: 18px; + line-height: 1.3em; +} +.articleSell { + margin-top: 0.5rem; + color: var(--desaturatedDarkBlue); + font-size: 16px; + line-height: 1.3em; +} +.articleAuthor { + margin-top: 1.5rem; + display: flex; + flex-direction: row; + justify-content: flex-start; +} + +.authorImage { + border-radius: 50%; + width: 2.5rem; + height: 2.5rem; +} +.nameAndDate { + margin-left: 0.5rem; + margin-top: auto; + margin-bottom: auto; +} +.authorName { + color: var(--veryDarkGrayishBlue) +} +.articleDate { + margin-top: 0.3rem; + color: var(--desaturatedDarkBlue); +} +.articleShareIcon { + width: 20px; + height: 20px; + background-color: var(--lightGrayishBlue); + margin-left: auto; + margin-top: auto; + margin-bottom: auto; + /* not the right way to put a circle around the icon */ + border-radius: 50%; +} +.attribution { +} + +@media screen and (min-width: 500px) { + body { + /* flex-direction: row; */ + align-content: center; + align-items: center; + } + + .articlePreview { + flex-direction: row; + width: 50%; + + } + + .previewImage { + width: 40%; + object-fit: cover; + border-radius: var(--cornerRadius) 0 0 var(--cornerRadius); + } +} \ No newline at end of file diff --git a/FrontendMentor/article-preview-component-master/index.html b/FrontendMentor/article-preview-component-master/index.html index 400e7ab..c098885 100644 --- a/FrontendMentor/article-preview-component-master/index.html +++ b/FrontendMentor/article-preview-component-master/index.html @@ -5,6 +5,8 @@ + +
+ Ever been in a room and felt like something was missing? Perhaps + it felt slightly bare and uninviting. I’ve got some simple tips + to help you make any room feel complete. +
+28 Jun 2020
+