개발자로 가는길 :: '개발/웹개발' 카테고리의 글 목록
반응형

개발/웹개발에 해당하는 글
반응형
12

무료 폰트 추천 ( feat . 티몬 )

개발/웹개발|2023. 5. 13. 19:16
728x90
반응형

최근에 사용할만한 무료폰트를 찾아보다가 티몬에서 배포하고있는 글씨체를 알게되었다

 

메일이 왔나 ? 문자가 왔나 ? 티몬 들어갔다가 봤나 ? 아무튼 우연히 보게 되어서 받게 되었다

 

http://service.tmon.co.kr/font

누구나 제약없이 자유롭게 수정하고 재배포 할수 있다고 한다 ( 단 폰트자체를 유료료 판매하는건 안됨 )

 

다운받아서 열어보니 제법 깔끔하고 예쁘다

 

728x90
반응형

'개발 > 웹개발' 카테고리의 다른 글

HTML, CSS 연습문제  (0) 2023.04.26
Javascript 기본 설명  (0) 2023.04.07
CSS (list style)  (0) 2023.04.04
CSS 기본 ( text 관련 )  (0) 2023.04.03
HTML ( form - <select> <option> 드롭다운 목록작성)  (0) 2023.03.31

댓글()

HTML, CSS 연습문제

개발/웹개발|2023. 4. 26. 16:32
728x90
반응형

Udemy 인강 과제 (100day of web development)

주어진 이미지

원본이미지

내가 만든 결과물

색상도 컬러피커 사용해서 똑같이 맞춰 볼까 했는데 눈대중으로 픽해서 그냥 진행 했다.

 

HTML 코드

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>HTML&CSS Basic</title>
    <!-- 구글 웹폰트 가져오기 -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;900&display=swap" rel="stylesheet">
    <!-- style.css 가져오기 -->
    <link rel="stylesheet" href="style.css" />
  </head>
  <body>
    <!-- 헤더영역 -->
    <header>
      <h1>HTML & CSS Basics Summary</h1>
      <img src="./data/logo.png" alt="HTML5 and CSS3 logo image" />
    </header>
    <!-- 메인 영역 -->
    <main>
      <h2>HTML Summary</h2>
      <p>
        HTML(HyperText Markup Language) is used to define our page content,
        structure and meaning. You <span class="bolder">don't</span> use it for styling purposes. Use CSS
        for that instead
      </p>
      <ul id="html-list">
        <li class="yellow">HTML uses "elements" to describe(annotate) content</li>
        <li>
          HTML emements typically have an opening tag, content and then a
          closing tag
        </li>
        <li class="yellow">You can also have void(empty) elements ike images</li>
        <li class="yellow">You can also configure elements with attributes</li>
        <li>
          There's a long list of available elements but you'll gain experience
          over time, no worries.
        </li>
      </ul>
      <p>
        learn more about all available HTML elements on
        <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element">
          the MDN HTML element reference.
        </a>
      </p>
      <h2>CSS Summary</h2>
      <p>CSS (Cascading Style Sheet) is used for styling your page content.
        <ul>
            <li>Styles are assigned via property-value pairs</li>
            <li>You can assign styles via the "style" attribute</li>
            <li class="yellow">
                To avoid code duplication, you typically use global styles(e.g via the "style" element) 
                instead 
            </li>
            <li>Alternatively, you can work with external stylesheet files which you "lin"k to</li>
            <li class="yellow">
                When working with CSSm concepts like "inheritance", "specificity" and the "box model" 
                should be understood.
            </li>
        </ul>
        <p>Learn more about all available CSS properties and values on <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Reference">the MDN CSS property reference</a></p>
      </p>
    </main>
    <!-- 푸터 영역 -->
    <footer>
        <a href="./data/html-css-basics-summary.pdf" target="_blank" >Download PDF Summary</a>
        <p>(c)BaeTab</p>
    </footer>
  </body>
</html>

CSS코드

body {
  /* 배경 색상 */
  background-color: rgb(244, 234, 255);
  /* 폰트 지정 */
  font-family: "Roboto", "sans-serif";
}

h1 {
  font-size: 50px;
  color: rgb(88, 49, 196);
}

