Code Monkey home page Code Monkey logo

article-preview's Introduction

Frontend Mentor - Article preview component solution

This is a solution to the Article preview component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout for the component depending on their device's screen size
  • See the social media share links when they click the share icon

Screenshot

Links

My process

2022.03.05

  • image
  • content
  • footer
  • share (JS)

Started: javascript는 처음이라 좀 많이 무서운데 ㅎㅎ... 일단 전체적으로 레이아웃 변화가 있기 때문에 grid로 해줄거고 내용은 flex로 간단하게 해주고 밑에 footer에 flex로 묶어준 다음 저 link 창을 onclick 이벤트로 써주면 될듯...? style property로는 display 어떠니..? ㅎㅎ 사실 궁금한게 display 말고도 할 수 있을까? 한 번 해봐야겠다. 아 그리고 반응형을 정리해놓으려고 빼놨는데 오히려 헷갈려서 그냥 합치기로 함 ㅎㅎ

2022.03.06

Completed: 사실 디자인을 js에서 전부 할 생각이었는데 js 무료 강의 계속 돌아다니면서 보다가 디자인은 css 에서 하는 것이 좋다고 목적에 맞는 용도로 사용하라길래 그것도 맞지~ 싶어서 바로 css로 디자인 했다. 그런데 문제는 js는 처음이라 이것저것 막 해보면서 안되면 저거 붙여보고 이런 식으로 해가지고 코드가 좀 그 디자인 부분만 지저분한 감이 있다... 휴.. 아직은 배우는 중이니까 경험이 쌓이면 어떻게 해결할지 눈에 보일 때까지 js만 파야겠다. 그러면 코드도 좀 깔끔해지겠지! 나중에 좀 더 익숙해지면 업데이트 하겠다.

What I learned

JavaScript Variables

The HTML DOM Document Object

JavaScript HTML DOM Elements

Document.querySelector()

Element.classList

EventTarget.addEventListener()

Author

article-preview's People

Contributors

jhan117 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.