Skip to content

Commit caa9c5b

Browse files
committed
add 04-tanstack-start-migration
1 parent eddb4c9 commit caa9c5b

21 files changed

Lines changed: 540 additions & 76 deletions

File tree

04-frameworks/17-tanstack-start/02-fetching/src/routes/cars/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const getCarList = async () =>
66
export const Route = createFileRoute('/cars/')({
77
loader: () => getCarList(),
88
component: RouteComponent,
9-
pendingComponent: () => <div>Loading cars...</div>,
109
});
1110

1211
function RouteComponent() {

04-frameworks/17-tanstack-start/03-boilerplate/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"license": "MIT",
1717
"dependencies": {
1818
"@tanstack/react-router": "^1.141.2",
19+
"normalize.css": "^8.0.1",
1920
"react": "^19.2.3",
2021
"react-dom": "^19.2.3"
2122
},

04-frameworks/17-tanstack-start/03-boilerplate/src/pods/car-list/car-list.module.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
.root {
22
display: grid;
33
grid-template-columns: 1fr;
4-
column-gap: 2rem;
5-
row-gap: 2rem;
4+
gap: 2rem;
65
list-style: none;
76
margin: 0;
87
padding: 0;

04-frameworks/17-tanstack-start/03-boilerplate/src/routes/cars/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const getCarList = async () =>
66
export const Route = createFileRoute('/cars/')({
77
loader: () => getCarList(),
88
component: RouteComponent,
9-
pendingComponent: () => <div>Loading cars...</div>,
109
});
1110

1211
function RouteComponent() {
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.nav {
2+
display: flex;
3+
flex-direction: row;
4+
gap: 1rem;
5+
align-items: center;
6+
padding-left: 24px;
7+
padding-right: 24px;
8+
background-color: #1976d2;
9+
box-shadow:
10+
0px 2px 4px -1px rgba(0, 0, 0, 0.2),
11+
0px 4px 5px 0px rgba(0, 0, 0, 0.14),
12+
0px 1px 10px 0px rgba(0, 0, 0, 0.12);
13+
color: #fff;
14+
}
15+
16+
.link {
17+
width: 32px;
18+
height: 23px;
19+
}
20+
21+
.title {
22+
font-size: 1.25rem;
23+
font-weight: bold;
24+
}
25+
26+
.content {
27+
margin: 2rem;
28+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@font-face {
2+
font-family: 'Material Symbols Rounded';
3+
font-style: normal;
4+
font-weight: 400;
5+
src: url(https://fonts.gstatic.com/s/materialsymbolsrounded/v109/syl0-zNym6YjUruM-QrEh7-nyTnjDwKNJ_190FjpZIvDmUSVOK7BDB_Qb9vUSzq3wzLK-P0J-V_Zs-QtQth3-jOc7TOVpeRL2w5rwZu2rIelXxc.woff2)
6+
format('woff2');
7+
}
8+
9+
.material-icon {
10+
font-family: 'Material Symbols Rounded';
11+
font-weight: normal;
12+
font-style: normal;
13+
font-size: 24px;
14+
line-height: 1;
15+
letter-spacing: normal;
16+
text-transform: none;
17+
display: inline-block;
18+
white-space: nowrap;
19+
word-wrap: normal;
20+
direction: ltr;
21+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
PUBLIC_BASE_API_URL=http://localhost:3001/api
2+
PUBLIC_BASE_PICTURES_URL=http://localhost:3001

0 commit comments

Comments
 (0)