/* 헤더영역  */
header {
  text-align: center;
  padding: 30px;
}

/* 이미지 사이즈 조정 */
header img {
  width: 300px;
}

/* 메인영역 */
main {
  background-color: rgb(132, 64, 204);
  padding: 30px;
  /* 가운데 정렬하기 위해 수평마진 auto */
  margin: 30px auto;
  width: 700px;
  /* 모서리 둥글게 */
  border-radius: 10px;
  color: rgb(248, 241, 255);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
li {
  margin: 14px 0;
  padding-left: 10px;
  border-left: 5px solid transparent;
}

a {
  text-decoration: none;
  color: rgb(36, 3, 102);
  background-color: rgb(255, 237, 177);
  border-radius: 5px;
  padding: 2px 6px;
}

a:hover,
a:active {
  background-color: rgb(247, 201, 39);
}

.yellow {
  color: rgb(255, 255, 0);
  border-color: yellow;
}

span {
  font-weight: bold;
}

footer {
  text-align: center;
}

footer a {
  font-weight: 500;
  padding: 10px 15px;
  background-color: rgb(247, 201, 39);
  color: black;
  border-radius: 10px;
}
footer a:hover,
footer a:active {
  background-color: rgb(255, 186, 58);
}

footer p {
  color: rgb(131, 113, 149);
  margin-top: 30px;
}

 

아직 선택자를 위한 아이디나 클래스등을 깔끔하게 적지 못하는 것 같다.

연습 열심히 해야겠다

728x90
반응형

'개발 > 웹개발' 카테고리의 다른 글

무료 폰트 추천 ( feat . 티몬 )  (0) 2023.05.13
Javascript 기본 설명  (0) 2023.04.07
CSS (list style)  (0) 2023.04.04
CSS 기본 ( text 관련 )  (0) 2023.04.03
HTML ( form - <select> <option> 드롭다운 목록작성)  (0) 2023.03.31

댓글()

Javascript 기본 설명

개발/웹개발|2023. 4. 7. 09:42
728x90
반응형
  <!--
        javascript 생태계
        -ECMA Script : ECMA 단체에서 정의한 기술 규격을 토대로 작성된 표준 스크립트 언어
        -ES2015(ES6-현재 사용중인 대부분이 문법이 추가됨), ES2022 ... 버전은 계속 변경중
        -자바스크립트 런타임:
            1)웹브라우저
            2)Node.js : 서버 측에서 실행 가능한 환경
        -자바스크립트 프레임워크
            1)Angular
            2)vue.js
        -자바스크립트 라이브러리
            1)React
            2)jQuery
    -->
 <script>
      //스크립트는 이 안에 작성
      alert("안녕하세요");
    </script>
<!-- 외부 파일로 작성된 스크립트 불러오기 -->
    <script src="myscript.js"></script>
728x90
반응형

'개발 > 웹개발' 카테고리의 다른 글

무료 폰트 추천 ( feat . 티몬 )  (0) 2023.05.13
HTML, CSS 연습문제  (0) 2023.04.26
CSS (list style)  (0) 2023.04.04
CSS 기본 ( text 관련 )  (0) 2023.04.03
HTML ( form - <select> <option> 드롭다운 목록작성)  (0) 2023.03.31

댓글()

CSS (list style)

개발/웹개발|2023. 4. 4. 09:52
728x90
반응형
<!-- 목록 스타일 -->
    <!-- 순서없는 목록 : disc(기본) , circle(빈원) , square(네모) , none(없음)-->
    <!-- 순서있는 목록 : decimal(기본) , lower , upper 알파벳 등등 -->
.a {
        list-style-type: disc;
      }
      .b {
        list-style-type: circle;
      }
      .c {
        list-style-type: square;
      }
      .d {
        list-style-type: none;
      }

.a {
        list-style-type: disc;
      }
      .b {
        list-style-type: circle;
      }
      .c {
        list-style-type: square;
      }
      .d {
        list-style-type: none;
      }

728x90
반응형

'개발 > 웹개발' 카테고리의 다른 글

HTML, CSS 연습문제  (0) 2023.04.26
Javascript 기본 설명  (0) 2023.04.07
CSS 기본 ( text 관련 )  (0) 2023.04.03
HTML ( form - <select> <option> 드롭다운 목록작성)  (0) 2023.03.31
HTML 연습문제 (input 이용)  (0) 2023.03.31

