Skip to content

Commit ceb9672

Browse files
committed
feat: tile hover bg
1 parent 170de07 commit ceb9672

2 files changed

Lines changed: 26 additions & 16 deletions

File tree

src/Visualizer/style/database-menu-sidebar.scss

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
&__headline {
2929
margin-top: 0;
30-
margin-bottom: 8px;
30+
margin-bottom: 24px;
3131
font-size: 28px;
3232
font-weight: 700;
3333
padding-right: 40px;
@@ -67,12 +67,15 @@
6767
padding: 20px;
6868
border: 2px solid #e0e0e0;
6969
border-radius: 12px;
70-
background-color: #fff;
70+
background: #fff;
7171
text-decoration: none;
7272
color: inherit;
73-
transition: all 0.3s ease;
73+
transition: all 0.3s ease, background-color 0.5s ease;
7474
overflow: visible;
75-
background: none;
75+
76+
&:hover {
77+
background-color: #f8f8f8;
78+
}
7679

7780
&--expanded {
7881
transform: translateY(-4px);
@@ -125,19 +128,26 @@
125128
position: absolute;
126129
bottom: 12px;
127130
right: 12px;
128-
width: 20px;
129-
height: 20px;
131+
width: 24px;
132+
height: 24px;
130133
cursor: pointer;
131134
fill: #999;
132-
transition: fill 0.2s ease;
135+
transition: all 0.2s ease;
136+
background-color: #f5f5f5;
137+
border-radius: 50%;
138+
display: flex;
139+
align-items: center;
140+
justify-content: center;
141+
padding: 4px;
133142

134143
&:hover {
135144
fill: #4A90E2;
145+
background-color: #e3f2fd;
136146
}
137147

138148
svg {
139-
width: 100%;
140-
height: 100%;
149+
width: 12px;
150+
height: 12px;
141151
}
142152
}
143153

src/config/databases.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
{
22
"bindle": {
3-
"name": "Bindle dataset",
3+
"name": "Bindle",
44
"teaser": "Database of a fictional startup called Bindle that's used in the SQL Habit course.",
55
"description": "This data warehouse belongs to a fictional startup named **Bindle**. Bindle is a web and mobile app for reading books, it has subscription business model. The SQL Habit Course is based on Bindle's story. :book:\n\nBindle's data warehouse contains everything needed to run a modern Internet company – web and mobile analytics, marketing data, AB-test data, etc."
66
},
77
"finance": {
8-
"name": "Finance dataset",
8+
"name": "Finance",
99
"teaser": "Database of financial transactions.",
1010
"description": "This data warehouse simply contains all company's financial transactions. :dollar:\n\nIf the company paid for something – there's a **debit** transaction with negative amount. If someone paid the company – it's a **credit** transaction with positive amount. :moneybag:"
1111
},
1212
"ecommerce": {
13-
"name": "E-commerce dataset",
13+
"name": "E-commerce",
1414
"teaser": "Database of an E-commerce website similar to Amazon.",
1515
"description": "This data warehouse is inspired by an E-commerce website like Amazon. :shopping_cart:\n\nOur E-commerce website allows vendors to sell items in multiple categories. Users can add as many items as they want to a cart and then purchase a cart with/without a discount code. Users also can return items and leave reviews."
1616
},
1717
"nba": {
18-
"name": "NBA dataset",
18+
"name": "NBA",
1919
"teaser": "Database of NBA games and player stats.",
2020
"description": "The **NBA** dataset contains stats of NBA games since 1949. It is regularly updated.\n\nThe dataset contains aggregated game stats (**team_game_stats** table) and individual player stats per quarter or overtime period (**player_period_stats**).\n\nHave a ball! :basketball:"
2121
},
2222
"live": {
23-
"name": "Live dataset",
23+
"name": "Live",
2424
"teaser": "Database of a meditation mobile app with live data.",
2525
"description": "The **Live** dataset contains data of a meditation mobile app with subscription business model. :iphone:\n\nThe data is updated **daily**. You can run queries to calculate metrics for the past 24h, week, month, etc. and build dashboards as if you were actually working for that company. :bar_chart:"
2626
},
2727
"movies": {
28-
"name": "Movies dataset",
28+
"name": "Movies",
2929
"teaser": "Database of a movie website similar to IMDb.",
3030
"description": "The **Movies** dataset contains data from some of the best films released since the 1990s.\n\nIt includes information on actors, directors, and key movie statistics like budget and revenue. The most interesting part is probably the `ratings` table. Please note that the ratings were artificially generated, so the final movie scores only partially correlate with real IMDb data.\n\nEnjoy the show! :movie_camera:"
3131
},
3232
"the-bank-job": {
33-
"name": "The Bank Job Quest dataset",
33+
"name": "The Bank Job Quest",
3434
"teaser": "Database behind the Bank Job quest.",
3535
"description": "This is a dataset for [SQL Habit's Bank Job quest](https://www.sqlhabit.com/quests/the-bank-job). Saying more would be a spoiler. :bank:"
3636
}

0 commit comments

Comments
 (0)