Skip to content

Commit

Permalink
Week1
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoojin9 committed Mar 27, 2024
1 parent a6b8f44 commit 643c7b0
Showing 1 changed file with 6 additions and 115 deletions.
121 changes: 6 additions & 115 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,122 +2,13 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pokemon List</title>
<style>
:root {
--text-color: #eee;
--text-color-light: #bbb;
--accent-color: rgb(220, 86, 75);
--primary-color: rgb(247, 196, 55);
--bg-color: #111;
--max-width: 64rem;
--border-dark: 1px solid var(--primary-color);
--border-light: 1px solid rgba(247, 196, 55, 0.3);
--font-bold: 700;
--font-regular: 400;
--font-thin: 100;
--font-xl: 2rem;
--font-lg: 1.5rem;
--font-md: 1.25rem;
--font-sm: 1rem;
--font-xm: 0.8rem;
--animation-main: all 0.2s ease-in-out;
}

body {
font-family: "Roboto", sans-serif;
font-weight: 500;
color: var(--text-color);
background-color: var(--bg-color);
}

nav {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 4rem;
border-bottom: var(--border-dark);
}

nav h1 {
width: 100%;
max-width: var(--max-width);
padding: 0 1rem;
}

nav a {
color: var(--primary-color);
text-decoration: none;
font-size: var(--font-lg);
font-weight: var(--font-bold);
}

nav a:hover {
opacity: 80%;
}

main {
display: flex;
flex-direction: column;
align-items: center;
padding: 2rem 1rem;
gap: 2rem;
}
#card-wrapper {
display: grid;
max-width: var(--max-width);
width: 100%;
grid-template-columns: repeat(2, 1fr);
gap: 2rem;
}

.card {
display: flex;
align-items: center;
border: var(--border-light);
border-radius: 0.5rem;
padding: 1rem;
gap: 1rem;
text-decoration: none;
color: var(--text-color);
}

.card:hover {
border: var(--border-dark);
transition: var(--animation-main);
cursor: pointer;
}

.card img {
width: 4rem;
height: 4rem;
}

.card .info-wrapper {
display: flex;
flex-direction: column;
gap: 0.3rem;
}

.card h2 {
font-size: var(--font-md);
margin-bottom: 0.2rem;
text-transform: capitalize;
}

.card p {
font-size: var(--font-sm);
font-weight: var(--font-thin);
color: var(--text-color-light);
}

@media (max-width: 48rem) {
#card-wrapper {
grid-template-columns: 1fr;
}
}
</style>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;400;700&amp;display=swap" rel="stylesheet">
<link rel="stylesheet" href="reset.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<nav>
Expand Down

0 comments on commit 643c7b0

Please sign in to comment.