댓글()

CSS 기본 ( text 관련 )

개발/웹개발|2023. 4. 3. 10:34
728x90
반응형
  /*
    글짜 크기 지정
    절대크기 : 브라우저에서 지정한 크기 xx-small | x-small | small| medium | large | x-large | xx-large
    상대크기 : 부모 요소의 글자 크기를 기준으로 더 크게 , 더 작게 표시(larger | smaller)
    크기  : 브라우저와 상관없이 글자 크그기 직접 지정 (주로 사용)
    백분율 : 부모 요소의 글자 크기를 기준으로 %를 계산해 표시

    크기 직접 지정
    1) em : 1em = 16px (body 에 특별히 지정한 크기가 없다면 기본값)
    2) px :
    3) pt
     */
    h1 {
      font-size: 3em;
    }
    p {
      font-size: 1em;
      font-weight: bold; /* 글자 굵기 : bold(700) , normal(400) , bolder , 100~900 숫자 가능 */
    }
    p.txt {
      font-style: italic; /*normal , italic (주로 사용) , oblique*/
    }
  </style>
  <body>
    <!--
        글꼴 관련 스타일
        -기본 글꼴 지정 = > 사용자 컴퓨터에 설치되어 있는 글꼴
        -웹폰트 사용
    -->
    <h1>제목</h1>
    <p>
      Lorem ipsum dolor, sit amet consectetur adipisicing elit. Ipsum, corporis
      necessitatibus nemo veniam eligendi atque explicabo repellendus molestiae
      reiciendis, velit consequuntur iusto ullam eius. Obcaecati fugiat nobis
      dignissimos itaque vel!
    </p>
 p {
      font: italic bold 20px "맑은 고딕"; /*글꼴 속성을 한꺼번에 묶어 표현*/
      /* font : font-style font-variant font-weight font-size / line-height font-family */
    }

 

 <!--
        스타일 지정을 위해 앞 쪽에 쓰는 선택자는 다양하게 존재함
        1)태그 선택자
        2)전체 선택자 ( * )
        3)클래스 선택자
        4)아이디 선택자 : 아이디명 한페이지 내에서 중복 불가
    -->

태그 선택자

   h1 {
      background-color: pink;
      color: red;
      font-weight: 800;
      font-size: 30px;
    }

 

전체 선택자

 * {
      background-color: pink;
      color: red;
      font-weight: 800;
      font-size: 30px;
    }
    /* 태그 + 전체*/
    div * {
      color: blue;
    }

 

클래스 선택자

/* 클래스명이 color 인 요소들의 색상 blue  */
    .color {
      color: blue;
    }
    /* 클래스명이 line 인 요소들은 밑줄 */
    .line {
      text-decoration: underline;
    }
    /* 클래스명이 weight 인 요소들은 굵게  */
    .weight {
      font-weight: bold;
    }

 

아이디 선택자

    #color {
      color: blue;
    }
    #line {
      color: blue;
      text-decoration: underline;
    }
    #weight {
      color: blue;
      text-decoration: underline;
      font-weight: bold;
    }
728x90
반응형

댓글()

HTML ( form - <select> <option> 드롭다운 목록작성)

개발/웹개발|2023. 3. 31. 16:59
728x90
반응형
 <!--
        <select> , <option> : 드롭다운 목록 작성
     -->
    <form action="" method="get">
      <label for="">과일선택</label>
      <select name="" id="">
        <option value="포도">포도</option>
        <option value="사과">사과</option>
        <option value="자두">자두</option>
        <option value="딸기">딸기</option>
        <option value="수박">수박</option>
      </select>
    </form>

 

728x90
반응형

'개발 > 웹개발' 카테고리의 다른 글

CSS (list style)  (0) 2023.04.04
CSS 기본 ( text 관련 )  (0) 2023.04.03
HTML 연습문제 (input 이용)  (0) 2023.03.31
HTML (input type 에 들어올 수 있는 유형)  (0) 2023.03.31
HTML ( form 태그(사용자 입력) )  (0) 2023.03.31

댓글()